Skip to content

updated the UI#5

Open
JamalMakame wants to merge 3 commits intoCodelessly:masterfrom
JamalMakame:master
Open

updated the UI#5
JamalMakame wants to merge 3 commits intoCodelessly:masterfrom
JamalMakame:master

Conversation

@JamalMakame
Copy link
Copy Markdown

  1. added responsive
  2. navbar refactored blog code

@rayliverified
Copy link
Copy Markdown
Contributor

Interesting...

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

Widget headerLogo(BuildContext context) {
Copy link
Copy Markdown

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,
Copy link
Copy Markdown

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,
Copy link
Copy Markdown

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>();
Copy link
Copy Markdown

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

Copy link
Copy Markdown

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
Copy Markdown
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