Skip to content

Latest commit

 

History

History
61 lines (32 loc) · 1.65 KB

README.md

File metadata and controls

61 lines (32 loc) · 1.65 KB

Flutter template

A template for a Flutter project that has a Login and Registration Screen. The main Screen has a Navigation Drawer that utilizes Navigator 1.0 with Named Routes. Optional arguments can be passed to PostPage to demonstrate navigation using Named Routes with arguments.

Navigation

To Navigate, there are two Navigators set: one on MyApp() - run in main(), and the other one is on NavigatorPage

Navigator flow

The reason for using two Navigators is so we could utilize a single AppBar and update the route displayed on the browser's address bar on web.

Demo

Contributing

Refer to this doc for frequently used commands in Git: https://about.gitlab.com/images/press/git-cheat-sheet.pdf

Checkout

This command switches to the branch, -b creates the branch if it has yet to exist

git checkout [-b] [BRANCH_NAME]

Merging

Merge changes from branch [BRANCH_NAME] to current branch

git merge [BRANCH_NAME]

Committing changes to branch

git add [FILE/PATH]

Add label on what the committed changes are for

git add [FILE]

git commit -m ‘[MESSAGE]’ - commit message for the added file, adding commit message for individually added files is also possible

Pushing changes

Push changes to remote[origin] repository[BRANCH]

git push origin [BRANCH]

Delete branch

Deletes local branch

git branch -d [BRANCH_NAME]

Push changes to remote[origin] repository[BRANCH]

git push -d origin [BRANCH_NAME]