Skip to content
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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

JamalMakame
Copy link

  1. added responsive
  2. navbar refactored blog code

@rayliverified
Copy link
Contributor

Interesting...

HeaderItem(title: 'CONTACT', onTap: () {}),
];

Widget headerLogo(BuildContext context) {

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,

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,

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>();

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. 💭

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.

@rayliverified
Copy link
Contributor

@felipecastrosales raises some good points. Can you make a new updated PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants