add ribbon to settings page
This commit is contained in:
parent
481dbfa623
commit
0c5f512766
|
@ -18,17 +18,38 @@ Widget settings(context) {
|
||||||
content: const about.AboutSettings(),
|
content: const about.AboutSettings(),
|
||||||
)
|
)
|
||||||
];
|
];
|
||||||
return ListView.separated(
|
return Column(
|
||||||
itemBuilder: (context, index) {
|
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||||
return categories[index];
|
children: [
|
||||||
},
|
Expanded(
|
||||||
separatorBuilder: (context, index) {
|
child: ListView.separated(
|
||||||
return const Divider(
|
shrinkWrap: true,
|
||||||
height: 0,
|
itemBuilder: (context, index) {
|
||||||
color: Colors.transparent,
|
return categories[index];
|
||||||
);
|
},
|
||||||
},
|
separatorBuilder: (context, index) {
|
||||||
itemCount: categories.length);
|
return const Divider(
|
||||||
|
height: 0,
|
||||||
|
color: Colors.transparent,
|
||||||
|
);
|
||||||
|
},
|
||||||
|
itemCount: categories.length),
|
||||||
|
),
|
||||||
|
Container(
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
border: Border(
|
||||||
|
top: BorderSide(
|
||||||
|
color: Theme.of(context).colorScheme.primary, width: 2))),
|
||||||
|
child: Wrap(
|
||||||
|
children: [
|
||||||
|
IconButton(
|
||||||
|
onPressed: () {},
|
||||||
|
icon: const Icon(Icons.search),
|
||||||
|
)
|
||||||
|
],
|
||||||
|
)),
|
||||||
|
],
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
class SettingsPanel extends StatelessWidget {
|
class SettingsPanel extends StatelessWidget {
|
||||||
|
|
Loading…
Reference in New Issue