-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
onboarding page #6
base: master
Are you sure you want to change the base?
Conversation
@ffrryy can you upload the screenshot or a video sample of your working result in your PR description please, thanks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Appreciate it 🙌🏻 especially for the app_size_config.dart
. It will be helping us to manage the width and height. There are a few comments from me, you can take a look at them.
# - images/a_dot_ham.jpeg | ||
assets: | ||
- assets/images/ | ||
- assets/icons/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems like the icon folder still not existing on the project. You can remove this line
@@ -12,7 +12,7 @@ class MyApp extends StatelessWidget { | |||
Widget build(BuildContext context) { | |||
return const MaterialApp( | |||
title: 'Food App', | |||
initialRoute: AppRoutes.mainPage, | |||
initialRoute: AppRoutes.onBording, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can change onBording
with onBoarding
. We should use the proper name for naming the variable
const Spacer(flex: 3), | ||
BaseButton( | ||
buttonColor: AppColor.mainColor, | ||
child: Container( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can use SizedBox for whitespace instead of Container
import 'package:food_app/utils/app_size_config.dart'; | ||
|
||
class OnBordingScreen extends StatelessWidget { | ||
final String onBording; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can remove this, also the required below. Don't forget to check the app_router.dart
add onboarding page.
![WhatsApp Image 2022-11-16 at 22 09 30](https://user-images.githubusercontent.com/86361623/202221611-a2a60a8f-95f7-48f5-9f6b-e3317405c3b0.jpg)
![WhatsApp Image 2022-11-16 at 22 09 51](https://user-images.githubusercontent.com/86361623/202221658-7af35451-7365-465a-a27a-6f13c541e428.jpg)
![WhatsApp Image 2022-11-16 at 22 11 28](https://user-images.githubusercontent.com/86361623/202221675-e6571685-3870-4d00-9c72-ee59d80ca4d3.jpg)