Updated pages
This commit is contained in:
parent
5a05058256
commit
fd33a67b47
5 changed files with 226 additions and 114 deletions
|
|
@ -6,8 +6,8 @@ import 'package:ocbo_esign_mobile/blocs/user/user_bloc.dart';
|
|||
import 'package:ocbo_esign_mobile/pages/approval_page.dart';
|
||||
import 'package:ocbo_esign_mobile/pages/index_page.dart';
|
||||
import 'package:ocbo_esign_mobile/pages/login_page.dart';
|
||||
import 'package:ocbo_esign_mobile/pages/validate_detail_page.dart';
|
||||
import 'package:ocbo_esign_mobile/pages/validate_page.dart';
|
||||
import 'package:ocbo_esign_mobile/pages/validation_result_page.dart';
|
||||
|
||||
Future<void> main() async {
|
||||
await dotenv.load(fileName: ".env");
|
||||
|
|
@ -50,7 +50,22 @@ final _router = GoRouter(
|
|||
),
|
||||
),
|
||||
// GoRoute(name: 'validate', path: '/validate', builder: (context, state) => const ValidatePage()),
|
||||
GoRoute(name: 'result', path: '/result', builder: (context, state) => const ValidationResultPage()),
|
||||
// GoRoute(name: 'details', path: '/details', builder: (context, state) => const ValidateDetailPage()),
|
||||
GoRoute(
|
||||
name: 'details',
|
||||
path: '/details',
|
||||
builder: (context, state) => const ValidateDetailPage(),
|
||||
pageBuilder: (BuildContext context, GoRouterState state) => CustomTransitionPage<void>(
|
||||
key: state.pageKey,
|
||||
child: const ValidateDetailPage(),
|
||||
transitionsBuilder: (context, animation, secondaryAnimation, child) {
|
||||
return SlideTransition(
|
||||
position: Tween<Offset>(begin: Offset(0.0, 1.0), end: Offset.zero).animate(animation),
|
||||
child: child,
|
||||
);
|
||||
},
|
||||
),
|
||||
),
|
||||
],
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue