mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-07-02 04:47:01 +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,
|
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,
|
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