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

Add Coffee Maker Demo App example with navigator 2.0 (Flutter Full Stack Conference) #209

Merged
merged 5 commits into from
May 28, 2024

Conversation

ulusoyca
Copy link
Collaborator

Description

This PR adds the demo app for showing how to use Navigator 2.0 with MVVM.

image

image

Related Issues

Replace this paragraph with a list of issues related to this PR from the issue database. Indicate, which of these issues are resolved or fixed by this PR.

Checklist

Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]).
This will ensure a smooth and quick review process.

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • My PR includes tests for all changed/updated/fixed behaviors.
  • All existing and new tests are passing.
  • I updated/added relevant documentation (doc comments with ///).
  • The analyzer (melos run analyze) does not report any problems on my PR.
  • The package compiles with the minimum Flutter version stated in the pubspec.yaml

Breaking Change

Does your PR require plugin users to manually update their apps to accommodate your change?

  • Yes, this is a breaking change.
  • No, this is not a breaking change.

Add Navigator 2 demo app for coffee maker

Add demo app for navigator 2 talk
Comment on lines 78 to 84
const Align(
alignment: AlignmentDirectional.topStart,
child: Padding(
padding: EdgeInsets.all(16.0),
child: DrawerMenuButton(),
),
),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DrawerMenuButton is not clickable for some devices. We can add SafeAreafor this part and we can rearrange padding.
simulator_screenshot_CB8F31C6-5551-42E4-88D4-EA2887276DC8

Comment on lines 51 to 63
Align(
alignment: AlignmentDirectional.topStart,
child: Padding(
padding: const EdgeInsets.all(16.0),
child: BackButton(
style: ButtonStyle(
backgroundColor:
MaterialStateProperty.all(Colors.white),
),
onPressed: Navigator.of(context).pop,
),
),
),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also this BackButton need SafeArea

Copy link

github-actions bot commented May 28, 2024

Visit the preview URL for this PR (updated for commit 6dcc541):

(expires Tue, 04 Jun 2024 13:07:56 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 906758393beb0353b979d020649d6a1efc40fb5b

@AcarFurkan AcarFurkan marked this pull request as ready for review May 28, 2024 13:06
@AcarFurkan AcarFurkan merged commit 9a42ccc into main May 28, 2024
5 checks passed
@AcarFurkan AcarFurkan deleted the conference-navigator-2-talk branch May 28, 2024 13:07
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.

2 participants