fix
This commit is contained in:
@@ -72,7 +72,7 @@ class AppRouter {
|
||||
context.go('/warehouses');
|
||||
});
|
||||
return const _ErrorScreen(
|
||||
message: 'Warehouse data is required',
|
||||
message: 'Yêu cầu dữ liệu kho',
|
||||
);
|
||||
}
|
||||
|
||||
@@ -103,7 +103,7 @@ class AppRouter {
|
||||
context.go('/warehouses');
|
||||
});
|
||||
return const _ErrorScreen(
|
||||
message: 'Invalid product parameters',
|
||||
message: 'Tham số sản phẩm không hợp lệ',
|
||||
);
|
||||
}
|
||||
|
||||
@@ -143,7 +143,7 @@ class AppRouter {
|
||||
context.go('/warehouses');
|
||||
});
|
||||
return const _ErrorScreen(
|
||||
message: 'Invalid product detail parameters',
|
||||
message: 'Tham số chi tiết sản phẩm không hợp lệ',
|
||||
);
|
||||
}
|
||||
|
||||
@@ -163,7 +163,7 @@ class AppRouter {
|
||||
errorBuilder: (context, state) {
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: const Text('Page Not Found'),
|
||||
title: const Text('Không tìm thấy trang'),
|
||||
),
|
||||
body: Center(
|
||||
child: Column(
|
||||
@@ -176,12 +176,12 @@ class AppRouter {
|
||||
),
|
||||
const SizedBox(height: 16),
|
||||
Text(
|
||||
'Page Not Found',
|
||||
'Không tìm thấy trang',
|
||||
style: Theme.of(context).textTheme.headlineSmall,
|
||||
),
|
||||
const SizedBox(height: 8),
|
||||
Text(
|
||||
'The page "${state.uri.path}" does not exist.',
|
||||
'Trang "${state.uri.path}" không tồn tại.',
|
||||
style: Theme.of(context).textTheme.bodyMedium?.copyWith(
|
||||
color: Theme.of(context).colorScheme.onSurfaceVariant,
|
||||
),
|
||||
@@ -190,7 +190,7 @@ class AppRouter {
|
||||
const SizedBox(height: 24),
|
||||
ElevatedButton(
|
||||
onPressed: () => context.go('/login'),
|
||||
child: const Text('Go to Login'),
|
||||
child: const Text('Về trang đăng nhập'),
|
||||
),
|
||||
],
|
||||
),
|
||||
@@ -283,7 +283,7 @@ class _ErrorScreen extends StatelessWidget {
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: const Text('Error'),
|
||||
title: const Text('Lỗi'),
|
||||
),
|
||||
body: Center(
|
||||
child: Column(
|
||||
@@ -296,7 +296,7 @@ class _ErrorScreen extends StatelessWidget {
|
||||
),
|
||||
const SizedBox(height: 16),
|
||||
Text(
|
||||
'Navigation Error',
|
||||
'Lỗi điều hướng',
|
||||
style: Theme.of(context).textTheme.headlineSmall,
|
||||
),
|
||||
const SizedBox(height: 8),
|
||||
@@ -313,7 +313,7 @@ class _ErrorScreen extends StatelessWidget {
|
||||
const SizedBox(height: 24),
|
||||
ElevatedButton(
|
||||
onPressed: () => context.go('/warehouses'),
|
||||
child: const Text('Go to Warehouses'),
|
||||
child: const Text('Về trang kho'),
|
||||
),
|
||||
],
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user