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