diff --git a/example/android/build.gradle b/example/android/build.gradle index 4256f917..85ed7b51 100644 --- a/example/android/build.gradle +++ b/example/android/build.gradle @@ -1,12 +1,12 @@ buildscript { - ext.kotlin_version = '1.6.10' + ext.kotlin_version = '1.9.0' repositories { google() mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:4.1.0' + classpath 'com.android.tools.build:gradle:7.4.0' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" } } @@ -26,6 +26,6 @@ subprojects { project.evaluationDependsOn(':app') } -task clean(type: Delete) { +tasks.register("clean", Delete) { delete rootProject.buildDir } diff --git a/example/android/gradle/wrapper/gradle-wrapper.properties b/example/android/gradle/wrapper/gradle-wrapper.properties index bc6a58af..6b665338 100644 --- a/example/android/gradle/wrapper/gradle-wrapper.properties +++ b/example/android/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip diff --git a/example/assets/fonts/SF-Pro-Display-Regular.otf b/example/assets/fonts/SF-Pro-Display-Regular.otf new file mode 100755 index 00000000..1279121f Binary files /dev/null and b/example/assets/fonts/SF-Pro-Display-Regular.otf differ diff --git a/example/lib/pages/home_page.dart b/example/lib/pages/home_page.dart index 674b3053..4e08e5be 100644 --- a/example/lib/pages/home_page.dart +++ b/example/lib/pages/home_page.dart @@ -1,6 +1,7 @@ import 'dart:async'; import 'dart:convert'; import 'dart:io'; +import 'dart:ui'; import 'package:file_picker/file_picker.dart'; import 'package:filesystem_picker/filesystem_picker.dart'; @@ -201,6 +202,14 @@ class _HomePageState extends State { const VerticalSpacing(0, 0), null), sizeSmall: const TextStyle(fontSize: 9), + subscript: const TextStyle( + fontFamily: 'SF-UI-Display', + fontFeatures: [FontFeature.subscripts()], + ), + superscript: const TextStyle( + fontFamily: 'SF-UI-Display', + fontFeatures: [FontFeature.superscripts()], + ), ), embedBuilders: [ ...FlutterQuillEmbeds.builders(), diff --git a/example/pubspec.yaml b/example/pubspec.yaml index caaa4ab9..33b1e268 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -87,6 +87,9 @@ flutter: - family: roboto-mono fonts: - asset: assets/fonts/RobotoMono-Regular.ttf + - family: SF-UI-Display + fonts: + - asset: assets/fonts/SF-Pro-Display-Regular.otf # An image asset can refer to one or more resolution-specific "variants", see # https://flutter.dev/assets-and-images/#resolution-aware.