go router 2

This commit is contained in:
mso7nueh
2024-06-06 13:42:46 +03:00
parent 8de91e6f7e
commit d49030c3dd
28 changed files with 219 additions and 271 deletions

View File

@@ -143,33 +143,23 @@ class AuthScreen extends StatelessWidget {
};
}
onTapOk(BuildContext context) {
return () {
Navigator.pop(context);
};
}
onTapOk(BuildContext context) => GoRouter.of(context).pop(context);
onTapDiaryTest(BuildContext context) {
return () {
Navigator.pushNamed(context, AppRoutes.diaryEdit);
};
}
onTapDiaryTest(BuildContext context) => GoRouter.of(context).goNamed('diaryScreen');
onTapProfileTest(BuildContext context) {
return () {
Navigator.pushNamed(context, AppRoutes.mySettings);
};
}
onTapProfileTest(BuildContext context) => GoRouter.of(context).goNamed('mySettingsScreen');
onTapNoAccount(BuildContext context) {
return () {
GoRouter.of(context).goNamed('languageSelectScreen');
};
}
onTapNoAccount(BuildContext context) => GoRouter.of(context).goNamed('languageSelectScreen');
/// Section Widget
_buildAppBar(BuildContext context) {
return CustomAppBar(leadingWidth: 29.h, centerTitle: true, title: AppbarTitleImage(imagePath: ImageConstant.imgLogoEatvio));
return CustomAppBar(
leadingWidth: 29.h,
centerTitle: true,
title: AppbarTitleImage(
imagePath: ImageConstant.imgLogoEatvio,
),
);
}
List<String> validateFields(String email, String password) {