Перевёл 404

This commit is contained in:
Andrew 2023-05-17 21:02:49 +07:00
parent d9e0f9bdfd
commit 0a37ce249e

View file

@ -15,7 +15,7 @@ class _NotFoundPageState extends State<NotFoundPage>
return Scaffold(
body: Center(
child: Text(
'Page not found',
'Страница не найдена',
style: Theme.of(context).textTheme.headlineMedium,
),
),
@ -30,14 +30,14 @@ class _NotFoundPageState extends State<NotFoundPage>
onPressed: () {
Get.back(canPop: false);
},
child: const Text('Go back'),
child: const Text('Назад'),
),
const SizedBox(width: 16),
ElevatedButton(
onPressed: () {
Get.offAllNamed("/");
},
child: const Text('Go home'),
child: const Text('Домой'),
),
],
),