Chore: dart before_push script

pull/2127/head
CatHood0 8 months ago
parent 590b86bb15
commit 14552620f0
  1. 3
      example/lib/screens/home/widgets/home_screen.dart
  2. 11
      example/lib/screens/quill/quill_screen.dart

@ -78,7 +78,8 @@ class _HomeScreenState extends State<HomeScreen> {
Icons.home, Icons.home,
size: 50, size: 50,
), ),
text: 'If you want to see how the editor work with default content, ' text:
'If you want to see how the editor work with default content, '
'see any samples or you are working on it', 'see any samples or you are working on it',
onPressed: () => Navigator.of(context).pushNamed( onPressed: () => Navigator.of(context).pushNamed(
QuillScreen.routeName, QuillScreen.routeName,

@ -3,7 +3,10 @@ import 'dart:convert' show jsonEncode;
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_quill/flutter_quill.dart'; import 'package:flutter_quill/flutter_quill.dart';
import 'package:flutter_quill_extensions/flutter_quill_extensions.dart' import 'package:flutter_quill_extensions/flutter_quill_extensions.dart'
show FlutterQuillEmbeds, FlutterQuillExtensions, QuillSharedExtensionsConfigurations; show
FlutterQuillEmbeds,
FlutterQuillExtensions,
QuillSharedExtensionsConfigurations;
import 'package:share_plus/share_plus.dart' show Share; import 'package:share_plus/share_plus.dart' show Share;
import '../../extensions/scaffold_messenger.dart'; import '../../extensions/scaffold_messenger.dart';
@ -66,7 +69,8 @@ class _QuillScreenState extends State<QuillScreen> {
tooltip: 'Spell-checker', tooltip: 'Spell-checker',
onPressed: () { onPressed: () {
if (!_isActivatedSpellChecker) { if (!_isActivatedSpellChecker) {
FlutterQuillExtensions.useSpellCheckerService(Localizations.localeOf(context).languageCode); FlutterQuillExtensions.useSpellCheckerService(
Localizations.localeOf(context).languageCode);
} else { } else {
SpellCheckerServiceProvider.dispose(onlyPartial: true); SpellCheckerServiceProvider.dispose(onlyPartial: true);
SpellCheckerServiceProvider.turnOffService(); SpellCheckerServiceProvider.turnOffService();
@ -147,7 +151,8 @@ class _QuillScreenState extends State<QuillScreen> {
return const QuillSharedConfigurations( return const QuillSharedConfigurations(
// locale: Locale('en'), // locale: Locale('en'),
extraConfigurations: { extraConfigurations: {
QuillSharedExtensionsConfigurations.key: QuillSharedExtensionsConfigurations( QuillSharedExtensionsConfigurations.key:
QuillSharedExtensionsConfigurations(
assetsPrefix: 'assets', // Defaults to assets assetsPrefix: 'assets', // Defaults to assets
), ),
}, },

Loading…
Cancel
Save