adjust paddings
This commit is contained in:
+3
-3
@@ -91,7 +91,7 @@ class FullSearchTermSuggestions extends HookConsumerWidget {
|
|||||||
children: [
|
children: [
|
||||||
SliverToBoxAdapter(
|
SliverToBoxAdapter(
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.only(left: 16.0),
|
padding: const EdgeInsets.only(left: 12.0, top: 12.0),
|
||||||
child: SmartBangSelector(
|
child: SmartBangSelector(
|
||||||
domain: domain,
|
domain: domain,
|
||||||
searchTextController: searchTextController,
|
searchTextController: searchTextController,
|
||||||
@@ -168,7 +168,7 @@ class _SuggestionsContent extends StatelessWidget {
|
|||||||
slivers: [
|
slivers: [
|
||||||
SliverToBoxAdapter(
|
SliverToBoxAdapter(
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.only(left: 16.0),
|
padding: const EdgeInsets.only(left: 12.0),
|
||||||
child: Wrap(
|
child: Wrap(
|
||||||
spacing: 8.0,
|
spacing: 8.0,
|
||||||
children: [
|
children: [
|
||||||
@@ -193,7 +193,7 @@ class _SuggestionsContent extends StatelessWidget {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return Padding(
|
return Padding(
|
||||||
padding: const EdgeInsets.only(left: 16.0, top: 8.0),
|
padding: const EdgeInsets.only(left: 12.0, top: 8.0),
|
||||||
child: SizedBox(
|
child: SizedBox(
|
||||||
height: 44,
|
height: 44,
|
||||||
child: FadingScroll(
|
child: FadingScroll(
|
||||||
|
|||||||
+6
-9
@@ -166,14 +166,11 @@ class _TabbedBangSelector extends HookConsumerWidget {
|
|||||||
final tabController = useTabController(initialLength: 2);
|
final tabController = useTabController(initialLength: 2);
|
||||||
final tabIndex = useState(0);
|
final tabIndex = useState(0);
|
||||||
|
|
||||||
useEffect(
|
useEffect(() {
|
||||||
() {
|
void listener() => tabIndex.value = tabController.index;
|
||||||
void listener() => tabIndex.value = tabController.index;
|
tabController.addListener(listener);
|
||||||
tabController.addListener(listener);
|
return () => tabController.removeListener(listener);
|
||||||
return () => tabController.removeListener(listener);
|
}, [tabController]);
|
||||||
},
|
|
||||||
[tabController],
|
|
||||||
);
|
|
||||||
|
|
||||||
final theme = Theme.of(context);
|
final theme = Theme.of(context);
|
||||||
final colorScheme = theme.colorScheme;
|
final colorScheme = theme.colorScheme;
|
||||||
@@ -184,7 +181,7 @@ class _TabbedBangSelector extends HookConsumerWidget {
|
|||||||
children: [
|
children: [
|
||||||
// Animated sliding pill toggle
|
// Animated sliding pill toggle
|
||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsets.only(right: 16.0),
|
padding: const EdgeInsets.only(right: 12.0),
|
||||||
child: Container(
|
child: Container(
|
||||||
height: 36,
|
height: 36,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
|
|||||||
Reference in New Issue
Block a user