Changes to layout
This commit is contained in:
parent
1941d6d6fa
commit
a8cea17592
|
@ -20,21 +20,14 @@ class _SearchTabState extends State<SearchTab> {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return const Padding(
|
return const Column(
|
||||||
padding: EdgeInsets.only(
|
children: [
|
||||||
left: 12.0,
|
Align(
|
||||||
right: 12.0,
|
alignment: Alignment.topRight,
|
||||||
bottom: 100,
|
child: SearchIconWidget(),
|
||||||
),
|
),
|
||||||
child: Column(
|
AllSearchSections(),
|
||||||
children: [
|
],
|
||||||
Align(
|
|
||||||
alignment: Alignment.topRight,
|
|
||||||
child: SearchIconWidget(),
|
|
||||||
),
|
|
||||||
AllSearchSections(),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -20,26 +20,30 @@ class SearchSection extends StatelessWidget {
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
debugPrint("Building section for ${sectionType.name}");
|
debugPrint("Building section for ${sectionType.name}");
|
||||||
final textTheme = getEnteTextTheme(context);
|
final textTheme = getEnteTextTheme(context);
|
||||||
return Padding(
|
return Expanded(
|
||||||
padding: const EdgeInsets.symmetric(vertical: 16.0),
|
child: Column(
|
||||||
child: Expanded(
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
child: Column(
|
children: [
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
Row(
|
||||||
children: [
|
children: [
|
||||||
Text(
|
Padding(
|
||||||
sectionType.sectionTitle(context),
|
padding: const EdgeInsets.all(12),
|
||||||
style: textTheme.largeBold,
|
child: Text(
|
||||||
),
|
sectionType.sectionTitle(context),
|
||||||
const SizedBox(height: 16),
|
style: textTheme.largeBold,
|
||||||
// wrap below text in next line
|
),
|
||||||
// Text(
|
),
|
||||||
// sectionType.getEmptyStateText(context),
|
],
|
||||||
// style: textTheme.smallMuted,
|
),
|
||||||
// softWrap: true,
|
const SizedBox(height: 2),
|
||||||
// ),
|
// wrap below text in next line
|
||||||
SearchExampleRow(examples, sectionType),
|
// Text(
|
||||||
],
|
// sectionType.getEmptyStateText(context),
|
||||||
),
|
// style: textTheme.smallMuted,
|
||||||
|
// softWrap: true,
|
||||||
|
// ),
|
||||||
|
SearchExampleRow(examples, sectionType),
|
||||||
|
],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -82,9 +86,9 @@ class SearchExample extends StatelessWidget {
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return SizedBox(
|
return SizedBox(
|
||||||
width: 84,
|
width: 85,
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 6, vertical: 8),
|
padding: const EdgeInsets.symmetric(horizontal: 6, vertical: 10),
|
||||||
child: Column(
|
child: Column(
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
children: [
|
children: [
|
||||||
|
|
Loading…
Reference in a new issue