Simply implement snippet running.

This commit is contained in:
LollipopKit
2021-11-06 14:05:03 +08:00
parent 7c34530821
commit e0fb591dea
17 changed files with 305 additions and 34 deletions

View File

@@ -44,12 +44,16 @@ class _ServerDetailPageState extends State<ServerDetailPage>
return Scaffold(
appBar: AppBar(
title: Text(si.info.name),
actions: [IconButton(onPressed: () => AppRoute(
ServerEditPage(
spi: si.info,
),
'Edit server info page')
.go(context), icon: const Icon(Icons.edit))],
actions: [
IconButton(
onPressed: () => AppRoute(
ServerEditPage(
spi: si.info,
),
'Edit server info page')
.go(context),
icon: const Icon(Icons.edit))
],
),
body: ListView(
padding: const EdgeInsets.all(17),

View File

@@ -59,6 +59,7 @@ class _ServerEditPageState extends State<ServerEditPage> with AfterLayoutMixin {
onPressed: () {
_serverProvider.delServer(widget.spi!);
Navigator.of(context).pop();
Navigator.of(context).pop();
},
child: const Text(
'Yes',

View File

@@ -91,11 +91,11 @@ class _ServerPageState extends State<ServerPage>
return Card(
child: InkWell(
onLongPress: () => AppRoute(
ServerEditPage(
spi: si.info,
),
'Edit server info page')
.go(context),
ServerEditPage(
spi: si.info,
),
'Edit server info page')
.go(context),
child: Padding(
padding: const EdgeInsets.all(13),
child: