Skip to content

Commit

Permalink
Update example and CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Ellet committed Nov 14, 2023
1 parent 03a7101 commit 9ec7285
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,7 @@ jobs:

- name: Run flutter tests
run: flutter test

- name: Flutter Build web
run: flutter build web --release --verbose --dart-define=CI=true
working-directory: ./example
22 changes: 22 additions & 0 deletions example/lib/presentation/quill/quill_editor.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import 'dart:io' as io show Directory, File;
import 'dart:ui' show FontFeature;

import 'package:cached_network_image/cached_network_image.dart'
show CachedNetworkImageProvider;
Expand Down Expand Up @@ -32,6 +33,27 @@ class MyQuillEditor extends StatelessWidget {
scrollController: scrollController,
focusNode: focusNode,
configurations: configurations.copyWith(
customStyles: const DefaultStyles(
h1: DefaultTextBlockStyle(
TextStyle(
fontSize: 32,
height: 1.15,
fontWeight: FontWeight.w300,
),
VerticalSpacing(16, 0),
VerticalSpacing(0, 0),
null,
),
sizeSmall: TextStyle(fontSize: 9),
subscript: TextStyle(
fontFamily: 'SF-UI-Display',
fontFeatures: [FontFeature.subscripts()],
),
superscript: TextStyle(
fontFamily: 'SF-UI-Display',
fontFeatures: [FontFeature.superscripts()],
),
),
scrollable: true,
placeholder: 'Start writting your notes...',
padding: const EdgeInsets.all(16),
Expand Down

0 comments on commit 9ec7285

Please sign in to comment.