Skip to content

Instantly share code, notes, and snippets.

showDialog(
context: context,
builder: (context) {
Column(
children: <Widget>[
AlertDialog(
title: Text("タイトル"),
// コンテンツ領域
content: SingleChildScrollView(
child: ListBody(
RaisedButton(
onPressed: () {
showDialog(
context: context,
builder: (context) {
return SimpleDialog(
children: <Widget>[
// コンテンツ領域
Padding(
padding: const EdgeInsets.all(16.0),
import 'package:flutter/material.dart';
class OverlayDialogPage extends ModalRoute<void> {
@override
Duration get transitionDuration => Duration(milliseconds: 100);
@override
bool get opaque => false;
@override
RaisedButton(
onPressed: () {
showDialog(
context: context,
builder: (context) {
return SimpleDialog(
title: Text("タイトル"),
children: <Widget>[
SimpleDialogOption(
onPressed: () => Navigator.pop(context),
RaisedButton(
onPressed: () {
showDialog(
context: context,
builder: (context) {
return AlertDialog(
title: Text("タイトル"),
content: Text("メッセージメッセージメッセージメッセージメッセージメッセージ"),
actions: <Widget>[
FlatButton(