Skip to content

Instantly share code, notes, and snippets.

@elleryq
Last active June 20, 2020 14:45
Show Gist options
  • Select an option

  • Save elleryq/aac651d3bb41d2cd79f144cb9a99367d to your computer and use it in GitHub Desktop.

Select an option

Save elleryq/aac651d3bb41d2cd79f144cb9a99367d to your computer and use it in GitHub Desktop.

Revisions

  1. elleryq revised this gist Jun 20, 2020. No changes.
  2. elleryq renamed this gist Jun 20, 2020. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. elleryq created this gist Jun 20, 2020.
    23 changes: 23 additions & 0 deletions show
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,23 @@
    showDialog(
    context: context,
    builder: (BuildContext context) {
    return AlertDialog(
    title: Text(""),
    content: Text("確定刪除?"),
    actions: <Widget>[
    FlatButton(
    child: Text("取消"),
    onPressed: () {
    Navigator.of(context).pop();
    },
    ),
    FlatButton(
    child: Text("刪除"),
    onPressed: () {
    model.deleteRoom(index);
    },
    ),
    ],
    );
    },
    );