Setting Dialogs: Remove margins and add a Cancel button

This commit is contained in:
Vishesh Handa
2019-10-19 12:07:31 +01:00
parent c2247c26e9
commit e8d8c58bff

View File

@ -256,6 +256,15 @@ class FontSizeSettingsDialog extends StatelessWidget {
children: sizes,
),
),
contentPadding: EdgeInsets.all(0.0),
actions: <Widget>[
FlatButton(
child: Text('CANCEL'),
onPressed: () {
Navigator.of(context).pop();
},
)
],
);
}
@ -317,6 +326,15 @@ class ListPreference extends StatelessWidget {
children: children,
),
),
contentPadding: EdgeInsets.all(0.0),
actions: <Widget>[
FlatButton(
child: Text('CANCEL'),
onPressed: () {
Navigator.of(context).pop();
},
)
],
);
});