BotZ_app/lib/ui/dialog.dart
2019-08-18 18:06:04 -03:00

21 lines
654 B
Dart

import 'package:flutter/material.dart';
var baseDialogTheme = DialogTheme(
backgroundColor: Colors.green[100],
elevation: 40.0,
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(15.0)),
);
AlertDialog Function(BuildContext) errorDialogBuilder(String title, String message) {
return (BuildContext context) =>
AlertDialog(title: Text(title), content: Text(message), actions: <Widget>[
RaisedButton(
onPressed: () => Navigator.of(context).pop(),
child: Text(
"Dismiss",
style: TextStyle(fontWeight: FontWeight.bold, color: Colors.black),
),
)
]);
}