-
Notifications
You must be signed in to change notification settings - Fork 176
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
updated the UI #5
base: master
Are you sure you want to change the base?
Conversation
JamalMakame
commented
Oct 17, 2022
- added responsive
- navbar refactored blog code
Interesting... |
HeaderItem(title: 'CONTACT', onTap: () {}), | ||
]; | ||
|
||
Widget headerLogo(BuildContext context) { |
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.
Doubt:
Why use help methods in this case instead of widgets?
I think it would be nice to follow best practices, as the Flutter team recommends.
const HeaderMenuTile(), | ||
headerRow(context), | ||
|
||
// visible: false, |
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.
Why is it commented? 🤔
textStyle: buttonTextStyle, | ||
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 16)); | ||
backgroundColor: Colors.transparent, | ||
//onSurface: null, |
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.
Remove comments.
import 'package:flutter/material.dart'; | ||
|
||
class Globals { | ||
static GlobalKey<ScaffoldState> scaffoldKey = GlobalKey<ScaffoldState>(); |
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.
Why? Remember that keys must be unique.
I don't know if there's a need to create a class for this, because it won't be reused at other times. 💭
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.
Now I understanding this better, after read this.
@felipecastrosales raises some good points. Can you make a new updated PR? |