Skip to content

Commit b23ea44

Browse files
authored
Merge pull request #144 from camelus-hq/ui-changes
feat: tab bar feed bg color
2 parents f86f2b8 + bb4a3fa commit b23ea44

File tree

2 files changed

+29
-3
lines changed

2 files changed

+29
-3
lines changed

lib/presentation_layer/components/generic_feed.dart

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,20 @@ class _GenericFeedState extends ConsumerState<GenericFeed>
142142
pinned: true,
143143
snap: widget.floatHeaderSlivers, // Snap if floating
144144
forceElevated: innerBoxIsScrolled,
145-
backgroundColor: Theme.of(context).colorScheme.surface,
146145
surfaceTintColor: Theme.of(context).colorScheme.surface,
146+
shadowColor: Theme.of(context).colorScheme.surface,
147+
backgroundColor: Theme.of(context).colorScheme.surface,
147148
bottom: TabBar(
148149
controller: _tabController!,
150+
dividerHeight: 0,
151+
indicator: UnderlineTabIndicator(
152+
borderSide: BorderSide(
153+
width: 2.5,
154+
color: Theme.of(context).colorScheme.primary,
155+
),
156+
157+
borderRadius: BorderRadius.circular(20),
158+
),
149159
tabs: [
150160
Tab(text: AppLocalizations.of(context)!.posts),
151161
Tab(

lib/presentation_layer/routes/home_page_mobile.dart

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,17 +116,21 @@ class _HomePageMobileState extends ConsumerState<HomePageMobile>
116116
context,
117117
),
118118
sliver: SliverAppBar(
119+
surfaceTintColor: Theme.of(context).colorScheme.surface,
120+
shadowColor: Theme.of(context).colorScheme.surface,
121+
backgroundColor: Theme.of(context).colorScheme.surface,
122+
119123
floating: true,
120124
snap: false,
121125
pinned: false,
122-
forceElevated: true,
126+
123127
leadingWidth: 48,
124128
leading: MobileFeedHeader(
125129
scaffoldKey: _scaffoldKey,
126130
pubkey: currentUserPubkey,
127131
),
128132
centerTitle: true,
129-
title: const AppLogo(),
133+
//title: const AppLogo(),
130134
actions: [
131135
RelaysConnectivityWidget(
132136
onTap: () => context.push('/nostr/relays'),
@@ -140,6 +144,18 @@ class _HomePageMobileState extends ConsumerState<HomePageMobile>
140144
preferredSize: const Size.fromHeight(40),
141145
child: TabBar(
142146
controller: tabController,
147+
indicatorColor: Theme.of(context).colorScheme.primary,
148+
// rounded underline indicator
149+
indicator: UnderlineTabIndicator(
150+
borderSide: BorderSide(
151+
width: 2.5,
152+
color: Theme.of(context).colorScheme.primary,
153+
),
154+
155+
borderRadius: BorderRadius.circular(20),
156+
),
157+
158+
dividerHeight: 0,
143159
tabs: [
144160
Tab(text: AppLocalizations.of(context)!.posts),
145161
Tab(

0 commit comments

Comments
 (0)