Skip to content

Commit f49ffb8

Browse files
committed
fix(custom-dialog): adjusted dialog color for dark themed hosts
1 parent 2c0df07 commit f49ffb8

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lib/src/widgets/custom_dialog.dart

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,16 @@ class CustomAlertDialog extends StatelessWidget {
5050
),
5151
));
5252

53-
return buildContent(children);
53+
return buildContent(context, children);
5454
}
5555

56-
Widget buildContent(List<Widget> children) {
56+
Widget buildContent(context, List<Widget> children) {
5757
Widget widget;
5858
if (fullscreen) {
5959
widget = new Material(
60-
color: Colors.white,
60+
color: Theme.of(context).brightness == Brightness.light
61+
? Colors.white
62+
: Colors.grey,
6163
child: new Container(
6264
child: onCancelPress == null
6365
? new Padding(

0 commit comments

Comments
 (0)