mirror of
https://github.com/foss42/apidash.git
synced 2025-06-30 04:46:35 +08:00
Add home button
This commit is contained in:
@ -28,8 +28,23 @@ class _CollectionPaneState extends ConsumerState<CollectionPane> {
|
|||||||
children: [
|
children: [
|
||||||
Row(
|
Row(
|
||||||
crossAxisAlignment: CrossAxisAlignment.center,
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
mainAxisAlignment: MainAxisAlignment.end,
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
children: [
|
children: [
|
||||||
|
TextButton.icon(
|
||||||
|
onPressed: () {
|
||||||
|
ref
|
||||||
|
.read(activeIdStateProvider.notifier)
|
||||||
|
.update((state) => null);
|
||||||
|
},
|
||||||
|
icon: const Icon(
|
||||||
|
Icons.home,
|
||||||
|
size: 20,
|
||||||
|
),
|
||||||
|
label: const Text(
|
||||||
|
'Home',
|
||||||
|
style: kTextStyleButton,
|
||||||
|
),
|
||||||
|
),
|
||||||
ElevatedButton(
|
ElevatedButton(
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
String newId =
|
String newId =
|
||||||
|
Reference in New Issue
Block a user