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