forked from eatvio/eatvio_app
Added navigation between screens
This commit is contained in:
@@ -51,7 +51,11 @@ class AllergiesScreen extends StatelessWidget {
|
||||
Spacer(flex: 36),
|
||||
_buildNinetyThree(context),
|
||||
Spacer(flex: 63),
|
||||
CustomOutlinedButton(text: "lbl2".tr.toUpperCase()),
|
||||
CustomOutlinedButton(
|
||||
text: "lbl2".tr.toUpperCase(),
|
||||
onPressed: () {
|
||||
navigateToMedicine(context);
|
||||
}),
|
||||
SizedBox(height: 17.v),
|
||||
Text("lbl3".tr, style: theme.textTheme.bodyLarge)
|
||||
]))));
|
||||
@@ -92,4 +96,11 @@ class AllergiesScreen extends StatelessWidget {
|
||||
onTapArrowLeft(BuildContext context) {
|
||||
NavigatorService.goBack();
|
||||
}
|
||||
|
||||
/// Navigates to the medicineIntakeScreen when the action is triggered.
|
||||
navigateToMedicine(BuildContext context) {
|
||||
NavigatorService.pushNamed(
|
||||
AppRoutes.medicineIntakeScreen,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user