mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-27 17:29:50 +08:00
Setting Dialogs: Remove margins and add a Cancel button
This commit is contained in:
@ -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();
|
||||
},
|
||||
)
|
||||
],
|
||||
);
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user