Update config_page.dart

This commit is contained in:
jyuesong
2022-01-14 09:47:22 +08:00
parent 572deec31b
commit 659aabc282

View File

@@ -33,6 +33,9 @@ class _ConfigPageState extends State<ConfigPage> {
styleOptions: EditorModelStyleOptions( styleOptions: EditorModelStyleOptions(
fontSize: 13, fontSize: 13,
heightOfContainer: MediaQuery.of(context).size.height - kToolbarHeight - kBottomNavigationBarHeight - 150, 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; myController.text = model.content;
@@ -57,19 +60,20 @@ class _ConfigPageState extends State<ConfigPage> {
), ),
const Spacer(), const Spacer(),
CupertinoButton( CupertinoButton(
child: Text( child: Text(
"编辑", "编辑",
style: TextStyle( style: TextStyle(
color: Theme.of(context).primaryColor, color: Theme.of(context).primaryColor,
fontSize: 16, fontSize: 16,
),
), ),
onPressed: () { ),
Navigator.of(context).pushNamed(Routes.route_ConfigEdit, arguments: { onPressed: () {
"title": model.title, Navigator.of(context).pushNamed(Routes.route_ConfigEdit, arguments: {
"content": model.content, "title": model.title,
}); "content": model.content,
}), });
},
),
], ],
), ),
Expanded( Expanded(