mirror of
https://github.com/qinglong-app/qinglong_app.git
synced 2025-10-09 16:48:19 +08:00
Update config_page.dart
This commit is contained in:
@@ -33,6 +33,9 @@ class _ConfigPageState extends State<ConfigPage> {
|
||||
styleOptions: EditorModelStyleOptions(
|
||||
fontSize: 13,
|
||||
heightOfContainer: MediaQuery.of(context).size.height - kToolbarHeight - kBottomNavigationBarHeight - 150,
|
||||
editorBorderColor: Theme.of(context).scaffoldBackgroundColor,
|
||||
editButtonBackgroundColor: Theme.of(context).scaffoldBackgroundColor,
|
||||
editorColor: Theme.of(context).scaffoldBackgroundColor,
|
||||
),
|
||||
);
|
||||
myController.text = model.content;
|
||||
@@ -57,19 +60,20 @@ class _ConfigPageState extends State<ConfigPage> {
|
||||
),
|
||||
const Spacer(),
|
||||
CupertinoButton(
|
||||
child: Text(
|
||||
"编辑",
|
||||
style: TextStyle(
|
||||
color: Theme.of(context).primaryColor,
|
||||
fontSize: 16,
|
||||
),
|
||||
child: Text(
|
||||
"编辑",
|
||||
style: TextStyle(
|
||||
color: Theme.of(context).primaryColor,
|
||||
fontSize: 16,
|
||||
),
|
||||
onPressed: () {
|
||||
Navigator.of(context).pushNamed(Routes.route_ConfigEdit, arguments: {
|
||||
"title": model.title,
|
||||
"content": model.content,
|
||||
});
|
||||
}),
|
||||
),
|
||||
onPressed: () {
|
||||
Navigator.of(context).pushNamed(Routes.route_ConfigEdit, arguments: {
|
||||
"title": model.title,
|
||||
"content": model.content,
|
||||
});
|
||||
},
|
||||
),
|
||||
],
|
||||
),
|
||||
Expanded(
|
||||
|
||||
Reference in New Issue
Block a user