Changes to layout

This commit is contained in:
ashilkn 2023-10-07 17:29:49 +05:30
parent 1941d6d6fa
commit a8cea17592
2 changed files with 34 additions and 37 deletions

View file

@ -20,13 +20,7 @@ class _SearchTabState extends State<SearchTab> {
@override
Widget build(BuildContext context) {
return const Padding(
padding: EdgeInsets.only(
left: 12.0,
right: 12.0,
bottom: 100,
),
child: Column(
return const Column(
children: [
Align(
alignment: Alignment.topRight,
@ -34,7 +28,6 @@ class _SearchTabState extends State<SearchTab> {
),
AllSearchSections(),
],
),
);
}

View file

@ -20,17 +20,22 @@ class SearchSection extends StatelessWidget {
Widget build(BuildContext context) {
debugPrint("Building section for ${sectionType.name}");
final textTheme = getEnteTextTheme(context);
return Padding(
padding: const EdgeInsets.symmetric(vertical: 16.0),
child: Expanded(
return Expanded(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
Row(
children: [
Padding(
padding: const EdgeInsets.all(12),
child: Text(
sectionType.sectionTitle(context),
style: textTheme.largeBold,
),
const SizedBox(height: 16),
),
],
),
const SizedBox(height: 2),
// wrap below text in next line
// Text(
// sectionType.getEmptyStateText(context),
@ -40,7 +45,6 @@ class SearchSection extends StatelessWidget {
SearchExampleRow(examples, sectionType),
],
),
),
);
}
}
@ -82,9 +86,9 @@ class SearchExample extends StatelessWidget {
@override
Widget build(BuildContext context) {
return SizedBox(
width: 84,
width: 85,
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 6, vertical: 8),
padding: const EdgeInsets.symmetric(horizontal: 6, vertical: 10),
child: Column(
mainAxisSize: MainAxisSize.min,
children: [