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

WB Sharing/Network page: Flexible space bar and contextual app bar #141

Closed
saachipahwa opened this issue Feb 19, 2021 · 1 comment
Closed
Assignees
Labels
ui usability To improve the UX.

Comments

@saachipahwa
Copy link
Collaborator

https://api.flutter.dev/flutter/material/FlexibleSpaceBar-class.html where instead of the header being a picture, we could give a paragraph or two of explanation, that will conveniently disappear when scrolled down.

if we do add the app bar we can then also use contextual action bar later to provide a convenient way to delete friends.

@saachipahwa
Copy link
Collaborator Author

saachipahwa commented Feb 19, 2021

My attempt:

final customScrollFriendsWidget = FutureBuilder(
        future: friendsList,
        builder: (ctx, data) {
          final List<Friend> friends = data.data;
          return !data.hasData || friends.length == 0
              ? noFriendsWidget
              : Column(children: [
                  CustomScrollView(slivers: [
                    SliverAppBar(
                      expandedHeight: 30.0,
                      flexibleSpace: const FlexibleSpaceBar(
                          title: Text(
                        "With NudgeMe, caring is sharing. \n\nLet people in your care network know how you are to start meaningful and helpful conversations about wellbeing. \n\n" +
                            "Click the send button below to share your diary with your network or to send a nudge. Sending a nudge to someone in your care network allows you to set them a steps goal. View other people’s wellbeing and diaries and nudges with the View button.\n\n" +
                            "Pull down to reload.",
                      )),
                    ),
                    SliverToBoxAdapter(child: friendsListWidget),
                  ]),
                  SliverToBoxAdapter(child: friendsButtonsWidget)
                ]);
        });

The problem is that they last 2 things aren't slivers

@thevirtuoso1973 thevirtuoso1973 added this to To do in Implementation via automation Feb 21, 2021
@thevirtuoso1973 thevirtuoso1973 added ui usability To improve the UX. labels Feb 21, 2021
@thevirtuoso1973 thevirtuoso1973 self-assigned this Feb 22, 2021
Implementation automation moved this from To do to Done Feb 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ui usability To improve the UX.
Projects
No open projects
Development

No branches or pull requests

2 participants