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

Create Settings View #12

Open
PatHock opened this issue Jul 7, 2018 · 0 comments
Open

Create Settings View #12

PatHock opened this issue Jul 7, 2018 · 0 comments
Assignees
Labels
priority-normal Normal stuff size-small One day or less. view anything visual on the screen
Projects
Milestone

Comments

@PatHock
Copy link
Collaborator

PatHock commented Jul 7, 2018

End goal

  • Allow user to toggle dark/light theme, log into his/her account etc.
  • User info such as height, weight etc can be input in the settings view

Relevant Info/Links

This could be implemented with a drawer.
https://flutter.io/cookbook/design/drawer/

Your Code

This was taken from the flutter cookbook link above.

Drawer(
  // Add a ListView to the drawer. This ensures the user can scroll
  // through the options in the Drawer if there isn't enough vertical
  // space to fit everything.
  child: ListView(
    // Important: Remove any padding from the ListView.
    padding: EdgeInsets.zero,
    children: <Widget>[
      DrawerHeader(
        child: Text('Drawer Header'),
        decoration: BoxDecoration(
          color: Colors.blue,
        ),
      ),
      ListTile(
        title: Text('Item 1'),
        onTap: () {
          // Update the state of the app
          // ...
        },
      ),
      ListTile(
        title: Text('Item 2'),
        onTap: () {
          // Update the state of the app
          // ...
        },
      ),
    ],
  ),
);
@PatHock PatHock added view anything visual on the screen size-small One day or less. priority-normal Normal stuff labels Jul 7, 2018
@PatHock PatHock added this to the Completed App milestone Jul 7, 2018
@PatHock PatHock added this to To do in Sprint 2 via automation Jul 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority-normal Normal stuff size-small One day or less. view anything visual on the screen
Projects
Sprint 2
  
To do
Development

No branches or pull requests

2 participants