update on settings
This commit is contained in:
parent
5bffc744e3
commit
05c3208cad
9 changed files with 205 additions and 117 deletions
|
|
@ -23,6 +23,7 @@ import 'package:pharmacy_mobile/pages/login_page.dart';
|
|||
import 'package:go_router/go_router.dart';
|
||||
import 'package:pharmacy_mobile/pages/main_page.dart';
|
||||
import 'package:pharmacy_mobile/pages/register_page.dart';
|
||||
import 'package:pharmacy_mobile/pages/settings_pages/language_setting_page.dart';
|
||||
import 'package:supabase_flutter/supabase_flutter.dart';
|
||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||
|
||||
|
|
@ -114,6 +115,20 @@ final _router = GoRouter(
|
|||
path: '/itemview',
|
||||
builder: (context, state) => const CustomerItemviewPage(),
|
||||
),
|
||||
GoRoute(
|
||||
path: '/languagesetting',
|
||||
pageBuilder: (BuildContext context, GoRouterState state) => CustomTransitionPage<void>(
|
||||
key: state.pageKey,
|
||||
child: const LanguageSettingPage(),
|
||||
transitionsBuilder: (BuildContext context, Animation<double> animation, Animation<double> secondaryAnimation,
|
||||
Widget child) =>
|
||||
SlideTransition(
|
||||
position: animation.drive(
|
||||
Tween<Offset>(begin: Offset(0.95, 0), end: Offset.zero).chain(CurveTween(curve: Curves.easeIn))),
|
||||
child: child),
|
||||
),
|
||||
// builder: (context, state) => const LanguageSettingPage(),
|
||||
),
|
||||
],
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue