feat: export JSON in mobile and update mobile_example.json (#515)
* feat: add export json in mobile * chore: update editor style and example json for mobile showcase * chore: improve text content
This commit is contained in:
parent
adb05d4c49
commit
897033035c
1 changed files with 33 additions and 151 deletions
|
|
@ -107,14 +107,16 @@ class _MobileEditorState extends State<MobileEditor> {
|
|||
// showcase 1: customize the editor style.
|
||||
EditorStyle _buildMobileEditorStyle() {
|
||||
return EditorStyle.mobile(
|
||||
cursorColor: Colors.blue,
|
||||
selectionColor: Colors.blue.shade200,
|
||||
cursorColor: const Color.fromARGB(255, 134, 46, 247),
|
||||
selectionColor: const Color.fromARGB(50, 134, 46, 247),
|
||||
textStyleConfiguration: TextStyleConfiguration(
|
||||
text: GoogleFonts.poppins(
|
||||
fontSize: 14,
|
||||
color: Colors.black,
|
||||
),
|
||||
code: GoogleFonts.badScript(),
|
||||
code: GoogleFonts.sourceCodePro(
|
||||
backgroundColor: Colors.grey.shade200,
|
||||
),
|
||||
),
|
||||
padding: const EdgeInsets.symmetric(horizontal: 24.0),
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue