diff --git a/gallery/.gitignore b/gallery/.gitignore
deleted file mode 100644
index 24b006ec5..000000000
--- a/gallery/.gitignore
+++ /dev/null
@@ -1,79 +0,0 @@
-# Miscellaneous
-*.class
-*.log
-*.pyc
-*.swp
-.DS_Store
-.atom/
-.buildlog/
-.history
-.svn/
-.firebase/
-.flutter-plugins-dependencies
-
-# IntelliJ related
-*.iml
-*.ipr
-*.iws
-.idea/
-
-# The .vscode folder contains launch configuration and tasks you configure in
-# VS Code which you may wish to be included in version control, so this line
-# is commented out by default.
-#.vscode/
-
-# Flutter/Dart/Pub related
-**/doc/api/
-.dart_tool/
-.flutter-plugins
-.flutter-plugins-dependencies
-.packages
-.pub-cache/
-.pub/
-/build/
-
-# Android related
-**/android/**/gradle-wrapper.jar
-**/android/.gradle
-**/android/captures/
-**/android/gradlew
-**/android/gradlew.bat
-**/android/local.properties
-**/android/**/GeneratedPluginRegistrant.java
-
-# iOS/XCode related
-**/ios/**/*.mode1v3
-**/ios/**/*.mode2v3
-**/ios/**/*.moved-aside
-**/ios/**/*.pbxuser
-**/ios/**/*.perspectivev3
-**/ios/**/*sync/
-**/ios/**/.sconsign.dblite
-**/ios/**/.tags*
-**/ios/**/.vagrant/
-**/ios/**/DerivedData/
-**/ios/**/Icon?
-**/ios/**/Pods/
-**/ios/**/.symlinks/
-**/ios/**/profile
-**/ios/**/xcuserdata
-**/ios/.generated/
-**/ios/Flutter/App.framework
-**/ios/Flutter/Flutter.framework
-**/ios/Flutter/Generated.xcconfig
-**/ios/Flutter/app.flx
-**/ios/Flutter/app.zip
-**/ios/Flutter/flutter_assets/
-**/ios/Flutter/flutter_export_environment.sh
-**/ios/ServiceDefinitions.json
-**/ios/Runner/GeneratedPluginRegistrant.*
-
-# Web related
-lib/generated_plugin_registrant.dart
-
-# Exceptions to above rules.
-!**/ios/**/default.mode1v3
-!**/ios/**/default.mode2v3
-!**/ios/**/default.pbxuser
-!**/ios/**/default.perspectivev3
-!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
diff --git a/gallery/.metadata b/gallery/.metadata
deleted file mode 100644
index 9ce83ab05..000000000
--- a/gallery/.metadata
+++ /dev/null
@@ -1,10 +0,0 @@
-# This file tracks properties of this Flutter project.
-# Used by Flutter tool to assess capabilities and perform upgrades etc.
-#
-# This file should be version controlled and should not be manually edited.
-
-version:
- revision: f5733f7a62ebc7c2ba324a2b410cd81215956b7d
- channel: master
-
-project_type: app
diff --git a/gallery/README.md b/gallery/README.md
index eb27d5b1f..136755d05 100644
--- a/gallery/README.md
+++ b/gallery/README.md
@@ -1,102 +1,3 @@
-# Flutter Gallery
+The Flutter Gallery has moved to [https://github.com/flutter/gallery].
-Flutter Gallery is a resource to help developers evaluate and use Flutter.
-It is a collection of Material Design & Cupertino widgets, behaviors, and vignettes
-implemented with Flutter. We often get asked how one can see Flutter in action,
-and this gallery demonstrates what Flutter provides and how it behaves in the
-wild.
-
-
-
-## Supported Platforms
-
-Flutter Gallery has been built to support multiple platforms.
-This includes:
-
-- Android
-- iOS
-- web
-- macOS
-- Linux
-- Windows
-
-That being said, extra steps must be taken to [enable Desktop support](
-https://github.com/flutter/flutter/wiki/Desktop-shells#tooling). For
-example, to run the macOS app:
-
-```
-cd gallery/
-flutter config --enable-macos-desktop
-flutter create .
-flutter run -d macos
-```
-
-Additionally, the UI adapts between mobile and desktop layouts regardless of the
-platform it runs on. This is determined based on window size as outlined in
-[adaptive.dart](lib/layout/adaptive.dart).
-
-## To include a new splash animation
-
-1. Convert your animation to a `.gif` file.
- Ideally, use a background color of `0xFF030303` to ensure the animation
- blends into the background of the app.
-
-2. Add your new `.gif` file to the assets directory under
- `assets/splash_effects`. Ensure the name follows the format
- `splash_effect_$num.gif`. The number should be the next number after the
- current largest number in the repository.
-
-3. Update the map `_effectDurations` in
- [splash.dart](lib/pages/splash.dart) to include the number of the
- new `.gif` as well as its estimated duration. The duration is used to
- determine how long to display the splash animation at launch.
-
-## Generating localized strings and highlighted code segments
-
-To generate localized strings or highlighted code segments, make sure that you
-have [grinder](https://pub.dev/packages/grinder) installed. You can install it
-by getting the packages in `samples/gallery/`:
-```
-flutter pub get
-```
-
-To generate localized strings (see separate [README](lib/l10n/README.md)
-for more details):
-
-```
-flutter pub run grinder l10n
-```
-
-To generate code segments (see separate [README](tool/codeviewer_cli/README.md) for
-more details):
-```
-flutter pub run grinder update-code-segments
-```
-
-## Creating a new release (for Flutter org members)
-
-1. Bump the version number up in the `pubspec.yaml`. Use semantic versioning to determine
- which number to increment. For example `2.2.0+020200` should become `2.3.0+020300`.
-
-2. Create a tag on the `master` branch of this repo in the form of `gallery-v2.3`.
- * `git tag gallery-v2.3`
- * `git push --tags`
-
-3. Publish the web release (using the [peanut package](https://pub.dev/packages/peanut)).
- * `flutter pub global activate peanut`
- * `flutter pub global run peanut:peanut`
- * `git push upstream gh-pages:gh-pages`
- * `git update-ref refs/heads/gh-pages upstream/gh-pages` if you need to align with upstream.
-
-4. Publish the Android release (using the correct signing certificates).
- * Create the app bundle with `flutter build appbundle`.
- * Upload to the Play store console.
- * Publish the Play store release.
- * Create the APK with `flutter build apk` (this is for the Github release).
-
-5. Draft a release in Github from the tag you created, call the release `Flutter Gallery 2.3`
- * Upload the Android APK from above.
- * Create and upload the macOS build by running `flutter build macos` and zipping the
- app inside `build/macos/Build/Products/Release`.
- * Optional: Create and upload the Linux/Windows builds.
- * Publish the release.
+The new URL for the Gallery running on web is [https://flutter.github.io/gallery].
\ No newline at end of file
diff --git a/gallery/analysis_options.yaml b/gallery/analysis_options.yaml
deleted file mode 100644
index 82ce8714c..000000000
--- a/gallery/analysis_options.yaml
+++ /dev/null
@@ -1,33 +0,0 @@
-include: package:pedantic/analysis_options.1.8.0.yaml
-
-analyzer:
- exclude:
- - lib/l10n/messages_*.dart
- strong-mode:
- implicit-casts: false
- implicit-dynamic: false
-
-linter:
- rules:
- - avoid_types_on_closure_parameters
- - avoid_void_async
- - await_only_futures
- - camel_case_types
- - cancel_subscriptions
- - close_sinks
- - constant_identifier_names
- - control_flow_in_finally
- - empty_statements
- - hash_and_equals
- - implementation_imports
- - non_constant_identifier_names
- - package_api_docs
- - package_names
- - package_prefixed_library_names
- - test_types_in_equals
- - throw_in_finally
- - unnecessary_brace_in_string_interps
- - unnecessary_getters_setters
- - unnecessary_new
- - unnecessary_statements
- - directives_ordering
diff --git a/gallery/android/.gitignore b/gallery/android/.gitignore
deleted file mode 100644
index b1238cce2..000000000
--- a/gallery/android/.gitignore
+++ /dev/null
@@ -1,12 +0,0 @@
-gradle-wrapper.jar
-/.gradle
-/captures/
-/gradlew
-/gradlew.bat
-/local.properties
-GeneratedPluginRegistrant.java
-
-# Visual Studio Code related
-.classpath
-.project
-.settings/
diff --git a/gallery/android/app/build.gradle b/gallery/android/app/build.gradle
deleted file mode 100644
index 2a761ab74..000000000
--- a/gallery/android/app/build.gradle
+++ /dev/null
@@ -1,66 +0,0 @@
-def localProperties = new Properties()
-def localPropertiesFile = rootProject.file('local.properties')
-if (localPropertiesFile.exists()) {
- localPropertiesFile.withReader('UTF-8') { reader ->
- localProperties.load(reader)
- }
-}
-
-def flutterRoot = localProperties.getProperty('flutter.sdk')
-if (flutterRoot == null) {
- throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
-}
-
-def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
-if (flutterVersionCode == null) {
- flutterVersionCode = '1'
-}
-
-def flutterVersionName = localProperties.getProperty('flutter.versionName')
-if (flutterVersionName == null) {
- flutterVersionName = '1.0'
-}
-
-apply plugin: 'com.android.application'
-apply plugin: 'kotlin-android'
-apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
-
-android {
- compileSdkVersion 28
-
- sourceSets {
- main.java.srcDirs += 'src/main/kotlin'
- }
-
- lintOptions {
- disable 'InvalidPackage'
- }
-
- defaultConfig {
- applicationId "io.flutter.demo.gallery"
- minSdkVersion 16
- targetSdkVersion 28
- versionCode flutterVersionCode.toInteger()
- versionName flutterVersionName
- testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
- }
-
- buildTypes {
- release {
- // TODO: Add your own signing config for the release build.
- // Signing with the debug keys for now, so `flutter run --release` works.
- signingConfig signingConfigs.debug
- }
- }
-}
-
-flutter {
- source '../..'
-}
-
-dependencies {
- implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
- testImplementation 'junit:junit:4.12'
- androidTestImplementation 'androidx.test:runner:1.1.0'
- androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0'
-}
diff --git a/gallery/android/app/src/debug/AndroidManifest.xml b/gallery/android/app/src/debug/AndroidManifest.xml
deleted file mode 100644
index c03b348aa..000000000
--- a/gallery/android/app/src/debug/AndroidManifest.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
diff --git a/gallery/android/app/src/main/AndroidManifest.xml b/gallery/android/app/src/main/AndroidManifest.xml
deleted file mode 100644
index 2a6d1cd8a..000000000
--- a/gallery/android/app/src/main/AndroidManifest.xml
+++ /dev/null
@@ -1,33 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/gallery/android/app/src/main/ic_launcher-web.png b/gallery/android/app/src/main/ic_launcher-web.png
deleted file mode 100644
index e3f586ac5..000000000
Binary files a/gallery/android/app/src/main/ic_launcher-web.png and /dev/null differ
diff --git a/gallery/android/app/src/main/kotlin/io/flutter/demo/gallery/MainActivity.kt b/gallery/android/app/src/main/kotlin/io/flutter/demo/gallery/MainActivity.kt
deleted file mode 100644
index 4f293f765..000000000
--- a/gallery/android/app/src/main/kotlin/io/flutter/demo/gallery/MainActivity.kt
+++ /dev/null
@@ -1,13 +0,0 @@
-package io.flutter.demo.gallery
-
-import android.os.Bundle
-
-import io.flutter.app.FlutterActivity
-import io.flutter.plugins.GeneratedPluginRegistrant
-
-class MainActivity: FlutterActivity() {
- override fun onCreate(savedInstanceState: Bundle?) {
- super.onCreate(savedInstanceState)
- GeneratedPluginRegistrant.registerWith(this)
- }
-}
diff --git a/gallery/android/app/src/main/res/drawable/launch_background.xml b/gallery/android/app/src/main/res/drawable/launch_background.xml
deleted file mode 100644
index 3110d5290..000000000
--- a/gallery/android/app/src/main/res/drawable/launch_background.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
-
-
-
-
diff --git a/gallery/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/gallery/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
deleted file mode 100644
index 4ae7d1237..000000000
--- a/gallery/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
-
-
-
\ No newline at end of file
diff --git a/gallery/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/gallery/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
deleted file mode 100644
index 4ae7d1237..000000000
--- a/gallery/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
-
-
-
\ No newline at end of file
diff --git a/gallery/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/gallery/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
deleted file mode 100644
index 2d843a6b7..000000000
Binary files a/gallery/android/app/src/main/res/mipmap-hdpi/ic_launcher.png and /dev/null differ
diff --git a/gallery/android/app/src/main/res/mipmap-hdpi/ic_launcher_background.png b/gallery/android/app/src/main/res/mipmap-hdpi/ic_launcher_background.png
deleted file mode 100644
index 8800ae301..000000000
Binary files a/gallery/android/app/src/main/res/mipmap-hdpi/ic_launcher_background.png and /dev/null differ
diff --git a/gallery/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png b/gallery/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png
deleted file mode 100644
index 6d0464aa5..000000000
Binary files a/gallery/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png and /dev/null differ
diff --git a/gallery/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png b/gallery/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
deleted file mode 100644
index 23622dd7e..000000000
Binary files a/gallery/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png and /dev/null differ
diff --git a/gallery/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/gallery/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
deleted file mode 100644
index f8a9aed45..000000000
Binary files a/gallery/android/app/src/main/res/mipmap-mdpi/ic_launcher.png and /dev/null differ
diff --git a/gallery/android/app/src/main/res/mipmap-mdpi/ic_launcher_background.png b/gallery/android/app/src/main/res/mipmap-mdpi/ic_launcher_background.png
deleted file mode 100644
index 0233efde6..000000000
Binary files a/gallery/android/app/src/main/res/mipmap-mdpi/ic_launcher_background.png and /dev/null differ
diff --git a/gallery/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png b/gallery/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png
deleted file mode 100644
index 0b35e694e..000000000
Binary files a/gallery/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png and /dev/null differ
diff --git a/gallery/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png b/gallery/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
deleted file mode 100644
index 8532fdbea..000000000
Binary files a/gallery/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png and /dev/null differ
diff --git a/gallery/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/gallery/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
deleted file mode 100644
index 0da4124ae..000000000
Binary files a/gallery/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png and /dev/null differ
diff --git a/gallery/android/app/src/main/res/mipmap-xhdpi/ic_launcher_background.png b/gallery/android/app/src/main/res/mipmap-xhdpi/ic_launcher_background.png
deleted file mode 100644
index 1b03ae091..000000000
Binary files a/gallery/android/app/src/main/res/mipmap-xhdpi/ic_launcher_background.png and /dev/null differ
diff --git a/gallery/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png b/gallery/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png
deleted file mode 100644
index ae5d6004a..000000000
Binary files a/gallery/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png and /dev/null differ
diff --git a/gallery/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/gallery/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
deleted file mode 100644
index ed20f272a..000000000
Binary files a/gallery/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png and /dev/null differ
diff --git a/gallery/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/gallery/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
deleted file mode 100644
index 00b5fa234..000000000
Binary files a/gallery/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png and /dev/null differ
diff --git a/gallery/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_background.png b/gallery/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_background.png
deleted file mode 100644
index f3f6a5750..000000000
Binary files a/gallery/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_background.png and /dev/null differ
diff --git a/gallery/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png b/gallery/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png
deleted file mode 100644
index 8d54c8801..000000000
Binary files a/gallery/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png and /dev/null differ
diff --git a/gallery/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/gallery/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
deleted file mode 100644
index 15a950f4a..000000000
Binary files a/gallery/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png and /dev/null differ
diff --git a/gallery/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/gallery/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
deleted file mode 100644
index 7cf4b7de2..000000000
Binary files a/gallery/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png and /dev/null differ
diff --git a/gallery/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_background.png b/gallery/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_background.png
deleted file mode 100644
index 907043d52..000000000
Binary files a/gallery/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_background.png and /dev/null differ
diff --git a/gallery/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png b/gallery/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png
deleted file mode 100644
index a7cd5bba4..000000000
Binary files a/gallery/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png and /dev/null differ
diff --git a/gallery/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/gallery/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
deleted file mode 100644
index 03a781d60..000000000
Binary files a/gallery/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png and /dev/null differ
diff --git a/gallery/android/app/src/main/res/values/styles.xml b/gallery/android/app/src/main/res/values/styles.xml
deleted file mode 100644
index 17933f5a4..000000000
--- a/gallery/android/app/src/main/res/values/styles.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
- #030303
-
diff --git a/gallery/android/app/src/profile/AndroidManifest.xml b/gallery/android/app/src/profile/AndroidManifest.xml
deleted file mode 100644
index c03b348aa..000000000
--- a/gallery/android/app/src/profile/AndroidManifest.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
diff --git a/gallery/android/build.gradle b/gallery/android/build.gradle
deleted file mode 100644
index b7faad8f5..000000000
--- a/gallery/android/build.gradle
+++ /dev/null
@@ -1,31 +0,0 @@
-buildscript {
- ext.kotlin_version = '1.2.71'
- repositories {
- google()
- jcenter()
- }
-
- dependencies {
- classpath 'com.android.tools.build:gradle:3.2.1'
- classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
- }
-}
-
-allprojects {
- repositories {
- google()
- jcenter()
- }
-}
-
-rootProject.buildDir = '../build'
-subprojects {
- project.buildDir = "${rootProject.buildDir}/${project.name}"
-}
-subprojects {
- project.evaluationDependsOn(':app')
-}
-
-task clean(type: Delete) {
- delete rootProject.buildDir
-}
diff --git a/gallery/android/gradle.properties b/gallery/android/gradle.properties
deleted file mode 100644
index 2324ab5b7..000000000
--- a/gallery/android/gradle.properties
+++ /dev/null
@@ -1,5 +0,0 @@
-org.gradle.jvmargs=-Xmx1536M
-
-android.enableR8=true
-android.useAndroidX=true
-android.enableJetifier=true
diff --git a/gallery/android/gradle/wrapper/gradle-wrapper.properties b/gallery/android/gradle/wrapper/gradle-wrapper.properties
deleted file mode 100644
index 2819f022f..000000000
--- a/gallery/android/gradle/wrapper/gradle-wrapper.properties
+++ /dev/null
@@ -1,6 +0,0 @@
-#Fri Jun 23 08:50:38 CEST 2017
-distributionBase=GRADLE_USER_HOME
-distributionPath=wrapper/dists
-zipStoreBase=GRADLE_USER_HOME
-zipStorePath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-all.zip
diff --git a/gallery/android/settings.gradle b/gallery/android/settings.gradle
deleted file mode 100644
index 5a2f14fb1..000000000
--- a/gallery/android/settings.gradle
+++ /dev/null
@@ -1,15 +0,0 @@
-include ':app'
-
-def flutterProjectRoot = rootProject.projectDir.parentFile.toPath()
-
-def plugins = new Properties()
-def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins')
-if (pluginsFile.exists()) {
- pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) }
-}
-
-plugins.each { name, path ->
- def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile()
- include ":$name"
- project(":$name").projectDir = pluginDirectory
-}
diff --git a/gallery/assets/crane/destinations/2.0x/eat_0.jpg b/gallery/assets/crane/destinations/2.0x/eat_0.jpg
deleted file mode 100644
index e673cb747..000000000
Binary files a/gallery/assets/crane/destinations/2.0x/eat_0.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/2.0x/eat_1.jpg b/gallery/assets/crane/destinations/2.0x/eat_1.jpg
deleted file mode 100644
index 78688148b..000000000
Binary files a/gallery/assets/crane/destinations/2.0x/eat_1.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/2.0x/eat_10.jpg b/gallery/assets/crane/destinations/2.0x/eat_10.jpg
deleted file mode 100644
index 0f91457ae..000000000
Binary files a/gallery/assets/crane/destinations/2.0x/eat_10.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/2.0x/eat_2.jpg b/gallery/assets/crane/destinations/2.0x/eat_2.jpg
deleted file mode 100644
index c6afc5752..000000000
Binary files a/gallery/assets/crane/destinations/2.0x/eat_2.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/2.0x/eat_3.jpg b/gallery/assets/crane/destinations/2.0x/eat_3.jpg
deleted file mode 100644
index 2346eec73..000000000
Binary files a/gallery/assets/crane/destinations/2.0x/eat_3.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/2.0x/eat_4.jpg b/gallery/assets/crane/destinations/2.0x/eat_4.jpg
deleted file mode 100644
index f68dd578c..000000000
Binary files a/gallery/assets/crane/destinations/2.0x/eat_4.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/2.0x/eat_5.jpg b/gallery/assets/crane/destinations/2.0x/eat_5.jpg
deleted file mode 100644
index 17c85e375..000000000
Binary files a/gallery/assets/crane/destinations/2.0x/eat_5.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/2.0x/eat_6.jpg b/gallery/assets/crane/destinations/2.0x/eat_6.jpg
deleted file mode 100644
index 17aa099f0..000000000
Binary files a/gallery/assets/crane/destinations/2.0x/eat_6.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/2.0x/eat_7.jpg b/gallery/assets/crane/destinations/2.0x/eat_7.jpg
deleted file mode 100644
index 8392e0761..000000000
Binary files a/gallery/assets/crane/destinations/2.0x/eat_7.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/2.0x/eat_8.jpg b/gallery/assets/crane/destinations/2.0x/eat_8.jpg
deleted file mode 100644
index b3e028643..000000000
Binary files a/gallery/assets/crane/destinations/2.0x/eat_8.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/2.0x/eat_9.jpg b/gallery/assets/crane/destinations/2.0x/eat_9.jpg
deleted file mode 100644
index b9f36b812..000000000
Binary files a/gallery/assets/crane/destinations/2.0x/eat_9.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/2.0x/fly_0.jpg b/gallery/assets/crane/destinations/2.0x/fly_0.jpg
deleted file mode 100644
index 48e91c081..000000000
Binary files a/gallery/assets/crane/destinations/2.0x/fly_0.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/2.0x/fly_1.jpg b/gallery/assets/crane/destinations/2.0x/fly_1.jpg
deleted file mode 100644
index 0deb60b4d..000000000
Binary files a/gallery/assets/crane/destinations/2.0x/fly_1.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/2.0x/fly_10.jpg b/gallery/assets/crane/destinations/2.0x/fly_10.jpg
deleted file mode 100644
index ea424cd2f..000000000
Binary files a/gallery/assets/crane/destinations/2.0x/fly_10.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/2.0x/fly_11.jpg b/gallery/assets/crane/destinations/2.0x/fly_11.jpg
deleted file mode 100644
index f333d6c3e..000000000
Binary files a/gallery/assets/crane/destinations/2.0x/fly_11.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/2.0x/fly_12.jpg b/gallery/assets/crane/destinations/2.0x/fly_12.jpg
deleted file mode 100644
index 7e4b9347c..000000000
Binary files a/gallery/assets/crane/destinations/2.0x/fly_12.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/2.0x/fly_13.jpg b/gallery/assets/crane/destinations/2.0x/fly_13.jpg
deleted file mode 100644
index aac190a85..000000000
Binary files a/gallery/assets/crane/destinations/2.0x/fly_13.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/2.0x/fly_2.jpg b/gallery/assets/crane/destinations/2.0x/fly_2.jpg
deleted file mode 100644
index fa7cf2d77..000000000
Binary files a/gallery/assets/crane/destinations/2.0x/fly_2.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/2.0x/fly_3.jpg b/gallery/assets/crane/destinations/2.0x/fly_3.jpg
deleted file mode 100644
index 970a7ed72..000000000
Binary files a/gallery/assets/crane/destinations/2.0x/fly_3.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/2.0x/fly_4.jpg b/gallery/assets/crane/destinations/2.0x/fly_4.jpg
deleted file mode 100644
index 06588096e..000000000
Binary files a/gallery/assets/crane/destinations/2.0x/fly_4.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/2.0x/fly_5.jpg b/gallery/assets/crane/destinations/2.0x/fly_5.jpg
deleted file mode 100644
index d273dc07b..000000000
Binary files a/gallery/assets/crane/destinations/2.0x/fly_5.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/2.0x/fly_6.jpg b/gallery/assets/crane/destinations/2.0x/fly_6.jpg
deleted file mode 100644
index c150d8baf..000000000
Binary files a/gallery/assets/crane/destinations/2.0x/fly_6.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/2.0x/fly_7.jpg b/gallery/assets/crane/destinations/2.0x/fly_7.jpg
deleted file mode 100644
index 1efbe28d0..000000000
Binary files a/gallery/assets/crane/destinations/2.0x/fly_7.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/2.0x/fly_8.jpg b/gallery/assets/crane/destinations/2.0x/fly_8.jpg
deleted file mode 100644
index edc7da202..000000000
Binary files a/gallery/assets/crane/destinations/2.0x/fly_8.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/2.0x/fly_9.jpg b/gallery/assets/crane/destinations/2.0x/fly_9.jpg
deleted file mode 100644
index 29821e8e8..000000000
Binary files a/gallery/assets/crane/destinations/2.0x/fly_9.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/2.0x/sleep_0.jpg b/gallery/assets/crane/destinations/2.0x/sleep_0.jpg
deleted file mode 100644
index 06588096e..000000000
Binary files a/gallery/assets/crane/destinations/2.0x/sleep_0.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/2.0x/sleep_1.jpg b/gallery/assets/crane/destinations/2.0x/sleep_1.jpg
deleted file mode 100644
index 48e91c081..000000000
Binary files a/gallery/assets/crane/destinations/2.0x/sleep_1.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/2.0x/sleep_10.jpg b/gallery/assets/crane/destinations/2.0x/sleep_10.jpg
deleted file mode 100644
index ea424cd2f..000000000
Binary files a/gallery/assets/crane/destinations/2.0x/sleep_10.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/2.0x/sleep_11.jpg b/gallery/assets/crane/destinations/2.0x/sleep_11.jpg
deleted file mode 100644
index 5551265d1..000000000
Binary files a/gallery/assets/crane/destinations/2.0x/sleep_11.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/2.0x/sleep_2.jpg b/gallery/assets/crane/destinations/2.0x/sleep_2.jpg
deleted file mode 100644
index 970a7ed72..000000000
Binary files a/gallery/assets/crane/destinations/2.0x/sleep_2.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/2.0x/sleep_3.jpg b/gallery/assets/crane/destinations/2.0x/sleep_3.jpg
deleted file mode 100644
index 29821e8e8..000000000
Binary files a/gallery/assets/crane/destinations/2.0x/sleep_3.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/2.0x/sleep_4.jpg b/gallery/assets/crane/destinations/2.0x/sleep_4.jpg
deleted file mode 100644
index d273dc07b..000000000
Binary files a/gallery/assets/crane/destinations/2.0x/sleep_4.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/2.0x/sleep_5.jpg b/gallery/assets/crane/destinations/2.0x/sleep_5.jpg
deleted file mode 100644
index 0deb60b4d..000000000
Binary files a/gallery/assets/crane/destinations/2.0x/sleep_5.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/2.0x/sleep_6.jpg b/gallery/assets/crane/destinations/2.0x/sleep_6.jpg
deleted file mode 100644
index 7e4b9347c..000000000
Binary files a/gallery/assets/crane/destinations/2.0x/sleep_6.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/2.0x/sleep_7.jpg b/gallery/assets/crane/destinations/2.0x/sleep_7.jpg
deleted file mode 100644
index 19cd9f641..000000000
Binary files a/gallery/assets/crane/destinations/2.0x/sleep_7.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/2.0x/sleep_8.jpg b/gallery/assets/crane/destinations/2.0x/sleep_8.jpg
deleted file mode 100644
index 8b0e05f88..000000000
Binary files a/gallery/assets/crane/destinations/2.0x/sleep_8.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/2.0x/sleep_9.jpg b/gallery/assets/crane/destinations/2.0x/sleep_9.jpg
deleted file mode 100644
index f333d6c3e..000000000
Binary files a/gallery/assets/crane/destinations/2.0x/sleep_9.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/3.0x/eat_0.jpg b/gallery/assets/crane/destinations/3.0x/eat_0.jpg
deleted file mode 100644
index 7e0ce7c75..000000000
Binary files a/gallery/assets/crane/destinations/3.0x/eat_0.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/3.0x/eat_1.jpg b/gallery/assets/crane/destinations/3.0x/eat_1.jpg
deleted file mode 100644
index d36a98c5d..000000000
Binary files a/gallery/assets/crane/destinations/3.0x/eat_1.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/3.0x/eat_10.jpg b/gallery/assets/crane/destinations/3.0x/eat_10.jpg
deleted file mode 100644
index f6036ca30..000000000
Binary files a/gallery/assets/crane/destinations/3.0x/eat_10.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/3.0x/eat_2.jpg b/gallery/assets/crane/destinations/3.0x/eat_2.jpg
deleted file mode 100644
index 95709ffb2..000000000
Binary files a/gallery/assets/crane/destinations/3.0x/eat_2.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/3.0x/eat_3.jpg b/gallery/assets/crane/destinations/3.0x/eat_3.jpg
deleted file mode 100644
index cb8077b9d..000000000
Binary files a/gallery/assets/crane/destinations/3.0x/eat_3.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/3.0x/eat_4.jpg b/gallery/assets/crane/destinations/3.0x/eat_4.jpg
deleted file mode 100644
index 60d2bb849..000000000
Binary files a/gallery/assets/crane/destinations/3.0x/eat_4.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/3.0x/eat_5.jpg b/gallery/assets/crane/destinations/3.0x/eat_5.jpg
deleted file mode 100644
index 3d55f7abe..000000000
Binary files a/gallery/assets/crane/destinations/3.0x/eat_5.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/3.0x/eat_6.jpg b/gallery/assets/crane/destinations/3.0x/eat_6.jpg
deleted file mode 100644
index e53f900ec..000000000
Binary files a/gallery/assets/crane/destinations/3.0x/eat_6.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/3.0x/eat_7.jpg b/gallery/assets/crane/destinations/3.0x/eat_7.jpg
deleted file mode 100644
index 46a08368a..000000000
Binary files a/gallery/assets/crane/destinations/3.0x/eat_7.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/3.0x/eat_8.jpg b/gallery/assets/crane/destinations/3.0x/eat_8.jpg
deleted file mode 100644
index 807a347d3..000000000
Binary files a/gallery/assets/crane/destinations/3.0x/eat_8.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/3.0x/eat_9.jpg b/gallery/assets/crane/destinations/3.0x/eat_9.jpg
deleted file mode 100644
index d6c32b004..000000000
Binary files a/gallery/assets/crane/destinations/3.0x/eat_9.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/3.0x/fly_0.jpg b/gallery/assets/crane/destinations/3.0x/fly_0.jpg
deleted file mode 100644
index cba1b54ed..000000000
Binary files a/gallery/assets/crane/destinations/3.0x/fly_0.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/3.0x/fly_1.jpg b/gallery/assets/crane/destinations/3.0x/fly_1.jpg
deleted file mode 100644
index d86aed5a1..000000000
Binary files a/gallery/assets/crane/destinations/3.0x/fly_1.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/3.0x/fly_10.jpg b/gallery/assets/crane/destinations/3.0x/fly_10.jpg
deleted file mode 100644
index 7fe34634a..000000000
Binary files a/gallery/assets/crane/destinations/3.0x/fly_10.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/3.0x/fly_11.jpg b/gallery/assets/crane/destinations/3.0x/fly_11.jpg
deleted file mode 100644
index e47bdfec0..000000000
Binary files a/gallery/assets/crane/destinations/3.0x/fly_11.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/3.0x/fly_12.jpg b/gallery/assets/crane/destinations/3.0x/fly_12.jpg
deleted file mode 100644
index d8df0c9c4..000000000
Binary files a/gallery/assets/crane/destinations/3.0x/fly_12.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/3.0x/fly_13.jpg b/gallery/assets/crane/destinations/3.0x/fly_13.jpg
deleted file mode 100644
index 69372ec0d..000000000
Binary files a/gallery/assets/crane/destinations/3.0x/fly_13.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/3.0x/fly_2.jpg b/gallery/assets/crane/destinations/3.0x/fly_2.jpg
deleted file mode 100644
index 32585fa43..000000000
Binary files a/gallery/assets/crane/destinations/3.0x/fly_2.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/3.0x/fly_3.jpg b/gallery/assets/crane/destinations/3.0x/fly_3.jpg
deleted file mode 100644
index 5d970aacf..000000000
Binary files a/gallery/assets/crane/destinations/3.0x/fly_3.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/3.0x/fly_4.jpg b/gallery/assets/crane/destinations/3.0x/fly_4.jpg
deleted file mode 100644
index d3e848bb5..000000000
Binary files a/gallery/assets/crane/destinations/3.0x/fly_4.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/3.0x/fly_5.jpg b/gallery/assets/crane/destinations/3.0x/fly_5.jpg
deleted file mode 100644
index c984ce1d0..000000000
Binary files a/gallery/assets/crane/destinations/3.0x/fly_5.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/3.0x/fly_6.jpg b/gallery/assets/crane/destinations/3.0x/fly_6.jpg
deleted file mode 100644
index 53e56af04..000000000
Binary files a/gallery/assets/crane/destinations/3.0x/fly_6.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/3.0x/fly_7.jpg b/gallery/assets/crane/destinations/3.0x/fly_7.jpg
deleted file mode 100644
index 585a44a6a..000000000
Binary files a/gallery/assets/crane/destinations/3.0x/fly_7.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/3.0x/fly_8.jpg b/gallery/assets/crane/destinations/3.0x/fly_8.jpg
deleted file mode 100644
index ceeaef123..000000000
Binary files a/gallery/assets/crane/destinations/3.0x/fly_8.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/3.0x/fly_9.jpg b/gallery/assets/crane/destinations/3.0x/fly_9.jpg
deleted file mode 100644
index bc12d0f0e..000000000
Binary files a/gallery/assets/crane/destinations/3.0x/fly_9.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/3.0x/sleep_0.jpg b/gallery/assets/crane/destinations/3.0x/sleep_0.jpg
deleted file mode 100644
index d3e848bb5..000000000
Binary files a/gallery/assets/crane/destinations/3.0x/sleep_0.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/3.0x/sleep_1.jpg b/gallery/assets/crane/destinations/3.0x/sleep_1.jpg
deleted file mode 100644
index cba1b54ed..000000000
Binary files a/gallery/assets/crane/destinations/3.0x/sleep_1.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/3.0x/sleep_10.jpg b/gallery/assets/crane/destinations/3.0x/sleep_10.jpg
deleted file mode 100644
index 7fe34634a..000000000
Binary files a/gallery/assets/crane/destinations/3.0x/sleep_10.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/3.0x/sleep_11.jpg b/gallery/assets/crane/destinations/3.0x/sleep_11.jpg
deleted file mode 100644
index 832430954..000000000
Binary files a/gallery/assets/crane/destinations/3.0x/sleep_11.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/3.0x/sleep_2.jpg b/gallery/assets/crane/destinations/3.0x/sleep_2.jpg
deleted file mode 100644
index 5d970aacf..000000000
Binary files a/gallery/assets/crane/destinations/3.0x/sleep_2.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/3.0x/sleep_3.jpg b/gallery/assets/crane/destinations/3.0x/sleep_3.jpg
deleted file mode 100644
index bc12d0f0e..000000000
Binary files a/gallery/assets/crane/destinations/3.0x/sleep_3.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/3.0x/sleep_4.jpg b/gallery/assets/crane/destinations/3.0x/sleep_4.jpg
deleted file mode 100644
index c984ce1d0..000000000
Binary files a/gallery/assets/crane/destinations/3.0x/sleep_4.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/3.0x/sleep_5.jpg b/gallery/assets/crane/destinations/3.0x/sleep_5.jpg
deleted file mode 100644
index d86aed5a1..000000000
Binary files a/gallery/assets/crane/destinations/3.0x/sleep_5.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/3.0x/sleep_6.jpg b/gallery/assets/crane/destinations/3.0x/sleep_6.jpg
deleted file mode 100644
index d8df0c9c4..000000000
Binary files a/gallery/assets/crane/destinations/3.0x/sleep_6.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/3.0x/sleep_7.jpg b/gallery/assets/crane/destinations/3.0x/sleep_7.jpg
deleted file mode 100644
index 29c83b4d4..000000000
Binary files a/gallery/assets/crane/destinations/3.0x/sleep_7.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/3.0x/sleep_8.jpg b/gallery/assets/crane/destinations/3.0x/sleep_8.jpg
deleted file mode 100644
index 41d45d38c..000000000
Binary files a/gallery/assets/crane/destinations/3.0x/sleep_8.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/3.0x/sleep_9.jpg b/gallery/assets/crane/destinations/3.0x/sleep_9.jpg
deleted file mode 100644
index e47bdfec0..000000000
Binary files a/gallery/assets/crane/destinations/3.0x/sleep_9.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/eat_0.jpg b/gallery/assets/crane/destinations/eat_0.jpg
deleted file mode 100644
index 564ff880b..000000000
Binary files a/gallery/assets/crane/destinations/eat_0.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/eat_1.jpg b/gallery/assets/crane/destinations/eat_1.jpg
deleted file mode 100644
index 496c3e31e..000000000
Binary files a/gallery/assets/crane/destinations/eat_1.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/eat_10.jpg b/gallery/assets/crane/destinations/eat_10.jpg
deleted file mode 100644
index d230466bb..000000000
Binary files a/gallery/assets/crane/destinations/eat_10.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/eat_2.jpg b/gallery/assets/crane/destinations/eat_2.jpg
deleted file mode 100644
index ec3f53238..000000000
Binary files a/gallery/assets/crane/destinations/eat_2.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/eat_3.jpg b/gallery/assets/crane/destinations/eat_3.jpg
deleted file mode 100644
index 441200d0d..000000000
Binary files a/gallery/assets/crane/destinations/eat_3.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/eat_4.jpg b/gallery/assets/crane/destinations/eat_4.jpg
deleted file mode 100644
index e9c23e290..000000000
Binary files a/gallery/assets/crane/destinations/eat_4.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/eat_5.jpg b/gallery/assets/crane/destinations/eat_5.jpg
deleted file mode 100644
index fb3233c13..000000000
Binary files a/gallery/assets/crane/destinations/eat_5.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/eat_6.jpg b/gallery/assets/crane/destinations/eat_6.jpg
deleted file mode 100644
index 78229c9aa..000000000
Binary files a/gallery/assets/crane/destinations/eat_6.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/eat_7.jpg b/gallery/assets/crane/destinations/eat_7.jpg
deleted file mode 100644
index 073642f43..000000000
Binary files a/gallery/assets/crane/destinations/eat_7.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/eat_8.jpg b/gallery/assets/crane/destinations/eat_8.jpg
deleted file mode 100644
index f5015f160..000000000
Binary files a/gallery/assets/crane/destinations/eat_8.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/eat_9.jpg b/gallery/assets/crane/destinations/eat_9.jpg
deleted file mode 100644
index 0da6288f5..000000000
Binary files a/gallery/assets/crane/destinations/eat_9.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/fly_0.jpg b/gallery/assets/crane/destinations/fly_0.jpg
deleted file mode 100644
index 7bb5aa90c..000000000
Binary files a/gallery/assets/crane/destinations/fly_0.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/fly_1.jpg b/gallery/assets/crane/destinations/fly_1.jpg
deleted file mode 100644
index 5fc5af75a..000000000
Binary files a/gallery/assets/crane/destinations/fly_1.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/fly_10.jpg b/gallery/assets/crane/destinations/fly_10.jpg
deleted file mode 100644
index b6de95ddd..000000000
Binary files a/gallery/assets/crane/destinations/fly_10.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/fly_11.jpg b/gallery/assets/crane/destinations/fly_11.jpg
deleted file mode 100644
index 6bb5ba3ca..000000000
Binary files a/gallery/assets/crane/destinations/fly_11.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/fly_12.jpg b/gallery/assets/crane/destinations/fly_12.jpg
deleted file mode 100644
index 77ae7d774..000000000
Binary files a/gallery/assets/crane/destinations/fly_12.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/fly_13.jpg b/gallery/assets/crane/destinations/fly_13.jpg
deleted file mode 100644
index 5b05a7a39..000000000
Binary files a/gallery/assets/crane/destinations/fly_13.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/fly_2.jpg b/gallery/assets/crane/destinations/fly_2.jpg
deleted file mode 100644
index dd46463e8..000000000
Binary files a/gallery/assets/crane/destinations/fly_2.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/fly_3.jpg b/gallery/assets/crane/destinations/fly_3.jpg
deleted file mode 100644
index 2e8dc5ab0..000000000
Binary files a/gallery/assets/crane/destinations/fly_3.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/fly_4.jpg b/gallery/assets/crane/destinations/fly_4.jpg
deleted file mode 100644
index ea88f1a6d..000000000
Binary files a/gallery/assets/crane/destinations/fly_4.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/fly_5.jpg b/gallery/assets/crane/destinations/fly_5.jpg
deleted file mode 100644
index f399137e0..000000000
Binary files a/gallery/assets/crane/destinations/fly_5.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/fly_6.jpg b/gallery/assets/crane/destinations/fly_6.jpg
deleted file mode 100644
index d81eeab16..000000000
Binary files a/gallery/assets/crane/destinations/fly_6.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/fly_7.jpg b/gallery/assets/crane/destinations/fly_7.jpg
deleted file mode 100644
index bdcecb047..000000000
Binary files a/gallery/assets/crane/destinations/fly_7.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/fly_8.jpg b/gallery/assets/crane/destinations/fly_8.jpg
deleted file mode 100644
index 828b11327..000000000
Binary files a/gallery/assets/crane/destinations/fly_8.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/fly_9.jpg b/gallery/assets/crane/destinations/fly_9.jpg
deleted file mode 100644
index e03d23156..000000000
Binary files a/gallery/assets/crane/destinations/fly_9.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/sleep_0.jpg b/gallery/assets/crane/destinations/sleep_0.jpg
deleted file mode 100644
index ea88f1a6d..000000000
Binary files a/gallery/assets/crane/destinations/sleep_0.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/sleep_1.jpg b/gallery/assets/crane/destinations/sleep_1.jpg
deleted file mode 100644
index 7bb5aa90c..000000000
Binary files a/gallery/assets/crane/destinations/sleep_1.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/sleep_10.jpg b/gallery/assets/crane/destinations/sleep_10.jpg
deleted file mode 100644
index b6de95ddd..000000000
Binary files a/gallery/assets/crane/destinations/sleep_10.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/sleep_11.jpg b/gallery/assets/crane/destinations/sleep_11.jpg
deleted file mode 100644
index 0bd5678ce..000000000
Binary files a/gallery/assets/crane/destinations/sleep_11.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/sleep_2.jpg b/gallery/assets/crane/destinations/sleep_2.jpg
deleted file mode 100644
index 2e8dc5ab0..000000000
Binary files a/gallery/assets/crane/destinations/sleep_2.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/sleep_3.jpg b/gallery/assets/crane/destinations/sleep_3.jpg
deleted file mode 100644
index e03d23156..000000000
Binary files a/gallery/assets/crane/destinations/sleep_3.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/sleep_4.jpg b/gallery/assets/crane/destinations/sleep_4.jpg
deleted file mode 100644
index f399137e0..000000000
Binary files a/gallery/assets/crane/destinations/sleep_4.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/sleep_5.jpg b/gallery/assets/crane/destinations/sleep_5.jpg
deleted file mode 100644
index 5fc5af75a..000000000
Binary files a/gallery/assets/crane/destinations/sleep_5.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/sleep_6.jpg b/gallery/assets/crane/destinations/sleep_6.jpg
deleted file mode 100644
index 77ae7d774..000000000
Binary files a/gallery/assets/crane/destinations/sleep_6.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/sleep_7.jpg b/gallery/assets/crane/destinations/sleep_7.jpg
deleted file mode 100644
index d6d630816..000000000
Binary files a/gallery/assets/crane/destinations/sleep_7.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/sleep_8.jpg b/gallery/assets/crane/destinations/sleep_8.jpg
deleted file mode 100644
index e27d463d9..000000000
Binary files a/gallery/assets/crane/destinations/sleep_8.jpg and /dev/null differ
diff --git a/gallery/assets/crane/destinations/sleep_9.jpg b/gallery/assets/crane/destinations/sleep_9.jpg
deleted file mode 100644
index 6bb5ba3ca..000000000
Binary files a/gallery/assets/crane/destinations/sleep_9.jpg and /dev/null differ
diff --git a/gallery/assets/crane/logo/2.0x/logo.png b/gallery/assets/crane/logo/2.0x/logo.png
deleted file mode 100644
index 11a55d975..000000000
Binary files a/gallery/assets/crane/logo/2.0x/logo.png and /dev/null differ
diff --git a/gallery/assets/crane/logo/3.0x/logo.png b/gallery/assets/crane/logo/3.0x/logo.png
deleted file mode 100644
index a54f9faed..000000000
Binary files a/gallery/assets/crane/logo/3.0x/logo.png and /dev/null differ
diff --git a/gallery/assets/crane/logo/logo.png b/gallery/assets/crane/logo/logo.png
deleted file mode 100644
index 44545b0b2..000000000
Binary files a/gallery/assets/crane/logo/logo.png and /dev/null differ
diff --git a/gallery/assets/crane/logo/outline_logo.png b/gallery/assets/crane/logo/outline_logo.png
deleted file mode 100644
index 903c24436..000000000
Binary files a/gallery/assets/crane/logo/outline_logo.png and /dev/null differ
diff --git a/gallery/assets/demos/1.5x/bottom_navigation_background.png b/gallery/assets/demos/1.5x/bottom_navigation_background.png
deleted file mode 100644
index 308c3b73c..000000000
Binary files a/gallery/assets/demos/1.5x/bottom_navigation_background.png and /dev/null differ
diff --git a/gallery/assets/demos/2.0x/bottom_navigation_background.png b/gallery/assets/demos/2.0x/bottom_navigation_background.png
deleted file mode 100644
index e8ac9e307..000000000
Binary files a/gallery/assets/demos/2.0x/bottom_navigation_background.png and /dev/null differ
diff --git a/gallery/assets/demos/3.0x/bottom_navigation_background.png b/gallery/assets/demos/3.0x/bottom_navigation_background.png
deleted file mode 100644
index 794dbb0bc..000000000
Binary files a/gallery/assets/demos/3.0x/bottom_navigation_background.png and /dev/null differ
diff --git a/gallery/assets/demos/4.0x/bottom_navigation_background.png b/gallery/assets/demos/4.0x/bottom_navigation_background.png
deleted file mode 100644
index e3d1d4b07..000000000
Binary files a/gallery/assets/demos/4.0x/bottom_navigation_background.png and /dev/null differ
diff --git a/gallery/assets/demos/bottom_navigation_background.png b/gallery/assets/demos/bottom_navigation_background.png
deleted file mode 100644
index b1386f558..000000000
Binary files a/gallery/assets/demos/bottom_navigation_background.png and /dev/null differ
diff --git a/gallery/assets/fortnightly/1.5x/fortnightly_bees.jpg b/gallery/assets/fortnightly/1.5x/fortnightly_bees.jpg
deleted file mode 100644
index e3ca3ed08..000000000
Binary files a/gallery/assets/fortnightly/1.5x/fortnightly_bees.jpg and /dev/null differ
diff --git a/gallery/assets/fortnightly/1.5x/fortnightly_chart.png b/gallery/assets/fortnightly/1.5x/fortnightly_chart.png
deleted file mode 100644
index 792311070..000000000
Binary files a/gallery/assets/fortnightly/1.5x/fortnightly_chart.png and /dev/null differ
diff --git a/gallery/assets/fortnightly/1.5x/fortnightly_feminists.jpg b/gallery/assets/fortnightly/1.5x/fortnightly_feminists.jpg
deleted file mode 100644
index f495395c7..000000000
Binary files a/gallery/assets/fortnightly/1.5x/fortnightly_feminists.jpg and /dev/null differ
diff --git a/gallery/assets/fortnightly/1.5x/fortnightly_healthcare.jpg b/gallery/assets/fortnightly/1.5x/fortnightly_healthcare.jpg
deleted file mode 100644
index a2277ae46..000000000
Binary files a/gallery/assets/fortnightly/1.5x/fortnightly_healthcare.jpg and /dev/null differ
diff --git a/gallery/assets/fortnightly/1.5x/fortnightly_title.png b/gallery/assets/fortnightly/1.5x/fortnightly_title.png
deleted file mode 100644
index 83fcb929e..000000000
Binary files a/gallery/assets/fortnightly/1.5x/fortnightly_title.png and /dev/null differ
diff --git a/gallery/assets/fortnightly/2.0x/fortnightly_bees.jpg b/gallery/assets/fortnightly/2.0x/fortnightly_bees.jpg
deleted file mode 100644
index a5e882ce7..000000000
Binary files a/gallery/assets/fortnightly/2.0x/fortnightly_bees.jpg and /dev/null differ
diff --git a/gallery/assets/fortnightly/2.0x/fortnightly_chart.png b/gallery/assets/fortnightly/2.0x/fortnightly_chart.png
deleted file mode 100644
index 4cf8a056d..000000000
Binary files a/gallery/assets/fortnightly/2.0x/fortnightly_chart.png and /dev/null differ
diff --git a/gallery/assets/fortnightly/2.0x/fortnightly_feminists.jpg b/gallery/assets/fortnightly/2.0x/fortnightly_feminists.jpg
deleted file mode 100644
index a7d62332f..000000000
Binary files a/gallery/assets/fortnightly/2.0x/fortnightly_feminists.jpg and /dev/null differ
diff --git a/gallery/assets/fortnightly/2.0x/fortnightly_healthcare.jpg b/gallery/assets/fortnightly/2.0x/fortnightly_healthcare.jpg
deleted file mode 100644
index 72e8e8db1..000000000
Binary files a/gallery/assets/fortnightly/2.0x/fortnightly_healthcare.jpg and /dev/null differ
diff --git a/gallery/assets/fortnightly/2.0x/fortnightly_title.png b/gallery/assets/fortnightly/2.0x/fortnightly_title.png
deleted file mode 100644
index 4469cf0ca..000000000
Binary files a/gallery/assets/fortnightly/2.0x/fortnightly_title.png and /dev/null differ
diff --git a/gallery/assets/fortnightly/3.0x/fortnightly_bees.jpg b/gallery/assets/fortnightly/3.0x/fortnightly_bees.jpg
deleted file mode 100644
index adc27d4d3..000000000
Binary files a/gallery/assets/fortnightly/3.0x/fortnightly_bees.jpg and /dev/null differ
diff --git a/gallery/assets/fortnightly/3.0x/fortnightly_chart.png b/gallery/assets/fortnightly/3.0x/fortnightly_chart.png
deleted file mode 100644
index 4fc782d11..000000000
Binary files a/gallery/assets/fortnightly/3.0x/fortnightly_chart.png and /dev/null differ
diff --git a/gallery/assets/fortnightly/3.0x/fortnightly_feminists.jpg b/gallery/assets/fortnightly/3.0x/fortnightly_feminists.jpg
deleted file mode 100644
index 0f4a1b246..000000000
Binary files a/gallery/assets/fortnightly/3.0x/fortnightly_feminists.jpg and /dev/null differ
diff --git a/gallery/assets/fortnightly/3.0x/fortnightly_healthcare.jpg b/gallery/assets/fortnightly/3.0x/fortnightly_healthcare.jpg
deleted file mode 100644
index 6bd6505ff..000000000
Binary files a/gallery/assets/fortnightly/3.0x/fortnightly_healthcare.jpg and /dev/null differ
diff --git a/gallery/assets/fortnightly/3.0x/fortnightly_title.png b/gallery/assets/fortnightly/3.0x/fortnightly_title.png
deleted file mode 100644
index c5cd6a009..000000000
Binary files a/gallery/assets/fortnightly/3.0x/fortnightly_title.png and /dev/null differ
diff --git a/gallery/assets/fortnightly/4.0x/fortnightly_bees.jpg b/gallery/assets/fortnightly/4.0x/fortnightly_bees.jpg
deleted file mode 100644
index 3c2204310..000000000
Binary files a/gallery/assets/fortnightly/4.0x/fortnightly_bees.jpg and /dev/null differ
diff --git a/gallery/assets/fortnightly/4.0x/fortnightly_chart.png b/gallery/assets/fortnightly/4.0x/fortnightly_chart.png
deleted file mode 100644
index 81a923037..000000000
Binary files a/gallery/assets/fortnightly/4.0x/fortnightly_chart.png and /dev/null differ
diff --git a/gallery/assets/fortnightly/4.0x/fortnightly_feminists.jpg b/gallery/assets/fortnightly/4.0x/fortnightly_feminists.jpg
deleted file mode 100644
index 28df474c2..000000000
Binary files a/gallery/assets/fortnightly/4.0x/fortnightly_feminists.jpg and /dev/null differ
diff --git a/gallery/assets/fortnightly/4.0x/fortnightly_healthcare.jpg b/gallery/assets/fortnightly/4.0x/fortnightly_healthcare.jpg
deleted file mode 100644
index 86360fb78..000000000
Binary files a/gallery/assets/fortnightly/4.0x/fortnightly_healthcare.jpg and /dev/null differ
diff --git a/gallery/assets/fortnightly/4.0x/fortnightly_title.png b/gallery/assets/fortnightly/4.0x/fortnightly_title.png
deleted file mode 100644
index 1db76020b..000000000
Binary files a/gallery/assets/fortnightly/4.0x/fortnightly_title.png and /dev/null differ
diff --git a/gallery/assets/fortnightly/fortnightly_army.png b/gallery/assets/fortnightly/fortnightly_army.png
deleted file mode 100644
index 77adafb1b..000000000
Binary files a/gallery/assets/fortnightly/fortnightly_army.png and /dev/null differ
diff --git a/gallery/assets/fortnightly/fortnightly_bees.jpg b/gallery/assets/fortnightly/fortnightly_bees.jpg
deleted file mode 100644
index 82802136d..000000000
Binary files a/gallery/assets/fortnightly/fortnightly_bees.jpg and /dev/null differ
diff --git a/gallery/assets/fortnightly/fortnightly_chart.png b/gallery/assets/fortnightly/fortnightly_chart.png
deleted file mode 100644
index b3d4e0caf..000000000
Binary files a/gallery/assets/fortnightly/fortnightly_chart.png and /dev/null differ
diff --git a/gallery/assets/fortnightly/fortnightly_fabrics.png b/gallery/assets/fortnightly/fortnightly_fabrics.png
deleted file mode 100644
index 5cb2ec3be..000000000
Binary files a/gallery/assets/fortnightly/fortnightly_fabrics.png and /dev/null differ
diff --git a/gallery/assets/fortnightly/fortnightly_feminists.jpg b/gallery/assets/fortnightly/fortnightly_feminists.jpg
deleted file mode 100644
index 8912f59a0..000000000
Binary files a/gallery/assets/fortnightly/fortnightly_feminists.jpg and /dev/null differ
diff --git a/gallery/assets/fortnightly/fortnightly_gas.png b/gallery/assets/fortnightly/fortnightly_gas.png
deleted file mode 100644
index c14aa5094..000000000
Binary files a/gallery/assets/fortnightly/fortnightly_gas.png and /dev/null differ
diff --git a/gallery/assets/fortnightly/fortnightly_healthcare.jpg b/gallery/assets/fortnightly/fortnightly_healthcare.jpg
deleted file mode 100644
index b7d91b6f7..000000000
Binary files a/gallery/assets/fortnightly/fortnightly_healthcare.jpg and /dev/null differ
diff --git a/gallery/assets/fortnightly/fortnightly_stocks.png b/gallery/assets/fortnightly/fortnightly_stocks.png
deleted file mode 100644
index 8555ae697..000000000
Binary files a/gallery/assets/fortnightly/fortnightly_stocks.png and /dev/null differ
diff --git a/gallery/assets/fortnightly/fortnightly_title.png b/gallery/assets/fortnightly/fortnightly_title.png
deleted file mode 100644
index 1b477f3dd..000000000
Binary files a/gallery/assets/fortnightly/fortnightly_title.png and /dev/null differ
diff --git a/gallery/assets/fortnightly/fortnightly_war.png b/gallery/assets/fortnightly/fortnightly_war.png
deleted file mode 100644
index be5fc8f36..000000000
Binary files a/gallery/assets/fortnightly/fortnightly_war.png and /dev/null differ
diff --git a/gallery/assets/icons/cupertino/1.5x/cupertino.png b/gallery/assets/icons/cupertino/1.5x/cupertino.png
deleted file mode 100644
index 51677b763..000000000
Binary files a/gallery/assets/icons/cupertino/1.5x/cupertino.png and /dev/null differ
diff --git a/gallery/assets/icons/cupertino/2.0x/cupertino.png b/gallery/assets/icons/cupertino/2.0x/cupertino.png
deleted file mode 100644
index f3c22a250..000000000
Binary files a/gallery/assets/icons/cupertino/2.0x/cupertino.png and /dev/null differ
diff --git a/gallery/assets/icons/cupertino/3.0x/cupertino.png b/gallery/assets/icons/cupertino/3.0x/cupertino.png
deleted file mode 100644
index be1bac94e..000000000
Binary files a/gallery/assets/icons/cupertino/3.0x/cupertino.png and /dev/null differ
diff --git a/gallery/assets/icons/cupertino/4.0x/cupertino.png b/gallery/assets/icons/cupertino/4.0x/cupertino.png
deleted file mode 100644
index 063c83ae5..000000000
Binary files a/gallery/assets/icons/cupertino/4.0x/cupertino.png and /dev/null differ
diff --git a/gallery/assets/icons/cupertino/cupertino.png b/gallery/assets/icons/cupertino/cupertino.png
deleted file mode 100644
index 98357b40b..000000000
Binary files a/gallery/assets/icons/cupertino/cupertino.png and /dev/null differ
diff --git a/gallery/assets/icons/material/1.5x/material.png b/gallery/assets/icons/material/1.5x/material.png
deleted file mode 100644
index 19c35b31e..000000000
Binary files a/gallery/assets/icons/material/1.5x/material.png and /dev/null differ
diff --git a/gallery/assets/icons/material/2.0x/material.png b/gallery/assets/icons/material/2.0x/material.png
deleted file mode 100644
index a339f4d24..000000000
Binary files a/gallery/assets/icons/material/2.0x/material.png and /dev/null differ
diff --git a/gallery/assets/icons/material/3.0x/material.png b/gallery/assets/icons/material/3.0x/material.png
deleted file mode 100644
index b18c4bda1..000000000
Binary files a/gallery/assets/icons/material/3.0x/material.png and /dev/null differ
diff --git a/gallery/assets/icons/material/4.0x/material.png b/gallery/assets/icons/material/4.0x/material.png
deleted file mode 100644
index eb7ae1541..000000000
Binary files a/gallery/assets/icons/material/4.0x/material.png and /dev/null differ
diff --git a/gallery/assets/icons/material/material.png b/gallery/assets/icons/material/material.png
deleted file mode 100644
index 973f716e8..000000000
Binary files a/gallery/assets/icons/material/material.png and /dev/null differ
diff --git a/gallery/assets/icons/reference/1.5x/reference.png b/gallery/assets/icons/reference/1.5x/reference.png
deleted file mode 100644
index 84079a0c5..000000000
Binary files a/gallery/assets/icons/reference/1.5x/reference.png and /dev/null differ
diff --git a/gallery/assets/icons/reference/2.0x/reference.png b/gallery/assets/icons/reference/2.0x/reference.png
deleted file mode 100644
index 4842cfd27..000000000
Binary files a/gallery/assets/icons/reference/2.0x/reference.png and /dev/null differ
diff --git a/gallery/assets/icons/reference/3.0x/reference.png b/gallery/assets/icons/reference/3.0x/reference.png
deleted file mode 100644
index 5894b8964..000000000
Binary files a/gallery/assets/icons/reference/3.0x/reference.png and /dev/null differ
diff --git a/gallery/assets/icons/reference/4.0x/reference.png b/gallery/assets/icons/reference/4.0x/reference.png
deleted file mode 100644
index dcc08d7f5..000000000
Binary files a/gallery/assets/icons/reference/4.0x/reference.png and /dev/null differ
diff --git a/gallery/assets/icons/reference/reference.png b/gallery/assets/icons/reference/reference.png
deleted file mode 100644
index e6ca48496..000000000
Binary files a/gallery/assets/icons/reference/reference.png and /dev/null differ
diff --git a/gallery/assets/icons/settings/settings_dark.flr b/gallery/assets/icons/settings/settings_dark.flr
deleted file mode 100644
index 9670757d5..000000000
Binary files a/gallery/assets/icons/settings/settings_dark.flr and /dev/null differ
diff --git a/gallery/assets/icons/settings/settings_light.flr b/gallery/assets/icons/settings/settings_light.flr
deleted file mode 100644
index 02bea47ed..000000000
Binary files a/gallery/assets/icons/settings/settings_light.flr and /dev/null differ
diff --git a/gallery/assets/logo/1.5x/flutter_logo.png b/gallery/assets/logo/1.5x/flutter_logo.png
deleted file mode 100644
index 28b7eb991..000000000
Binary files a/gallery/assets/logo/1.5x/flutter_logo.png and /dev/null differ
diff --git a/gallery/assets/logo/1.5x/flutter_logo_color.png b/gallery/assets/logo/1.5x/flutter_logo_color.png
deleted file mode 100644
index 9eba79c4e..000000000
Binary files a/gallery/assets/logo/1.5x/flutter_logo_color.png and /dev/null differ
diff --git a/gallery/assets/logo/2.0x/flutter_logo.png b/gallery/assets/logo/2.0x/flutter_logo.png
deleted file mode 100644
index dc1d3d117..000000000
Binary files a/gallery/assets/logo/2.0x/flutter_logo.png and /dev/null differ
diff --git a/gallery/assets/logo/2.0x/flutter_logo_color.png b/gallery/assets/logo/2.0x/flutter_logo_color.png
deleted file mode 100644
index c54d6ee49..000000000
Binary files a/gallery/assets/logo/2.0x/flutter_logo_color.png and /dev/null differ
diff --git a/gallery/assets/logo/3.0x/flutter_logo.png b/gallery/assets/logo/3.0x/flutter_logo.png
deleted file mode 100644
index da48917f0..000000000
Binary files a/gallery/assets/logo/3.0x/flutter_logo.png and /dev/null differ
diff --git a/gallery/assets/logo/3.0x/flutter_logo_color.png b/gallery/assets/logo/3.0x/flutter_logo_color.png
deleted file mode 100644
index 0059ea649..000000000
Binary files a/gallery/assets/logo/3.0x/flutter_logo_color.png and /dev/null differ
diff --git a/gallery/assets/logo/4.0x/flutter_logo.png b/gallery/assets/logo/4.0x/flutter_logo.png
deleted file mode 100644
index 0e938742c..000000000
Binary files a/gallery/assets/logo/4.0x/flutter_logo.png and /dev/null differ
diff --git a/gallery/assets/logo/4.0x/flutter_logo_color.png b/gallery/assets/logo/4.0x/flutter_logo_color.png
deleted file mode 100644
index 3c6e64390..000000000
Binary files a/gallery/assets/logo/4.0x/flutter_logo_color.png and /dev/null differ
diff --git a/gallery/assets/logo/flutter_logo.png b/gallery/assets/logo/flutter_logo.png
deleted file mode 100644
index 3c0256eb3..000000000
Binary files a/gallery/assets/logo/flutter_logo.png and /dev/null differ
diff --git a/gallery/assets/logo/flutter_logo_color.png b/gallery/assets/logo/flutter_logo_color.png
deleted file mode 100644
index 64d0fc086..000000000
Binary files a/gallery/assets/logo/flutter_logo_color.png and /dev/null differ
diff --git a/gallery/assets/splash_effects/splash_effect_1.gif b/gallery/assets/splash_effects/splash_effect_1.gif
deleted file mode 100644
index 6c6fc37bf..000000000
Binary files a/gallery/assets/splash_effects/splash_effect_1.gif and /dev/null differ
diff --git a/gallery/assets/splash_effects/splash_effect_10.gif b/gallery/assets/splash_effects/splash_effect_10.gif
deleted file mode 100755
index bea4f9900..000000000
Binary files a/gallery/assets/splash_effects/splash_effect_10.gif and /dev/null differ
diff --git a/gallery/assets/splash_effects/splash_effect_2.gif b/gallery/assets/splash_effects/splash_effect_2.gif
deleted file mode 100755
index af6e817aa..000000000
Binary files a/gallery/assets/splash_effects/splash_effect_2.gif and /dev/null differ
diff --git a/gallery/assets/splash_effects/splash_effect_3.gif b/gallery/assets/splash_effects/splash_effect_3.gif
deleted file mode 100755
index 8d6f6fb7b..000000000
Binary files a/gallery/assets/splash_effects/splash_effect_3.gif and /dev/null differ
diff --git a/gallery/assets/splash_effects/splash_effect_4.gif b/gallery/assets/splash_effects/splash_effect_4.gif
deleted file mode 100755
index 8c39ce0fa..000000000
Binary files a/gallery/assets/splash_effects/splash_effect_4.gif and /dev/null differ
diff --git a/gallery/assets/splash_effects/splash_effect_5.gif b/gallery/assets/splash_effects/splash_effect_5.gif
deleted file mode 100755
index c496a465c..000000000
Binary files a/gallery/assets/splash_effects/splash_effect_5.gif and /dev/null differ
diff --git a/gallery/assets/splash_effects/splash_effect_6.gif b/gallery/assets/splash_effects/splash_effect_6.gif
deleted file mode 100755
index 29d94cc47..000000000
Binary files a/gallery/assets/splash_effects/splash_effect_6.gif and /dev/null differ
diff --git a/gallery/assets/splash_effects/splash_effect_7.gif b/gallery/assets/splash_effects/splash_effect_7.gif
deleted file mode 100755
index 972cdf481..000000000
Binary files a/gallery/assets/splash_effects/splash_effect_7.gif and /dev/null differ
diff --git a/gallery/assets/splash_effects/splash_effect_8.gif b/gallery/assets/splash_effects/splash_effect_8.gif
deleted file mode 100755
index 280f61573..000000000
Binary files a/gallery/assets/splash_effects/splash_effect_8.gif and /dev/null differ
diff --git a/gallery/assets/splash_effects/splash_effect_9.gif b/gallery/assets/splash_effects/splash_effect_9.gif
deleted file mode 100755
index c99a626e0..000000000
Binary files a/gallery/assets/splash_effects/splash_effect_9.gif and /dev/null differ
diff --git a/gallery/assets/studies/1.5x/crane_card.png b/gallery/assets/studies/1.5x/crane_card.png
deleted file mode 100644
index 958d49824..000000000
Binary files a/gallery/assets/studies/1.5x/crane_card.png and /dev/null differ
diff --git a/gallery/assets/studies/1.5x/crane_card_dark.png b/gallery/assets/studies/1.5x/crane_card_dark.png
deleted file mode 100644
index 9f59586bc..000000000
Binary files a/gallery/assets/studies/1.5x/crane_card_dark.png and /dev/null differ
diff --git a/gallery/assets/studies/1.5x/fortnightly_card.png b/gallery/assets/studies/1.5x/fortnightly_card.png
deleted file mode 100644
index 77402f568..000000000
Binary files a/gallery/assets/studies/1.5x/fortnightly_card.png and /dev/null differ
diff --git a/gallery/assets/studies/1.5x/fortnightly_card_dark.png b/gallery/assets/studies/1.5x/fortnightly_card_dark.png
deleted file mode 100644
index 8191968e6..000000000
Binary files a/gallery/assets/studies/1.5x/fortnightly_card_dark.png and /dev/null differ
diff --git a/gallery/assets/studies/1.5x/rally_card.png b/gallery/assets/studies/1.5x/rally_card.png
deleted file mode 100644
index 75aa3c3c2..000000000
Binary files a/gallery/assets/studies/1.5x/rally_card.png and /dev/null differ
diff --git a/gallery/assets/studies/1.5x/rally_card_dark.png b/gallery/assets/studies/1.5x/rally_card_dark.png
deleted file mode 100644
index dd9f2a198..000000000
Binary files a/gallery/assets/studies/1.5x/rally_card_dark.png and /dev/null differ
diff --git a/gallery/assets/studies/1.5x/shrine_card.png b/gallery/assets/studies/1.5x/shrine_card.png
deleted file mode 100644
index f8e6c97ba..000000000
Binary files a/gallery/assets/studies/1.5x/shrine_card.png and /dev/null differ
diff --git a/gallery/assets/studies/1.5x/shrine_card_dark.png b/gallery/assets/studies/1.5x/shrine_card_dark.png
deleted file mode 100644
index 8be90bc65..000000000
Binary files a/gallery/assets/studies/1.5x/shrine_card_dark.png and /dev/null differ
diff --git a/gallery/assets/studies/1.5x/starter_card.png b/gallery/assets/studies/1.5x/starter_card.png
deleted file mode 100644
index db8cca749..000000000
Binary files a/gallery/assets/studies/1.5x/starter_card.png and /dev/null differ
diff --git a/gallery/assets/studies/1.5x/starter_card_dark.png b/gallery/assets/studies/1.5x/starter_card_dark.png
deleted file mode 100644
index 1d2e4134c..000000000
Binary files a/gallery/assets/studies/1.5x/starter_card_dark.png and /dev/null differ
diff --git a/gallery/assets/studies/2.0x/crane_card.png b/gallery/assets/studies/2.0x/crane_card.png
deleted file mode 100644
index a1bd8a9f3..000000000
Binary files a/gallery/assets/studies/2.0x/crane_card.png and /dev/null differ
diff --git a/gallery/assets/studies/2.0x/crane_card_dark.png b/gallery/assets/studies/2.0x/crane_card_dark.png
deleted file mode 100644
index 1d8bbd93e..000000000
Binary files a/gallery/assets/studies/2.0x/crane_card_dark.png and /dev/null differ
diff --git a/gallery/assets/studies/2.0x/fortnightly_card.png b/gallery/assets/studies/2.0x/fortnightly_card.png
deleted file mode 100644
index c028a67b6..000000000
Binary files a/gallery/assets/studies/2.0x/fortnightly_card.png and /dev/null differ
diff --git a/gallery/assets/studies/2.0x/fortnightly_card_dark.png b/gallery/assets/studies/2.0x/fortnightly_card_dark.png
deleted file mode 100644
index 6022b1524..000000000
Binary files a/gallery/assets/studies/2.0x/fortnightly_card_dark.png and /dev/null differ
diff --git a/gallery/assets/studies/2.0x/rally_card.png b/gallery/assets/studies/2.0x/rally_card.png
deleted file mode 100644
index 2c005fad8..000000000
Binary files a/gallery/assets/studies/2.0x/rally_card.png and /dev/null differ
diff --git a/gallery/assets/studies/2.0x/rally_card_dark.png b/gallery/assets/studies/2.0x/rally_card_dark.png
deleted file mode 100644
index bd88df312..000000000
Binary files a/gallery/assets/studies/2.0x/rally_card_dark.png and /dev/null differ
diff --git a/gallery/assets/studies/2.0x/shrine_card.png b/gallery/assets/studies/2.0x/shrine_card.png
deleted file mode 100644
index 6e9f30da6..000000000
Binary files a/gallery/assets/studies/2.0x/shrine_card.png and /dev/null differ
diff --git a/gallery/assets/studies/2.0x/shrine_card_dark.png b/gallery/assets/studies/2.0x/shrine_card_dark.png
deleted file mode 100644
index 44a98dc6c..000000000
Binary files a/gallery/assets/studies/2.0x/shrine_card_dark.png and /dev/null differ
diff --git a/gallery/assets/studies/2.0x/starter_card.png b/gallery/assets/studies/2.0x/starter_card.png
deleted file mode 100644
index 26dc24975..000000000
Binary files a/gallery/assets/studies/2.0x/starter_card.png and /dev/null differ
diff --git a/gallery/assets/studies/2.0x/starter_card_dark.png b/gallery/assets/studies/2.0x/starter_card_dark.png
deleted file mode 100644
index ed20b98aa..000000000
Binary files a/gallery/assets/studies/2.0x/starter_card_dark.png and /dev/null differ
diff --git a/gallery/assets/studies/3.0x/crane_card.png b/gallery/assets/studies/3.0x/crane_card.png
deleted file mode 100644
index 998536bc6..000000000
Binary files a/gallery/assets/studies/3.0x/crane_card.png and /dev/null differ
diff --git a/gallery/assets/studies/3.0x/crane_card_dark.png b/gallery/assets/studies/3.0x/crane_card_dark.png
deleted file mode 100644
index a4bfed06f..000000000
Binary files a/gallery/assets/studies/3.0x/crane_card_dark.png and /dev/null differ
diff --git a/gallery/assets/studies/3.0x/fortnightly_card.png b/gallery/assets/studies/3.0x/fortnightly_card.png
deleted file mode 100644
index de03dabf7..000000000
Binary files a/gallery/assets/studies/3.0x/fortnightly_card.png and /dev/null differ
diff --git a/gallery/assets/studies/3.0x/fortnightly_card_dark.png b/gallery/assets/studies/3.0x/fortnightly_card_dark.png
deleted file mode 100644
index 695870685..000000000
Binary files a/gallery/assets/studies/3.0x/fortnightly_card_dark.png and /dev/null differ
diff --git a/gallery/assets/studies/3.0x/rally_card.png b/gallery/assets/studies/3.0x/rally_card.png
deleted file mode 100644
index fb38f6a8f..000000000
Binary files a/gallery/assets/studies/3.0x/rally_card.png and /dev/null differ
diff --git a/gallery/assets/studies/3.0x/rally_card_dark.png b/gallery/assets/studies/3.0x/rally_card_dark.png
deleted file mode 100644
index 0dd8cd9c5..000000000
Binary files a/gallery/assets/studies/3.0x/rally_card_dark.png and /dev/null differ
diff --git a/gallery/assets/studies/3.0x/shrine_card.png b/gallery/assets/studies/3.0x/shrine_card.png
deleted file mode 100644
index 765bc74e6..000000000
Binary files a/gallery/assets/studies/3.0x/shrine_card.png and /dev/null differ
diff --git a/gallery/assets/studies/3.0x/shrine_card_dark.png b/gallery/assets/studies/3.0x/shrine_card_dark.png
deleted file mode 100644
index 92fec6d9b..000000000
Binary files a/gallery/assets/studies/3.0x/shrine_card_dark.png and /dev/null differ
diff --git a/gallery/assets/studies/3.0x/starter_card.png b/gallery/assets/studies/3.0x/starter_card.png
deleted file mode 100644
index e1472c7b9..000000000
Binary files a/gallery/assets/studies/3.0x/starter_card.png and /dev/null differ
diff --git a/gallery/assets/studies/3.0x/starter_card_dark.png b/gallery/assets/studies/3.0x/starter_card_dark.png
deleted file mode 100644
index d8df9084f..000000000
Binary files a/gallery/assets/studies/3.0x/starter_card_dark.png and /dev/null differ
diff --git a/gallery/assets/studies/4.0x/crane_card.png b/gallery/assets/studies/4.0x/crane_card.png
deleted file mode 100644
index c007668c0..000000000
Binary files a/gallery/assets/studies/4.0x/crane_card.png and /dev/null differ
diff --git a/gallery/assets/studies/4.0x/crane_card_dark.png b/gallery/assets/studies/4.0x/crane_card_dark.png
deleted file mode 100644
index b398153ac..000000000
Binary files a/gallery/assets/studies/4.0x/crane_card_dark.png and /dev/null differ
diff --git a/gallery/assets/studies/4.0x/fortnightly_card.png b/gallery/assets/studies/4.0x/fortnightly_card.png
deleted file mode 100644
index 8c024584d..000000000
Binary files a/gallery/assets/studies/4.0x/fortnightly_card.png and /dev/null differ
diff --git a/gallery/assets/studies/4.0x/fortnightly_card_dark.png b/gallery/assets/studies/4.0x/fortnightly_card_dark.png
deleted file mode 100644
index 9ee6c9291..000000000
Binary files a/gallery/assets/studies/4.0x/fortnightly_card_dark.png and /dev/null differ
diff --git a/gallery/assets/studies/4.0x/rally_card.png b/gallery/assets/studies/4.0x/rally_card.png
deleted file mode 100644
index e6c20d6de..000000000
Binary files a/gallery/assets/studies/4.0x/rally_card.png and /dev/null differ
diff --git a/gallery/assets/studies/4.0x/rally_card_dark.png b/gallery/assets/studies/4.0x/rally_card_dark.png
deleted file mode 100644
index 646e24019..000000000
Binary files a/gallery/assets/studies/4.0x/rally_card_dark.png and /dev/null differ
diff --git a/gallery/assets/studies/4.0x/shrine_card.png b/gallery/assets/studies/4.0x/shrine_card.png
deleted file mode 100644
index b365424d1..000000000
Binary files a/gallery/assets/studies/4.0x/shrine_card.png and /dev/null differ
diff --git a/gallery/assets/studies/4.0x/shrine_card_dark.png b/gallery/assets/studies/4.0x/shrine_card_dark.png
deleted file mode 100644
index ef03b03dd..000000000
Binary files a/gallery/assets/studies/4.0x/shrine_card_dark.png and /dev/null differ
diff --git a/gallery/assets/studies/4.0x/starter_card.png b/gallery/assets/studies/4.0x/starter_card.png
deleted file mode 100644
index c7b7ddf5f..000000000
Binary files a/gallery/assets/studies/4.0x/starter_card.png and /dev/null differ
diff --git a/gallery/assets/studies/4.0x/starter_card_dark.png b/gallery/assets/studies/4.0x/starter_card_dark.png
deleted file mode 100644
index 1f4f944ab..000000000
Binary files a/gallery/assets/studies/4.0x/starter_card_dark.png and /dev/null differ
diff --git a/gallery/assets/studies/crane_card.png b/gallery/assets/studies/crane_card.png
deleted file mode 100644
index 1a1d517df..000000000
Binary files a/gallery/assets/studies/crane_card.png and /dev/null differ
diff --git a/gallery/assets/studies/crane_card_dark.png b/gallery/assets/studies/crane_card_dark.png
deleted file mode 100644
index f710b74ab..000000000
Binary files a/gallery/assets/studies/crane_card_dark.png and /dev/null differ
diff --git a/gallery/assets/studies/fortnightly_card.png b/gallery/assets/studies/fortnightly_card.png
deleted file mode 100644
index 50aad7f6c..000000000
Binary files a/gallery/assets/studies/fortnightly_card.png and /dev/null differ
diff --git a/gallery/assets/studies/fortnightly_card_dark.png b/gallery/assets/studies/fortnightly_card_dark.png
deleted file mode 100644
index b6903e13a..000000000
Binary files a/gallery/assets/studies/fortnightly_card_dark.png and /dev/null differ
diff --git a/gallery/assets/studies/rally_card.png b/gallery/assets/studies/rally_card.png
deleted file mode 100644
index 40765a20d..000000000
Binary files a/gallery/assets/studies/rally_card.png and /dev/null differ
diff --git a/gallery/assets/studies/rally_card_dark.png b/gallery/assets/studies/rally_card_dark.png
deleted file mode 100644
index 8a2e50eda..000000000
Binary files a/gallery/assets/studies/rally_card_dark.png and /dev/null differ
diff --git a/gallery/assets/studies/shrine_card.png b/gallery/assets/studies/shrine_card.png
deleted file mode 100644
index 6f87eb930..000000000
Binary files a/gallery/assets/studies/shrine_card.png and /dev/null differ
diff --git a/gallery/assets/studies/shrine_card_dark.png b/gallery/assets/studies/shrine_card_dark.png
deleted file mode 100644
index f9bd3eaf4..000000000
Binary files a/gallery/assets/studies/shrine_card_dark.png and /dev/null differ
diff --git a/gallery/assets/studies/starter_card.png b/gallery/assets/studies/starter_card.png
deleted file mode 100644
index 200998d8d..000000000
Binary files a/gallery/assets/studies/starter_card.png and /dev/null differ
diff --git a/gallery/assets/studies/starter_card_dark.png b/gallery/assets/studies/starter_card_dark.png
deleted file mode 100644
index 74707b04b..000000000
Binary files a/gallery/assets/studies/starter_card_dark.png and /dev/null differ
diff --git a/gallery/fonts/GalleryIcons.ttf b/gallery/fonts/GalleryIcons.ttf
deleted file mode 100644
index 53c5d2d0c..000000000
Binary files a/gallery/fonts/GalleryIcons.ttf and /dev/null differ
diff --git a/gallery/fonts/google_fonts/Eczar-Regular.ttf b/gallery/fonts/google_fonts/Eczar-Regular.ttf
deleted file mode 100644
index ae8176a71..000000000
Binary files a/gallery/fonts/google_fonts/Eczar-Regular.ttf and /dev/null differ
diff --git a/gallery/fonts/google_fonts/Eczar-SemiBold.ttf b/gallery/fonts/google_fonts/Eczar-SemiBold.ttf
deleted file mode 100644
index 695302381..000000000
Binary files a/gallery/fonts/google_fonts/Eczar-SemiBold.ttf and /dev/null differ
diff --git a/gallery/fonts/google_fonts/LibreFranklin-Bold.ttf b/gallery/fonts/google_fonts/LibreFranklin-Bold.ttf
deleted file mode 100755
index b69885361..000000000
Binary files a/gallery/fonts/google_fonts/LibreFranklin-Bold.ttf and /dev/null differ
diff --git a/gallery/fonts/google_fonts/LibreFranklin-ExtraBold.ttf b/gallery/fonts/google_fonts/LibreFranklin-ExtraBold.ttf
deleted file mode 100755
index ebf38c339..000000000
Binary files a/gallery/fonts/google_fonts/LibreFranklin-ExtraBold.ttf and /dev/null differ
diff --git a/gallery/fonts/google_fonts/LibreFranklin-Medium.ttf b/gallery/fonts/google_fonts/LibreFranklin-Medium.ttf
deleted file mode 100755
index 3ada83461..000000000
Binary files a/gallery/fonts/google_fonts/LibreFranklin-Medium.ttf and /dev/null differ
diff --git a/gallery/fonts/google_fonts/LibreFranklin-Regular.ttf b/gallery/fonts/google_fonts/LibreFranklin-Regular.ttf
deleted file mode 100755
index 1df8bc3ef..000000000
Binary files a/gallery/fonts/google_fonts/LibreFranklin-Regular.ttf and /dev/null differ
diff --git a/gallery/fonts/google_fonts/LibreFranklin-SemiBold.ttf b/gallery/fonts/google_fonts/LibreFranklin-SemiBold.ttf
deleted file mode 100755
index 8e24f5a96..000000000
Binary files a/gallery/fonts/google_fonts/LibreFranklin-SemiBold.ttf and /dev/null differ
diff --git a/gallery/fonts/google_fonts/Merriweather-BoldItalic.ttf b/gallery/fonts/google_fonts/Merriweather-BoldItalic.ttf
deleted file mode 100755
index 0fa636617..000000000
Binary files a/gallery/fonts/google_fonts/Merriweather-BoldItalic.ttf and /dev/null differ
diff --git a/gallery/fonts/google_fonts/Merriweather-Light.ttf b/gallery/fonts/google_fonts/Merriweather-Light.ttf
deleted file mode 100755
index 3c08db53e..000000000
Binary files a/gallery/fonts/google_fonts/Merriweather-Light.ttf and /dev/null differ
diff --git a/gallery/fonts/google_fonts/Merriweather-Regular.ttf b/gallery/fonts/google_fonts/Merriweather-Regular.ttf
deleted file mode 100755
index fb836ee2b..000000000
Binary files a/gallery/fonts/google_fonts/Merriweather-Regular.ttf and /dev/null differ
diff --git a/gallery/fonts/google_fonts/Montserrat-Bold.ttf b/gallery/fonts/google_fonts/Montserrat-Bold.ttf
deleted file mode 100755
index 221819bca..000000000
Binary files a/gallery/fonts/google_fonts/Montserrat-Bold.ttf and /dev/null differ
diff --git a/gallery/fonts/google_fonts/Montserrat-Medium.ttf b/gallery/fonts/google_fonts/Montserrat-Medium.ttf
deleted file mode 100755
index 6e079f698..000000000
Binary files a/gallery/fonts/google_fonts/Montserrat-Medium.ttf and /dev/null differ
diff --git a/gallery/fonts/google_fonts/Montserrat-Regular.ttf b/gallery/fonts/google_fonts/Montserrat-Regular.ttf
deleted file mode 100755
index 8d443d5d5..000000000
Binary files a/gallery/fonts/google_fonts/Montserrat-Regular.ttf and /dev/null differ
diff --git a/gallery/fonts/google_fonts/Montserrat-SemiBold.ttf b/gallery/fonts/google_fonts/Montserrat-SemiBold.ttf
deleted file mode 100755
index f8a43f2b2..000000000
Binary files a/gallery/fonts/google_fonts/Montserrat-SemiBold.ttf and /dev/null differ
diff --git a/gallery/fonts/google_fonts/Oswald-Medium.ttf b/gallery/fonts/google_fonts/Oswald-Medium.ttf
deleted file mode 100755
index 1070c14ce..000000000
Binary files a/gallery/fonts/google_fonts/Oswald-Medium.ttf and /dev/null differ
diff --git a/gallery/fonts/google_fonts/Oswald-SemiBold.ttf b/gallery/fonts/google_fonts/Oswald-SemiBold.ttf
deleted file mode 100755
index 8c69d46cf..000000000
Binary files a/gallery/fonts/google_fonts/Oswald-SemiBold.ttf and /dev/null differ
diff --git a/gallery/fonts/google_fonts/Raleway-Light.ttf b/gallery/fonts/google_fonts/Raleway-Light.ttf
deleted file mode 100755
index b5ec48606..000000000
Binary files a/gallery/fonts/google_fonts/Raleway-Light.ttf and /dev/null differ
diff --git a/gallery/fonts/google_fonts/Raleway-Medium.ttf b/gallery/fonts/google_fonts/Raleway-Medium.ttf
deleted file mode 100755
index 070ac7691..000000000
Binary files a/gallery/fonts/google_fonts/Raleway-Medium.ttf and /dev/null differ
diff --git a/gallery/fonts/google_fonts/Raleway-Regular.ttf b/gallery/fonts/google_fonts/Raleway-Regular.ttf
deleted file mode 100755
index 746c24238..000000000
Binary files a/gallery/fonts/google_fonts/Raleway-Regular.ttf and /dev/null differ
diff --git a/gallery/fonts/google_fonts/Raleway-SemiBold.ttf b/gallery/fonts/google_fonts/Raleway-SemiBold.ttf
deleted file mode 100755
index 34db42061..000000000
Binary files a/gallery/fonts/google_fonts/Raleway-SemiBold.ttf and /dev/null differ
diff --git a/gallery/fonts/google_fonts/RobotoMono-Regular.ttf b/gallery/fonts/google_fonts/RobotoMono-Regular.ttf
deleted file mode 100755
index 5919b5d1b..000000000
Binary files a/gallery/fonts/google_fonts/RobotoMono-Regular.ttf and /dev/null differ
diff --git a/gallery/fonts/google_fonts/Rubik-Bold.ttf b/gallery/fonts/google_fonts/Rubik-Bold.ttf
deleted file mode 100755
index 4e77930f4..000000000
Binary files a/gallery/fonts/google_fonts/Rubik-Bold.ttf and /dev/null differ
diff --git a/gallery/fonts/google_fonts/Rubik-Medium.ttf b/gallery/fonts/google_fonts/Rubik-Medium.ttf
deleted file mode 100755
index 9e358b2f4..000000000
Binary files a/gallery/fonts/google_fonts/Rubik-Medium.ttf and /dev/null differ
diff --git a/gallery/fonts/google_fonts/Rubik-Regular.ttf b/gallery/fonts/google_fonts/Rubik-Regular.ttf
deleted file mode 100755
index 52b59ca4f..000000000
Binary files a/gallery/fonts/google_fonts/Rubik-Regular.ttf and /dev/null differ
diff --git a/gallery/ios/.gitignore b/gallery/ios/.gitignore
deleted file mode 100644
index e96ef602b..000000000
--- a/gallery/ios/.gitignore
+++ /dev/null
@@ -1,32 +0,0 @@
-*.mode1v3
-*.mode2v3
-*.moved-aside
-*.pbxuser
-*.perspectivev3
-**/*sync/
-.sconsign.dblite
-.tags*
-**/.vagrant/
-**/DerivedData/
-Icon?
-**/Pods/
-**/.symlinks/
-profile
-xcuserdata
-**/.generated/
-Flutter/App.framework
-Flutter/Flutter.framework
-Flutter/Flutter.podspec
-Flutter/Generated.xcconfig
-Flutter/app.flx
-Flutter/app.zip
-Flutter/flutter_assets/
-Flutter/flutter_export_environment.sh
-ServiceDefinitions.json
-Runner/GeneratedPluginRegistrant.*
-
-# Exceptions to above rules.
-!default.mode1v3
-!default.mode2v3
-!default.pbxuser
-!default.perspectivev3
diff --git a/gallery/ios/Flutter/AppFrameworkInfo.plist b/gallery/ios/Flutter/AppFrameworkInfo.plist
deleted file mode 100644
index 6b4c0f78a..000000000
--- a/gallery/ios/Flutter/AppFrameworkInfo.plist
+++ /dev/null
@@ -1,26 +0,0 @@
-
-
-
-
- CFBundleDevelopmentRegion
- $(DEVELOPMENT_LANGUAGE)
- CFBundleExecutable
- App
- CFBundleIdentifier
- io.flutter.flutter.app
- CFBundleInfoDictionaryVersion
- 6.0
- CFBundleName
- App
- CFBundlePackageType
- FMWK
- CFBundleShortVersionString
- 1.0
- CFBundleSignature
- ????
- CFBundleVersion
- 1.0
- MinimumOSVersion
- 8.0
-
-
diff --git a/gallery/ios/Flutter/Debug.xcconfig b/gallery/ios/Flutter/Debug.xcconfig
deleted file mode 100644
index e8efba114..000000000
--- a/gallery/ios/Flutter/Debug.xcconfig
+++ /dev/null
@@ -1,2 +0,0 @@
-#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
-#include "Generated.xcconfig"
diff --git a/gallery/ios/Flutter/Release.xcconfig b/gallery/ios/Flutter/Release.xcconfig
deleted file mode 100644
index 399e9340e..000000000
--- a/gallery/ios/Flutter/Release.xcconfig
+++ /dev/null
@@ -1,2 +0,0 @@
-#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
-#include "Generated.xcconfig"
diff --git a/gallery/ios/Podfile b/gallery/ios/Podfile
deleted file mode 100644
index b30a428b5..000000000
--- a/gallery/ios/Podfile
+++ /dev/null
@@ -1,90 +0,0 @@
-# Uncomment this line to define a global platform for your project
-# platform :ios, '9.0'
-
-# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
-ENV['COCOAPODS_DISABLE_STATS'] = 'true'
-
-project 'Runner', {
- 'Debug' => :debug,
- 'Profile' => :release,
- 'Release' => :release,
-}
-
-def parse_KV_file(file, separator='=')
- file_abs_path = File.expand_path(file)
- if !File.exists? file_abs_path
- return [];
- end
- generated_key_values = {}
- skip_line_start_symbols = ["#", "/"]
- File.foreach(file_abs_path) do |line|
- next if skip_line_start_symbols.any? { |symbol| line =~ /^\s*#{symbol}/ }
- plugin = line.split(pattern=separator)
- if plugin.length == 2
- podname = plugin[0].strip()
- path = plugin[1].strip()
- podpath = File.expand_path("#{path}", file_abs_path)
- generated_key_values[podname] = podpath
- else
- puts "Invalid plugin specification: #{line}"
- end
- end
- generated_key_values
-end
-
-target 'Runner' do
- use_frameworks!
- use_modular_headers!
-
- # Flutter Pod
-
- copied_flutter_dir = File.join(__dir__, 'Flutter')
- copied_framework_path = File.join(copied_flutter_dir, 'Flutter.framework')
- copied_podspec_path = File.join(copied_flutter_dir, 'Flutter.podspec')
- unless File.exist?(copied_framework_path) && File.exist?(copied_podspec_path)
- # Copy Flutter.framework and Flutter.podspec to Flutter/ to have something to link against if the xcode backend script has not run yet.
- # That script will copy the correct debug/profile/release version of the framework based on the currently selected Xcode configuration.
- # CocoaPods will not embed the framework on pod install (before any build phases can generate) if the dylib does not exist.
-
- generated_xcode_build_settings_path = File.join(copied_flutter_dir, 'Generated.xcconfig')
- unless File.exist?(generated_xcode_build_settings_path)
- raise "Generated.xcconfig must exist. If you're running pod install manually, make sure flutter pub get is executed first"
- end
- generated_xcode_build_settings = parse_KV_file(generated_xcode_build_settings_path)
- cached_framework_dir = generated_xcode_build_settings['FLUTTER_FRAMEWORK_DIR'];
-
- unless File.exist?(copied_framework_path)
- FileUtils.cp_r(File.join(cached_framework_dir, 'Flutter.framework'), copied_flutter_dir)
- end
- unless File.exist?(copied_podspec_path)
- FileUtils.cp(File.join(cached_framework_dir, 'Flutter.podspec'), copied_flutter_dir)
- end
- end
-
- # Keep pod path relative so it can be checked into Podfile.lock.
- pod 'Flutter', :path => 'Flutter'
-
- # Plugin Pods
-
- # Prepare symlinks folder. We use symlinks to avoid having Podfile.lock
- # referring to absolute paths on developers' machines.
- system('rm -rf .symlinks')
- system('mkdir -p .symlinks/plugins')
- plugin_pods = parse_KV_file('../.flutter-plugins')
- plugin_pods.each do |name, path|
- symlink = File.join('.symlinks', 'plugins', name)
- File.symlink(path, symlink)
- pod name, :path => File.join(symlink, 'ios')
- end
-end
-
-# Prevent Cocoapods from embedding a second Flutter framework and causing an error with the new Xcode build system.
-install! 'cocoapods', :disable_input_output_paths => true
-
-post_install do |installer|
- installer.pods_project.targets.each do |target|
- target.build_configurations.each do |config|
- config.build_settings['ENABLE_BITCODE'] = 'NO'
- end
- end
-end
diff --git a/gallery/ios/Podfile.lock b/gallery/ios/Podfile.lock
deleted file mode 100644
index a9b47b33c..000000000
--- a/gallery/ios/Podfile.lock
+++ /dev/null
@@ -1,64 +0,0 @@
-PODS:
- - Flutter (1.0.0)
- - package_info (0.0.1):
- - Flutter
- - path_provider (0.0.1):
- - Flutter
- - shared_preferences (0.0.1):
- - Flutter
- - shared_preferences_macos (0.0.1):
- - Flutter
- - shared_preferences_web (0.0.1):
- - Flutter
- - url_launcher (0.0.1):
- - Flutter
- - url_launcher_macos (0.0.1):
- - Flutter
- - url_launcher_web (0.0.1):
- - Flutter
-
-DEPENDENCIES:
- - Flutter (from `Flutter`)
- - package_info (from `.symlinks/plugins/package_info/ios`)
- - path_provider (from `.symlinks/plugins/path_provider/ios`)
- - shared_preferences (from `.symlinks/plugins/shared_preferences/ios`)
- - shared_preferences_macos (from `.symlinks/plugins/shared_preferences_macos/ios`)
- - shared_preferences_web (from `.symlinks/plugins/shared_preferences_web/ios`)
- - url_launcher (from `.symlinks/plugins/url_launcher/ios`)
- - url_launcher_macos (from `.symlinks/plugins/url_launcher_macos/ios`)
- - url_launcher_web (from `.symlinks/plugins/url_launcher_web/ios`)
-
-EXTERNAL SOURCES:
- Flutter:
- :path: Flutter
- package_info:
- :path: ".symlinks/plugins/package_info/ios"
- path_provider:
- :path: ".symlinks/plugins/path_provider/ios"
- shared_preferences:
- :path: ".symlinks/plugins/shared_preferences/ios"
- shared_preferences_macos:
- :path: ".symlinks/plugins/shared_preferences_macos/ios"
- shared_preferences_web:
- :path: ".symlinks/plugins/shared_preferences_web/ios"
- url_launcher:
- :path: ".symlinks/plugins/url_launcher/ios"
- url_launcher_macos:
- :path: ".symlinks/plugins/url_launcher_macos/ios"
- url_launcher_web:
- :path: ".symlinks/plugins/url_launcher_web/ios"
-
-SPEC CHECKSUMS:
- Flutter: 0e3d915762c693b495b44d77113d4970485de6ec
- package_info: 48b108e75b8802c2d5e126f208ef540561c98aef
- path_provider: fb74bd0465e96b594bb3b5088ee4a4e7bb1f2a9d
- shared_preferences: 430726339841afefe5142b9c1f50cb6bd7793e01
- shared_preferences_macos: f3f29b71ccbb56bf40c9dd6396c9acf15e214087
- shared_preferences_web: 141cce0c3ed1a1c5bf2a0e44f52d31eeb66e5ea9
- url_launcher: a1c0cc845906122c4784c542523d8cacbded5626
- url_launcher_macos: fd7894421cd39320dce5f292fc99ea9270b2a313
- url_launcher_web: e5527357f037c87560776e36436bf2b0288b965c
-
-PODFILE CHECKSUM: 1b66dae606f75376c5f2135a8290850eeb09ae83
-
-COCOAPODS: 1.7.5
diff --git a/gallery/ios/Runner.xcodeproj/project.pbxproj b/gallery/ios/Runner.xcodeproj/project.pbxproj
deleted file mode 100644
index 9f44b81c8..000000000
--- a/gallery/ios/Runner.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,594 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 46;
- objects = {
-
-/* Begin PBXBuildFile section */
- 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
- 1C16F239376F6C80B132A33C /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 82C68F4BB1F1929638511152 /* Pods_Runner.framework */; };
- 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
- 3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; };
- 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
- 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
- 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; };
- 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
- 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
- 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
- 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXCopyFilesBuildPhase section */
- 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
- isa = PBXCopyFilesBuildPhase;
- buildActionMask = 2147483647;
- dstPath = "";
- dstSubfolderSpec = 10;
- files = (
- 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */,
- 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */,
- );
- name = "Embed Frameworks";
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXCopyFilesBuildPhase section */
-
-/* Begin PBXFileReference section */
- 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
- 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
- 2776FF3A047989BDE50E86C4 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; };
- 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
- 3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = ""; };
- 7099545BF450814D783405D1 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; };
- 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; };
- 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
- 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
- 82C68F4BB1F1929638511152 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
- 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
- 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
- 9740EEBA1CF902C7004384FC /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = Flutter/Flutter.framework; sourceTree = ""; };
- 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
- 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
- 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
- 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
- 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
- CB5FD4B19ACF8C4DC8C8B160 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 97C146EB1CF9000F007C117D /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */,
- 3B80C3941E831B6300D905FE /* App.framework in Frameworks */,
- 1C16F239376F6C80B132A33C /* Pods_Runner.framework in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 83B2F410E85B6D706A0FD46E /* Pods */ = {
- isa = PBXGroup;
- children = (
- 7099545BF450814D783405D1 /* Pods-Runner.debug.xcconfig */,
- 2776FF3A047989BDE50E86C4 /* Pods-Runner.release.xcconfig */,
- CB5FD4B19ACF8C4DC8C8B160 /* Pods-Runner.profile.xcconfig */,
- );
- path = Pods;
- sourceTree = "";
- };
- 9740EEB11CF90186004384FC /* Flutter */ = {
- isa = PBXGroup;
- children = (
- 3B80C3931E831B6300D905FE /* App.framework */,
- 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
- 9740EEBA1CF902C7004384FC /* Flutter.framework */,
- 9740EEB21CF90195004384FC /* Debug.xcconfig */,
- 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
- 9740EEB31CF90195004384FC /* Generated.xcconfig */,
- );
- name = Flutter;
- sourceTree = "";
- };
- 97C146E51CF9000F007C117D = {
- isa = PBXGroup;
- children = (
- 9740EEB11CF90186004384FC /* Flutter */,
- 97C146F01CF9000F007C117D /* Runner */,
- 97C146EF1CF9000F007C117D /* Products */,
- 83B2F410E85B6D706A0FD46E /* Pods */,
- C397B63AC3DDF596E6C35A58 /* Frameworks */,
- );
- sourceTree = "";
- };
- 97C146EF1CF9000F007C117D /* Products */ = {
- isa = PBXGroup;
- children = (
- 97C146EE1CF9000F007C117D /* Runner.app */,
- );
- name = Products;
- sourceTree = "";
- };
- 97C146F01CF9000F007C117D /* Runner */ = {
- isa = PBXGroup;
- children = (
- 97C146FA1CF9000F007C117D /* Main.storyboard */,
- 97C146FD1CF9000F007C117D /* Assets.xcassets */,
- 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
- 97C147021CF9000F007C117D /* Info.plist */,
- 97C146F11CF9000F007C117D /* Supporting Files */,
- 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
- 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
- 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
- 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
- );
- path = Runner;
- sourceTree = "";
- };
- 97C146F11CF9000F007C117D /* Supporting Files */ = {
- isa = PBXGroup;
- children = (
- );
- name = "Supporting Files";
- sourceTree = "";
- };
- C397B63AC3DDF596E6C35A58 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 82C68F4BB1F1929638511152 /* Pods_Runner.framework */,
- );
- name = Frameworks;
- sourceTree = "";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 97C146ED1CF9000F007C117D /* Runner */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
- buildPhases = (
- C9464825360F4145681B135C /* [CP] Check Pods Manifest.lock */,
- 9740EEB61CF901F6004384FC /* Run Script */,
- 97C146EA1CF9000F007C117D /* Sources */,
- 97C146EB1CF9000F007C117D /* Frameworks */,
- 97C146EC1CF9000F007C117D /* Resources */,
- 9705A1C41CF9048500538489 /* Embed Frameworks */,
- 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
- 320E612254713BB76BD8472F /* [CP] Embed Pods Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- );
- name = Runner;
- productName = Runner;
- productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
- productType = "com.apple.product-type.application";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 97C146E61CF9000F007C117D /* Project object */ = {
- isa = PBXProject;
- attributes = {
- LastUpgradeCheck = 1020;
- ORGANIZATIONNAME = "The Chromium Authors";
- TargetAttributes = {
- 97C146ED1CF9000F007C117D = {
- CreatedOnToolsVersion = 7.3.1;
- DevelopmentTeam = EQHXZ8M8AV;
- LastSwiftMigration = 0910;
- ProvisioningStyle = Manual;
- };
- };
- };
- buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
- compatibilityVersion = "Xcode 3.2";
- developmentRegion = en;
- hasScannedForEncodings = 0;
- knownRegions = (
- en,
- Base,
- );
- mainGroup = 97C146E51CF9000F007C117D;
- productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
- projectDirPath = "";
- projectRoot = "";
- targets = (
- 97C146ED1CF9000F007C117D /* Runner */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXResourcesBuildPhase section */
- 97C146EC1CF9000F007C117D /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
- 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
- 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
- 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXShellScriptBuildPhase section */
- 320E612254713BB76BD8472F /* [CP] Embed Pods Frameworks */ = {
- isa = PBXShellScriptBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- inputPaths = (
- );
- name = "[CP] Embed Pods Frameworks";
- outputPaths = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
- showEnvVarsInLog = 0;
- };
- 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
- isa = PBXShellScriptBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- inputPaths = (
- );
- name = "Thin Binary";
- outputPaths = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin";
- };
- 9740EEB61CF901F6004384FC /* Run Script */ = {
- isa = PBXShellScriptBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- inputPaths = (
- );
- name = "Run Script";
- outputPaths = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
- };
- C9464825360F4145681B135C /* [CP] Check Pods Manifest.lock */ = {
- isa = PBXShellScriptBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- inputFileListPaths = (
- );
- inputPaths = (
- "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
- "${PODS_ROOT}/Manifest.lock",
- );
- name = "[CP] Check Pods Manifest.lock";
- outputFileListPaths = (
- );
- outputPaths = (
- "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
- showEnvVarsInLog = 0;
- };
-/* End PBXShellScriptBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 97C146EA1CF9000F007C117D /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
- 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
- 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
- isa = PBXVariantGroup;
- children = (
- 97C146FB1CF9000F007C117D /* Base */,
- );
- name = Main.storyboard;
- sourceTree = "";
- };
- 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
- isa = PBXVariantGroup;
- children = (
- 97C147001CF9000F007C117D /* Base */,
- );
- name = LaunchScreen.storyboard;
- sourceTree = "";
- };
-/* End PBXVariantGroup section */
-
-/* Begin XCBuildConfiguration section */
- 249021D3217E4FDB00AE95B9 /* Profile */ = {
- isa = XCBuildConfiguration;
- baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CLANG_ANALYZER_NONNULL = YES;
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
- CLANG_CXX_LIBRARY = "libc++";
- CLANG_ENABLE_MODULES = YES;
- CLANG_ENABLE_OBJC_ARC = YES;
- CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
- CLANG_WARN_BOOL_CONVERSION = YES;
- CLANG_WARN_COMMA = YES;
- CLANG_WARN_CONSTANT_CONVERSION = YES;
- CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
- CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
- CLANG_WARN_EMPTY_BODY = YES;
- CLANG_WARN_ENUM_CONVERSION = YES;
- CLANG_WARN_INFINITE_RECURSION = YES;
- CLANG_WARN_INT_CONVERSION = YES;
- CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
- CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
- CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
- CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
- CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
- CLANG_WARN_STRICT_PROTOTYPES = YES;
- CLANG_WARN_SUSPICIOUS_MOVE = YES;
- CLANG_WARN_UNREACHABLE_CODE = YES;
- CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
- "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
- COPY_PHASE_STRIP = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- ENABLE_NS_ASSERTIONS = NO;
- ENABLE_STRICT_OBJC_MSGSEND = YES;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_NO_COMMON_BLOCKS = YES;
- GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
- GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
- GCC_WARN_UNDECLARED_SELECTOR = YES;
- GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
- GCC_WARN_UNUSED_FUNCTION = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 8.0;
- MTL_ENABLE_DEBUG_INFO = NO;
- SDKROOT = iphoneos;
- SUPPORTED_PLATFORMS = iphoneos;
- TARGETED_DEVICE_FAMILY = "1,2";
- VALIDATE_PRODUCT = YES;
- };
- name = Profile;
- };
- 249021D4217E4FDB00AE95B9 /* Profile */ = {
- isa = XCBuildConfiguration;
- baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
- buildSettings = {
- ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
- CLANG_ENABLE_MODULES = YES;
- CODE_SIGN_STYLE = Manual;
- CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
- DEVELOPMENT_TEAM = EQHXZ8M8AV;
- ENABLE_BITCODE = NO;
- FRAMEWORK_SEARCH_PATHS = (
- "$(inherited)",
- "$(PROJECT_DIR)/Flutter",
- );
- INFOPLIST_FILE = Runner/Info.plist;
- LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
- LIBRARY_SEARCH_PATHS = (
- "$(inherited)",
- "$(PROJECT_DIR)/Flutter",
- );
- PRODUCT_BUNDLE_IDENTIFIER = io.flutter.demo.gallery;
- PRODUCT_NAME = "$(TARGET_NAME)";
- PROVISIONING_PROFILE_SPECIFIER = "Google Development";
- SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
- SWIFT_VERSION = 4.0;
- VERSIONING_SYSTEM = "apple-generic";
- };
- name = Profile;
- };
- 97C147031CF9000F007C117D /* Debug */ = {
- isa = XCBuildConfiguration;
- baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CLANG_ANALYZER_NONNULL = YES;
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
- CLANG_CXX_LIBRARY = "libc++";
- CLANG_ENABLE_MODULES = YES;
- CLANG_ENABLE_OBJC_ARC = YES;
- CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
- CLANG_WARN_BOOL_CONVERSION = YES;
- CLANG_WARN_COMMA = YES;
- CLANG_WARN_CONSTANT_CONVERSION = YES;
- CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
- CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
- CLANG_WARN_EMPTY_BODY = YES;
- CLANG_WARN_ENUM_CONVERSION = YES;
- CLANG_WARN_INFINITE_RECURSION = YES;
- CLANG_WARN_INT_CONVERSION = YES;
- CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
- CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
- CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
- CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
- CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
- CLANG_WARN_STRICT_PROTOTYPES = YES;
- CLANG_WARN_SUSPICIOUS_MOVE = YES;
- CLANG_WARN_UNREACHABLE_CODE = YES;
- CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
- "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
- COPY_PHASE_STRIP = NO;
- DEBUG_INFORMATION_FORMAT = dwarf;
- ENABLE_STRICT_OBJC_MSGSEND = YES;
- ENABLE_TESTABILITY = YES;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_NO_COMMON_BLOCKS = YES;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "DEBUG=1",
- "$(inherited)",
- );
- GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
- GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
- GCC_WARN_UNDECLARED_SELECTOR = YES;
- GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
- GCC_WARN_UNUSED_FUNCTION = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 8.0;
- MTL_ENABLE_DEBUG_INFO = YES;
- ONLY_ACTIVE_ARCH = YES;
- SDKROOT = iphoneos;
- TARGETED_DEVICE_FAMILY = "1,2";
- };
- name = Debug;
- };
- 97C147041CF9000F007C117D /* Release */ = {
- isa = XCBuildConfiguration;
- baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CLANG_ANALYZER_NONNULL = YES;
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
- CLANG_CXX_LIBRARY = "libc++";
- CLANG_ENABLE_MODULES = YES;
- CLANG_ENABLE_OBJC_ARC = YES;
- CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
- CLANG_WARN_BOOL_CONVERSION = YES;
- CLANG_WARN_COMMA = YES;
- CLANG_WARN_CONSTANT_CONVERSION = YES;
- CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
- CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
- CLANG_WARN_EMPTY_BODY = YES;
- CLANG_WARN_ENUM_CONVERSION = YES;
- CLANG_WARN_INFINITE_RECURSION = YES;
- CLANG_WARN_INT_CONVERSION = YES;
- CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
- CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
- CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
- CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
- CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
- CLANG_WARN_STRICT_PROTOTYPES = YES;
- CLANG_WARN_SUSPICIOUS_MOVE = YES;
- CLANG_WARN_UNREACHABLE_CODE = YES;
- CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
- "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
- COPY_PHASE_STRIP = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- ENABLE_NS_ASSERTIONS = NO;
- ENABLE_STRICT_OBJC_MSGSEND = YES;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_NO_COMMON_BLOCKS = YES;
- GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
- GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
- GCC_WARN_UNDECLARED_SELECTOR = YES;
- GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
- GCC_WARN_UNUSED_FUNCTION = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 8.0;
- MTL_ENABLE_DEBUG_INFO = NO;
- SDKROOT = iphoneos;
- SUPPORTED_PLATFORMS = iphoneos;
- SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
- TARGETED_DEVICE_FAMILY = "1,2";
- VALIDATE_PRODUCT = YES;
- };
- name = Release;
- };
- 97C147061CF9000F007C117D /* Debug */ = {
- isa = XCBuildConfiguration;
- baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
- buildSettings = {
- ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
- CLANG_ENABLE_MODULES = YES;
- CODE_SIGN_STYLE = Manual;
- CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
- DEVELOPMENT_TEAM = EQHXZ8M8AV;
- ENABLE_BITCODE = NO;
- FRAMEWORK_SEARCH_PATHS = (
- "$(inherited)",
- "$(PROJECT_DIR)/Flutter",
- );
- INFOPLIST_FILE = Runner/Info.plist;
- LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
- LIBRARY_SEARCH_PATHS = (
- "$(inherited)",
- "$(PROJECT_DIR)/Flutter",
- );
- PRODUCT_BUNDLE_IDENTIFIER = io.flutter.demo.gallery;
- PRODUCT_NAME = "$(TARGET_NAME)";
- PROVISIONING_PROFILE_SPECIFIER = "Google Development";
- SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
- SWIFT_OPTIMIZATION_LEVEL = "-Onone";
- SWIFT_VERSION = 4.0;
- VERSIONING_SYSTEM = "apple-generic";
- };
- name = Debug;
- };
- 97C147071CF9000F007C117D /* Release */ = {
- isa = XCBuildConfiguration;
- baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
- buildSettings = {
- ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
- CLANG_ENABLE_MODULES = YES;
- CODE_SIGN_STYLE = Manual;
- CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
- DEVELOPMENT_TEAM = EQHXZ8M8AV;
- ENABLE_BITCODE = NO;
- FRAMEWORK_SEARCH_PATHS = (
- "$(inherited)",
- "$(PROJECT_DIR)/Flutter",
- );
- INFOPLIST_FILE = Runner/Info.plist;
- LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
- LIBRARY_SEARCH_PATHS = (
- "$(inherited)",
- "$(PROJECT_DIR)/Flutter",
- );
- PRODUCT_BUNDLE_IDENTIFIER = io.flutter.demo.gallery;
- PRODUCT_NAME = "$(TARGET_NAME)";
- PROVISIONING_PROFILE_SPECIFIER = "Google Development";
- SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
- SWIFT_VERSION = 4.0;
- VERSIONING_SYSTEM = "apple-generic";
- };
- name = Release;
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 97C147031CF9000F007C117D /* Debug */,
- 97C147041CF9000F007C117D /* Release */,
- 249021D3217E4FDB00AE95B9 /* Profile */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Release;
- };
- 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 97C147061CF9000F007C117D /* Debug */,
- 97C147071CF9000F007C117D /* Release */,
- 249021D4217E4FDB00AE95B9 /* Profile */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Release;
- };
-/* End XCConfigurationList section */
- };
- rootObject = 97C146E61CF9000F007C117D /* Project object */;
-}
diff --git a/gallery/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/gallery/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
deleted file mode 100644
index 1d526a16e..000000000
--- a/gallery/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
-
diff --git a/gallery/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/gallery/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
deleted file mode 100644
index a28140cfd..000000000
--- a/gallery/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
+++ /dev/null
@@ -1,91 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/gallery/ios/Runner.xcworkspace/contents.xcworkspacedata b/gallery/ios/Runner.xcworkspace/contents.xcworkspacedata
deleted file mode 100644
index 21a3cc14c..000000000
--- a/gallery/ios/Runner.xcworkspace/contents.xcworkspacedata
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
-
-
-
diff --git a/gallery/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/gallery/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
deleted file mode 100644
index 18d981003..000000000
--- a/gallery/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
- IDEDidComputeMac32BitWarning
-
-
-
diff --git a/gallery/ios/Runner/AppDelegate.swift b/gallery/ios/Runner/AppDelegate.swift
deleted file mode 100644
index 70693e4a8..000000000
--- a/gallery/ios/Runner/AppDelegate.swift
+++ /dev/null
@@ -1,13 +0,0 @@
-import UIKit
-import Flutter
-
-@UIApplicationMain
-@objc class AppDelegate: FlutterAppDelegate {
- override func application(
- _ application: UIApplication,
- didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
- ) -> Bool {
- GeneratedPluginRegistrant.register(with: self)
- return super.application(application, didFinishLaunchingWithOptions: launchOptions)
- }
-}
diff --git a/gallery/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/gallery/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
deleted file mode 100644
index 00a53b7a2..000000000
--- a/gallery/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
+++ /dev/null
@@ -1,122 +0,0 @@
-{
- "images" : [
- {
- "size" : "20x20",
- "idiom" : "iphone",
- "filename" : "icon_20_2x.png",
- "scale" : "2x"
- },
- {
- "size" : "20x20",
- "idiom" : "iphone",
- "filename" : "icon_20_3x.png",
- "scale" : "3x"
- },
- {
- "size" : "29x29",
- "idiom" : "iphone",
- "filename" : "icon_29.png",
- "scale" : "1x"
- },
- {
- "size" : "29x29",
- "idiom" : "iphone",
- "filename" : "icon_29_2x.png",
- "scale" : "2x"
- },
- {
- "size" : "29x29",
- "idiom" : "iphone",
- "filename" : "icon_29_3x.png",
- "scale" : "3x"
- },
- {
- "size" : "40x40",
- "idiom" : "iphone",
- "filename" : "icon_40_2x.png",
- "scale" : "2x"
- },
- {
- "size" : "40x40",
- "idiom" : "iphone",
- "filename" : "icon_40_3x.png",
- "scale" : "3x"
- },
- {
- "size" : "60x60",
- "idiom" : "iphone",
- "filename" : "icon_60_2x.png",
- "scale" : "2x"
- },
- {
- "size" : "60x60",
- "idiom" : "iphone",
- "filename" : "icon_60_3x.png",
- "scale" : "3x"
- },
- {
- "size" : "20x20",
- "idiom" : "ipad",
- "filename" : "icon_20.png",
- "scale" : "1x"
- },
- {
- "size" : "20x20",
- "idiom" : "ipad",
- "filename" : "icon_20_2x-1.png",
- "scale" : "2x"
- },
- {
- "size" : "29x29",
- "idiom" : "ipad",
- "filename" : "icon_29-1.png",
- "scale" : "1x"
- },
- {
- "size" : "29x29",
- "idiom" : "ipad",
- "filename" : "icon_29_2x-1.png",
- "scale" : "2x"
- },
- {
- "size" : "40x40",
- "idiom" : "ipad",
- "filename" : "icon_40.png",
- "scale" : "1x"
- },
- {
- "size" : "40x40",
- "idiom" : "ipad",
- "filename" : "icon_40_2x-1.png",
- "scale" : "2x"
- },
- {
- "size" : "76x76",
- "idiom" : "ipad",
- "filename" : "icon_76.png",
- "scale" : "1x"
- },
- {
- "size" : "76x76",
- "idiom" : "ipad",
- "filename" : "icon_76_2x.png",
- "scale" : "2x"
- },
- {
- "size" : "83.5x83.5",
- "idiom" : "ipad",
- "filename" : "icon_835_2x.png",
- "scale" : "2x"
- },
- {
- "size" : "1024x1024",
- "idiom" : "ios-marketing",
- "filename" : "app_icon.png",
- "scale" : "1x"
- }
- ],
- "info" : {
- "version" : 1,
- "author" : "xcode"
- }
-}
\ No newline at end of file
diff --git a/gallery/ios/Runner/Assets.xcassets/AppIcon.appiconset/app_icon.png b/gallery/ios/Runner/Assets.xcassets/AppIcon.appiconset/app_icon.png
deleted file mode 100644
index 242600804..000000000
Binary files a/gallery/ios/Runner/Assets.xcassets/AppIcon.appiconset/app_icon.png and /dev/null differ
diff --git a/gallery/ios/Runner/Assets.xcassets/AppIcon.appiconset/icon_20.png b/gallery/ios/Runner/Assets.xcassets/AppIcon.appiconset/icon_20.png
deleted file mode 100644
index fb1973f23..000000000
Binary files a/gallery/ios/Runner/Assets.xcassets/AppIcon.appiconset/icon_20.png and /dev/null differ
diff --git a/gallery/ios/Runner/Assets.xcassets/AppIcon.appiconset/icon_20_2x-1.png b/gallery/ios/Runner/Assets.xcassets/AppIcon.appiconset/icon_20_2x-1.png
deleted file mode 100644
index 66946f833..000000000
Binary files a/gallery/ios/Runner/Assets.xcassets/AppIcon.appiconset/icon_20_2x-1.png and /dev/null differ
diff --git a/gallery/ios/Runner/Assets.xcassets/AppIcon.appiconset/icon_20_2x.png b/gallery/ios/Runner/Assets.xcassets/AppIcon.appiconset/icon_20_2x.png
deleted file mode 100644
index 66946f833..000000000
Binary files a/gallery/ios/Runner/Assets.xcassets/AppIcon.appiconset/icon_20_2x.png and /dev/null differ
diff --git a/gallery/ios/Runner/Assets.xcassets/AppIcon.appiconset/icon_20_3x.png b/gallery/ios/Runner/Assets.xcassets/AppIcon.appiconset/icon_20_3x.png
deleted file mode 100644
index c5d6fde94..000000000
Binary files a/gallery/ios/Runner/Assets.xcassets/AppIcon.appiconset/icon_20_3x.png and /dev/null differ
diff --git a/gallery/ios/Runner/Assets.xcassets/AppIcon.appiconset/icon_29-1.png b/gallery/ios/Runner/Assets.xcassets/AppIcon.appiconset/icon_29-1.png
deleted file mode 100644
index bb26a902a..000000000
Binary files a/gallery/ios/Runner/Assets.xcassets/AppIcon.appiconset/icon_29-1.png and /dev/null differ
diff --git a/gallery/ios/Runner/Assets.xcassets/AppIcon.appiconset/icon_29.png b/gallery/ios/Runner/Assets.xcassets/AppIcon.appiconset/icon_29.png
deleted file mode 100644
index bb26a902a..000000000
Binary files a/gallery/ios/Runner/Assets.xcassets/AppIcon.appiconset/icon_29.png and /dev/null differ
diff --git a/gallery/ios/Runner/Assets.xcassets/AppIcon.appiconset/icon_29_2x-1.png b/gallery/ios/Runner/Assets.xcassets/AppIcon.appiconset/icon_29_2x-1.png
deleted file mode 100644
index 7af5e05dd..000000000
Binary files a/gallery/ios/Runner/Assets.xcassets/AppIcon.appiconset/icon_29_2x-1.png and /dev/null differ
diff --git a/gallery/ios/Runner/Assets.xcassets/AppIcon.appiconset/icon_29_2x.png b/gallery/ios/Runner/Assets.xcassets/AppIcon.appiconset/icon_29_2x.png
deleted file mode 100644
index 7af5e05dd..000000000
Binary files a/gallery/ios/Runner/Assets.xcassets/AppIcon.appiconset/icon_29_2x.png and /dev/null differ
diff --git a/gallery/ios/Runner/Assets.xcassets/AppIcon.appiconset/icon_29_3x.png b/gallery/ios/Runner/Assets.xcassets/AppIcon.appiconset/icon_29_3x.png
deleted file mode 100644
index b9d0e340a..000000000
Binary files a/gallery/ios/Runner/Assets.xcassets/AppIcon.appiconset/icon_29_3x.png and /dev/null differ
diff --git a/gallery/ios/Runner/Assets.xcassets/AppIcon.appiconset/icon_40.png b/gallery/ios/Runner/Assets.xcassets/AppIcon.appiconset/icon_40.png
deleted file mode 100644
index 66946f833..000000000
Binary files a/gallery/ios/Runner/Assets.xcassets/AppIcon.appiconset/icon_40.png and /dev/null differ
diff --git a/gallery/ios/Runner/Assets.xcassets/AppIcon.appiconset/icon_40_2x-1.png b/gallery/ios/Runner/Assets.xcassets/AppIcon.appiconset/icon_40_2x-1.png
deleted file mode 100644
index c26f0a0ee..000000000
Binary files a/gallery/ios/Runner/Assets.xcassets/AppIcon.appiconset/icon_40_2x-1.png and /dev/null differ
diff --git a/gallery/ios/Runner/Assets.xcassets/AppIcon.appiconset/icon_40_2x.png b/gallery/ios/Runner/Assets.xcassets/AppIcon.appiconset/icon_40_2x.png
deleted file mode 100644
index c26f0a0ee..000000000
Binary files a/gallery/ios/Runner/Assets.xcassets/AppIcon.appiconset/icon_40_2x.png and /dev/null differ
diff --git a/gallery/ios/Runner/Assets.xcassets/AppIcon.appiconset/icon_40_3x.png b/gallery/ios/Runner/Assets.xcassets/AppIcon.appiconset/icon_40_3x.png
deleted file mode 100644
index 9fbce2838..000000000
Binary files a/gallery/ios/Runner/Assets.xcassets/AppIcon.appiconset/icon_40_3x.png and /dev/null differ
diff --git a/gallery/ios/Runner/Assets.xcassets/AppIcon.appiconset/icon_60_2x.png b/gallery/ios/Runner/Assets.xcassets/AppIcon.appiconset/icon_60_2x.png
deleted file mode 100644
index 9fbce2838..000000000
Binary files a/gallery/ios/Runner/Assets.xcassets/AppIcon.appiconset/icon_60_2x.png and /dev/null differ
diff --git a/gallery/ios/Runner/Assets.xcassets/AppIcon.appiconset/icon_60_3x.png b/gallery/ios/Runner/Assets.xcassets/AppIcon.appiconset/icon_60_3x.png
deleted file mode 100644
index 995c67d46..000000000
Binary files a/gallery/ios/Runner/Assets.xcassets/AppIcon.appiconset/icon_60_3x.png and /dev/null differ
diff --git a/gallery/ios/Runner/Assets.xcassets/AppIcon.appiconset/icon_76.png b/gallery/ios/Runner/Assets.xcassets/AppIcon.appiconset/icon_76.png
deleted file mode 100644
index 0814ac51d..000000000
Binary files a/gallery/ios/Runner/Assets.xcassets/AppIcon.appiconset/icon_76.png and /dev/null differ
diff --git a/gallery/ios/Runner/Assets.xcassets/AppIcon.appiconset/icon_76_2x.png b/gallery/ios/Runner/Assets.xcassets/AppIcon.appiconset/icon_76_2x.png
deleted file mode 100644
index c97bcdf23..000000000
Binary files a/gallery/ios/Runner/Assets.xcassets/AppIcon.appiconset/icon_76_2x.png and /dev/null differ
diff --git a/gallery/ios/Runner/Assets.xcassets/AppIcon.appiconset/icon_835_2x.png b/gallery/ios/Runner/Assets.xcassets/AppIcon.appiconset/icon_835_2x.png
deleted file mode 100644
index 1b5647e26..000000000
Binary files a/gallery/ios/Runner/Assets.xcassets/AppIcon.appiconset/icon_835_2x.png and /dev/null differ
diff --git a/gallery/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json b/gallery/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
deleted file mode 100644
index 0bedcf2fd..000000000
--- a/gallery/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
+++ /dev/null
@@ -1,23 +0,0 @@
-{
- "images" : [
- {
- "idiom" : "universal",
- "filename" : "LaunchImage.png",
- "scale" : "1x"
- },
- {
- "idiom" : "universal",
- "filename" : "LaunchImage@2x.png",
- "scale" : "2x"
- },
- {
- "idiom" : "universal",
- "filename" : "LaunchImage@3x.png",
- "scale" : "3x"
- }
- ],
- "info" : {
- "version" : 1,
- "author" : "xcode"
- }
-}
diff --git a/gallery/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png b/gallery/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
deleted file mode 100644
index 9da19eaca..000000000
Binary files a/gallery/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png and /dev/null differ
diff --git a/gallery/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png b/gallery/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
deleted file mode 100644
index 9da19eaca..000000000
Binary files a/gallery/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png and /dev/null differ
diff --git a/gallery/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png b/gallery/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
deleted file mode 100644
index 9da19eaca..000000000
Binary files a/gallery/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png and /dev/null differ
diff --git a/gallery/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md b/gallery/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
deleted file mode 100644
index 89c2725b7..000000000
--- a/gallery/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
+++ /dev/null
@@ -1,5 +0,0 @@
-# Launch Screen Assets
-
-You can customize the launch screen with your own desired assets by replacing the image files in this directory.
-
-You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.
\ No newline at end of file
diff --git a/gallery/ios/Runner/Base.lproj/LaunchScreen.storyboard b/gallery/ios/Runner/Base.lproj/LaunchScreen.storyboard
deleted file mode 100644
index e2b55737a..000000000
--- a/gallery/ios/Runner/Base.lproj/LaunchScreen.storyboard
+++ /dev/null
@@ -1,41 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/gallery/ios/Runner/Base.lproj/Main.storyboard b/gallery/ios/Runner/Base.lproj/Main.storyboard
deleted file mode 100644
index f3c28516f..000000000
--- a/gallery/ios/Runner/Base.lproj/Main.storyboard
+++ /dev/null
@@ -1,26 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/gallery/ios/Runner/Info.plist b/gallery/ios/Runner/Info.plist
deleted file mode 100644
index da17cc588..000000000
--- a/gallery/ios/Runner/Info.plist
+++ /dev/null
@@ -1,174 +0,0 @@
-
-
-
-
- CFBundleDevelopmentRegion
- $(DEVELOPMENT_LANGUAGE)
- CFBundleExecutable
- $(EXECUTABLE_NAME)
- CFBundleIdentifier
- $(PRODUCT_BUNDLE_IDENTIFIER)
- CFBundleInfoDictionaryVersion
- 6.0
- CFBundleName
- Flutter Gallery
- CFBundleLocalizations
-
- en
- af
- am
- ar_EG
- ar_JO
- ar_MA
- ar_SA
- ar_XB
- ar
- as
- az
- be
- bg
- bn
- bs
- ca
- cs
- da
- de_AT
- de_CH
- de
- el
- en_AU
- en_CA
- en_GB
- en_IE
- en_IN
- en_NZ
- en_SG
- en_XA
- en_XC
- en_ZA
- es_419
- es_AR
- es_BO
- es_CL
- es_CO
- es_CR
- es_DO
- es_EC
- es_GT
- es_HN
- es_MX
- es_NI
- es_PA
- es_PE
- es_PR
- es_PY
- es_SV
- es_US
- es_UY
- es_VE
- es
- et
- eu
- fa
- fi
- fil
- fr_CA
- fr_CH
- fr
- gl
- gsw
- gu
- he
- hi
- hr
- hu
- hy
- id
- in
- is
- it
- iw
- ja
- ka
- kk
- km
- kn
- ko
- ky
- ln
- lo
- lt
- lv
- mk
- ml
- mn
- mo
- mr
- ms
- my
- nb
- ne
- nl
- no
- or
- pa
- pl
- pt_BR
- pt_PT
- pt
- ro
- ru
- si
- sk
- sl
- sq
- sr_Latn
- sr
- sv
- sw
- ta
- te
- th
- tl
- tr
- uk
- ur
- uz
- vi
- zh_CN
- zh_HK
- zh_TW
- zh
- zu
-
- CFBundlePackageType
- APPL
- CFBundleShortVersionString
- $(FLUTTER_BUILD_NAME)
- CFBundleSignature
- ????
- CFBundleVersion
- $(FLUTTER_BUILD_NUMBER)
- LSRequiresIPhoneOS
-
- UILaunchStoryboardName
- LaunchScreen
- UIMainStoryboardFile
- Main
- UISupportedInterfaceOrientations
-
- UIInterfaceOrientationPortrait
- UIInterfaceOrientationLandscapeLeft
- UIInterfaceOrientationLandscapeRight
-
- UISupportedInterfaceOrientations~ipad
-
- UIInterfaceOrientationPortrait
- UIInterfaceOrientationPortraitUpsideDown
- UIInterfaceOrientationLandscapeLeft
- UIInterfaceOrientationLandscapeRight
-
- UIViewControllerBasedStatusBarAppearance
-
-
-
diff --git a/gallery/ios/Runner/Runner-Bridging-Header.h b/gallery/ios/Runner/Runner-Bridging-Header.h
deleted file mode 100644
index 7335fdf90..000000000
--- a/gallery/ios/Runner/Runner-Bridging-Header.h
+++ /dev/null
@@ -1 +0,0 @@
-#import "GeneratedPluginRegistrant.h"
\ No newline at end of file
diff --git a/gallery/lib/codeviewer/code_displayer.dart b/gallery/lib/codeviewer/code_displayer.dart
deleted file mode 100644
index 1e878747d..000000000
--- a/gallery/lib/codeviewer/code_displayer.dart
+++ /dev/null
@@ -1,7 +0,0 @@
-// Copyright 2019 The Flutter team. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-import 'package:flutter/material.dart';
-
-typedef TextSpan CodeDisplayer(BuildContext context);
diff --git a/gallery/lib/codeviewer/code_segments.dart b/gallery/lib/codeviewer/code_segments.dart
deleted file mode 100644
index 168387e61..000000000
--- a/gallery/lib/codeviewer/code_segments.dart
+++ /dev/null
@@ -1,35877 +0,0 @@
-// This file is automatically generated by codeviewer_cli.
-// Do not edit this file.
-
-// Copyright 2019 The Flutter team. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-import 'package:flutter/material.dart';
-import 'package:gallery/codeviewer/code_style.dart';
-
-class CodeSegments {
- static TextSpan bannerDemo(BuildContext context) {
- final CodeStyle codeStyle = CodeStyle.of(context);
- return TextSpan(children: [
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Copyright 2020 The Flutter team. All rights reserved.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Use of this source code is governed by a BSD-style license that can be'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle, text: '// found in the LICENSE file.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:flutter/material.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:gallery/l10n/gallery_localizations.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'enum'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'BannerDemoAction'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a reset'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a showMultipleActions'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a showLeading'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'BannerDemo'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'StatefulWidget'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_BannerDemoState'),
- TextSpan(style: codeStyle.baseStyle, text: ' createState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_BannerDemoState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_BannerDemoState'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'State'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'BannerDemo'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'static'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' _itemCount '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '20'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'var'),
- TextSpan(style: codeStyle.baseStyle, text: ' _displayBanner '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'true'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'var'),
- TextSpan(style: codeStyle.baseStyle, text: ' _showMultipleActions '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'true'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'var'),
- TextSpan(style: codeStyle.baseStyle, text: ' _showLeading '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'true'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'void'),
- TextSpan(style: codeStyle.baseStyle, text: ' handleDemoAction'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BannerDemoAction'),
- TextSpan(style: codeStyle.baseStyle, text: ' action'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a setState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'switch'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'action'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'case'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'BannerDemoAction'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'reset'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a _displayBanner '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'true'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a _showMultipleActions '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'true'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a _showLeading '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'true'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'break'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'case'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'BannerDemoAction'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'showMultipleActions'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a _showMultipleActions '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '!'),
- TextSpan(style: codeStyle.baseStyle, text: '_showMultipleActions'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'break'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'case'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'BannerDemoAction'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'showLeading'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a _showLeading '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '!'),
- TextSpan(style: codeStyle.baseStyle, text: '_showLeading'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'break'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '});'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' build'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' colorScheme '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Theme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'colorScheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' banner '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'MaterialBanner'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a content'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'bannerDemoText'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a leading'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(
- style: codeStyle.baseStyle, text: ' _showLeading\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '?'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CircleAvatar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'Icons'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'access_alarm'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' color'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' colorScheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onPrimary'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a backgroundColor'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' colorScheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'primary'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a actions'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'FlatButton'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'signIn'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onPressed'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a setState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a _displayBanner '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'false'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '});'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'if'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '_showMultipleActions'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'FlatButton'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'dismiss'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onPressed'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a setState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a _displayBanner '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'false'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '});'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a backgroundColor'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' colorScheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'background'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Scaffold'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a appBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'AppBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a automaticallyImplyLeading'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'false'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoBannerTitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a actions'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'PopupMenuButton'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'BannerDemoAction'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a onSelected'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' handleDemoAction'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a itemBuilder'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'PopupMenuEntry'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'BannerDemoAction'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>>['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'PopupMenuItem'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'BannerDemoAction'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'BannerDemoAction'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'reset'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'bannerDemoResetText'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'PopupMenuDivider'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'CheckedPopupMenuItem'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'BannerDemoAction'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'BannerDemoAction'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'showMultipleActions'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a checked'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _showMultipleActions'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'bannerDemoMultipleText'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'CheckedPopupMenuItem'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'BannerDemoAction'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'BannerDemoAction'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'showLeading'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a checked'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _showLeading'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'bannerDemoLeadingText'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a body'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'ListView'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'builder'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a itemCount'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _displayBanner '),
- TextSpan(style: codeStyle.punctuationStyle, text: '?'),
- TextSpan(style: codeStyle.baseStyle, text: ' _itemCount '),
- TextSpan(style: codeStyle.punctuationStyle, text: '+'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '1'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _itemCount'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a itemBuilder'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' index'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'if'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'index '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '0'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '&&'),
- TextSpan(style: codeStyle.baseStyle, text: ' _displayBanner'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' banner'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'ListTile'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'starterAppDrawerItem'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '_displayBanner '),
- TextSpan(style: codeStyle.punctuationStyle, text: '?'),
- TextSpan(style: codeStyle.baseStyle, text: ' index '),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' index '),
- TextSpan(style: codeStyle.punctuationStyle, text: '+'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '1'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- ]);
- }
-
- static TextSpan bottomAppBarDemo(BuildContext context) {
- final CodeStyle codeStyle = CodeStyle.of(context);
- return TextSpan(children: [
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Copyright 2019 The Flutter team. All rights reserved.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Use of this source code is governed by a BSD-style license that can be'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle, text: '// found in the LICENSE file.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:flutter/material.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:gallery/l10n/gallery_localizations.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'BottomAppBarDemo'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'StatefulWidget'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'State'),
- TextSpan(style: codeStyle.baseStyle, text: ' createState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_BottomAppBarDemoState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_BottomAppBarDemoState'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'State'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'BottomAppBarDemo'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'var'),
- TextSpan(style: codeStyle.baseStyle, text: ' _showFab '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'true'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'var'),
- TextSpan(style: codeStyle.baseStyle, text: ' _showNotch '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'true'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'var'),
- TextSpan(style: codeStyle.baseStyle, text: ' _fabLocation '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.classStyle, text: 'FloatingActionButtonLocation'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'endDocked'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'void'),
- TextSpan(style: codeStyle.baseStyle, text: ' _onShowNotchChanged'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.keywordStyle, text: 'bool'),
- TextSpan(style: codeStyle.baseStyle, text: ' value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a setState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _showNotch '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '});'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'void'),
- TextSpan(style: codeStyle.baseStyle, text: ' _onShowFabChanged'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.keywordStyle, text: 'bool'),
- TextSpan(style: codeStyle.baseStyle, text: ' value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a setState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _showFab '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '});'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'void'),
- TextSpan(style: codeStyle.baseStyle, text: ' _onFabLocationChanged'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.classStyle, text: 'FloatingActionButtonLocation'),
- TextSpan(style: codeStyle.baseStyle, text: ' value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a setState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _fabLocation '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '});'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' build'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Scaffold'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a appBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'AppBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a automaticallyImplyLeading'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'false'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoBottomAppBarTitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a body'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'ListView'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a padding'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'EdgeInsets'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'only'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'bottom'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '88'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a children'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'SwitchListTile'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoFloatingButtonTitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _showFab'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onChanged'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _onShowFabChanged'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'SwitchListTile'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'bottomAppBarNotch'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _showNotch'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onChanged'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _onShowNotchChanged'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Padding'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a padding'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'EdgeInsets'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'all'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.numberStyle, text: '16'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'bottomAppBarPosition'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'RadioListTile'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(
- style: codeStyle.classStyle, text: 'FloatingActionButtonLocation'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(
- style: codeStyle.baseStyle, text: 'bottomAppBarPositionDockedEnd'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.classStyle, text: 'FloatingActionButtonLocation'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'endDocked'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a groupValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _fabLocation'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onChanged'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _onFabLocationChanged'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'RadioListTile'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(
- style: codeStyle.classStyle, text: 'FloatingActionButtonLocation'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(
- style: codeStyle.baseStyle, text: 'bottomAppBarPositionDockedCenter'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.classStyle, text: 'FloatingActionButtonLocation'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'centerDocked'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a groupValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _fabLocation'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onChanged'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _onFabLocationChanged'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'RadioListTile'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(
- style: codeStyle.classStyle, text: 'FloatingActionButtonLocation'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(
- style: codeStyle.baseStyle, text: 'bottomAppBarPositionFloatingEnd'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.classStyle, text: 'FloatingActionButtonLocation'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'endFloat'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a groupValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _fabLocation'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onChanged'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _onFabLocationChanged'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'RadioListTile'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(
- style: codeStyle.classStyle, text: 'FloatingActionButtonLocation'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: 'bottomAppBarPositionFloatingCenter'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.classStyle, text: 'FloatingActionButtonLocation'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'centerFloat'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a groupValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _fabLocation'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onChanged'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _onFabLocationChanged'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a floatingActionButton'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _showFab\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '?'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'FloatingActionButton'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a onPressed'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a print'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027Floating action button pressed\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'Icons'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'add'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a tooltip'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'buttonTextCreate'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a floatingActionButtonLocation'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _fabLocation'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a bottomNavigationBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_DemoBottomAppBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a fabLocation'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _fabLocation'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a shape'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _showNotch '),
- TextSpan(style: codeStyle.punctuationStyle, text: '?'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CircularNotchedRectangle'),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_DemoBottomAppBar'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'StatelessWidget'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_DemoBottomAppBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '({'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'fabLocation'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'shape'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '});'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.classStyle, text: 'FloatingActionButtonLocation'),
- TextSpan(style: codeStyle.baseStyle, text: ' fabLocation'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'NotchedShape'),
- TextSpan(style: codeStyle.baseStyle, text: ' shape'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'static'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' centerLocations '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(
- style: codeStyle.classStyle, text: 'FloatingActionButtonLocation'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.classStyle, text: 'FloatingActionButtonLocation'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'centerDocked'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.classStyle, text: 'FloatingActionButtonLocation'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'centerFloat'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '];'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' build'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'BottomAppBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a shape'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' shape'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'IconTheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a data'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'IconThemeData'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'color'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Theme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'colorScheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onPrimary'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Row'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a children'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'IconButton'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a tooltip'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'MaterialLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'openAppDrawerTooltip'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'Icons'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'menu'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a onPressed'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a print'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027Menu button pressed\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'if'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'centerLocations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'contains'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'fabLocation'),
- TextSpan(style: codeStyle.punctuationStyle, text: '))'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Spacer'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'IconButton'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a tooltip'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'starterAppTooltipSearch'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'Icons'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'search'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a onPressed'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a print'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027Search button pressed\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'IconButton'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a tooltip'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'starterAppTooltipFavorite'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'Icons'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'favorite'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a onPressed'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a print'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027Favorite button pressed\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- ]);
- }
-
- static TextSpan bottomNavigationDemo(BuildContext context) {
- final CodeStyle codeStyle = CodeStyle.of(context);
- return TextSpan(children: [
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Copyright 2019 The Flutter team. All rights reserved.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Use of this source code is governed by a BSD-style license that can be'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle, text: '// found in the LICENSE file.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:flutter/material.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:gallery/l10n/gallery_localizations.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'enum'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'BottomNavigationDemoType'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a withLabels'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a withoutLabels'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'BottomNavigationDemo'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'StatefulWidget'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'BottomNavigationDemo'),
- TextSpan(style: codeStyle.punctuationStyle, text: '({'),
- TextSpan(style: codeStyle.classStyle, text: 'Key'),
- TextSpan(style: codeStyle.baseStyle, text: ' key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: '@required'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'type'),
- TextSpan(style: codeStyle.punctuationStyle, text: '})'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'super'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'BottomNavigationDemoType'),
- TextSpan(style: codeStyle.baseStyle, text: ' type'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_BottomNavigationDemoState'),
- TextSpan(style: codeStyle.baseStyle, text: ' createState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_BottomNavigationDemoState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_BottomNavigationDemoState'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'State'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'BottomNavigationDemo'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'with'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'TickerProviderStateMixin'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'int'),
- TextSpan(style: codeStyle.baseStyle, text: ' _currentIndex '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'List'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: '_NavigationIconView'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' _navigationViews'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.baseStyle, text: ' _title'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'switch'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'type'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'case'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'BottomNavigationDemoType'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'withLabels'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: 'demoBottomNavigationPersistentLabels'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'case'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'BottomNavigationDemoType'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'withoutLabels'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: 'demoBottomNavigationSelectedLabel'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.stringStyle, text: '\u0027\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'void'),
- TextSpan(style: codeStyle.baseStyle, text: ' didChangeDependencies'),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'super'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'didChangeDependencies'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'if'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '_navigationViews '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a _navigationViews '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: '_NavigationIconView'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_NavigationIconView'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'Icons'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'add_comment'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'bottomNavigationCommentsTab'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a vsync'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_NavigationIconView'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'Icons'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'calendar_today'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'bottomNavigationCalendarTab'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a vsync'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_NavigationIconView'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'Icons'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'account_circle'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'bottomNavigationAccountTab'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a vsync'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_NavigationIconView'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'Icons'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'alarm_on'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'bottomNavigationAlarmTab'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a vsync'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_NavigationIconView'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'Icons'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'camera_enhance'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'bottomNavigationCameraTab'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a vsync'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '];'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a\u000a _navigationViews'),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '_currentIndex'),
- TextSpan(style: codeStyle.punctuationStyle, text: '].'),
- TextSpan(style: codeStyle.baseStyle, text: 'controller'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'value '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '1'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'void'),
- TextSpan(style: codeStyle.baseStyle, text: ' dispose'),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'for'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: '_NavigationIconView'),
- TextSpan(style: codeStyle.baseStyle, text: ' view '),
- TextSpan(style: codeStyle.keywordStyle, text: 'in'),
- TextSpan(style: codeStyle.baseStyle, text: ' _navigationViews'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a view'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'controller'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dispose'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'super'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dispose'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' _buildTransitionsStack'),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'List'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'FadeTransition'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' transitions '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'FadeTransition'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>[];'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'for'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: '_NavigationIconView'),
- TextSpan(style: codeStyle.baseStyle, text: ' view '),
- TextSpan(style: codeStyle.keywordStyle, text: 'in'),
- TextSpan(style: codeStyle.baseStyle, text: ' _navigationViews'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a transitions'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'add'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'view'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'transition'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: '));'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// We want to have the newly animating (fading in) views on top.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a transitions'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'sort'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(('),
- TextSpan(style: codeStyle.baseStyle, text: 'a'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' b'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' aAnimation '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'opacity'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' bAnimation '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' b'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'opacity'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' aValue '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' aAnimation'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' bValue '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' bAnimation'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' aValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'compareTo'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'bValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '});'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Stack'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'children'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' transitions'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' build'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' colorScheme '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Theme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'colorScheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' textTheme '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Theme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'textTheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'var'),
- TextSpan(style: codeStyle.baseStyle, text: ' bottomNavigationBarItems '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(
- style: codeStyle.baseStyle, text: ' _navigationViews\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'map'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'BottomNavigationBarItem'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>(('),
- TextSpan(style: codeStyle.baseStyle, text: 'navigationView'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' navigationView'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'item'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'toList'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'if'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'type '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'BottomNavigationDemoType'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'withLabels'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a bottomNavigationBarItems '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a bottomNavigationBarItems'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'sublist'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.numberStyle, text: '0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' _navigationViews'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'length '),
- TextSpan(style: codeStyle.punctuationStyle, text: '-'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '2'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _currentIndex '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a _currentIndex'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'clamp'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.numberStyle, text: '0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' bottomNavigationBarItems'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'length '),
- TextSpan(style: codeStyle.punctuationStyle, text: '-'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '1'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'toInt'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Scaffold'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a appBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'AppBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a automaticallyImplyLeading'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'false'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '_title'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a body'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Center'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _buildTransitionsStack'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a bottomNavigationBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'BottomNavigationBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a showUnselectedLabels'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'type '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'BottomNavigationDemoType'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'withLabels'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a items'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' bottomNavigationBarItems'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a currentIndex'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _currentIndex'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a type'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'BottomNavigationBarType'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'fixed'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a selectedFontSize'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' textTheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'caption'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'fontSize'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a unselectedFontSize'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' textTheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'caption'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'fontSize'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onTap'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'index'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a setState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a _navigationViews'),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '_currentIndex'),
- TextSpan(style: codeStyle.punctuationStyle, text: '].'),
- TextSpan(style: codeStyle.baseStyle, text: 'controller'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'reverse'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a _currentIndex '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' index'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a _navigationViews'),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '_currentIndex'),
- TextSpan(style: codeStyle.punctuationStyle, text: '].'),
- TextSpan(style: codeStyle.baseStyle, text: 'controller'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'forward'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '});'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a selectedItemColor'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' colorScheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onPrimary'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a unselectedItemColor'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' colorScheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onPrimary'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'withOpacity'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.numberStyle, text: '0.38'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a backgroundColor'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' colorScheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'primary'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_NavigationIconView'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_NavigationIconView'),
- TextSpan(style: codeStyle.punctuationStyle, text: '({'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'TickerProvider'),
- TextSpan(style: codeStyle.baseStyle, text: ' vsync'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '})'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' item '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'BottomNavigationBarItem'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'title'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a controller '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'AnimationController'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a duration'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.constantStyle, text: 'kThemeAnimationDuration'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a vsync'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' vsync'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _animation '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' controller'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'drive'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'CurveTween'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a curve'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Interval'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.numberStyle, text: '0.5'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '1.0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' curve'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Curves'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'fastOutSlowIn'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '));'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.baseStyle, text: ' title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'BottomNavigationBarItem'),
- TextSpan(style: codeStyle.baseStyle, text: ' item'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'AnimationController'),
- TextSpan(style: codeStyle.baseStyle, text: ' controller'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Animation'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.keywordStyle, text: 'double'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' _animation'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'FadeTransition'),
- TextSpan(style: codeStyle.baseStyle, text: ' transition'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'FadeTransition'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a opacity'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _animation'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Stack'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a children'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'ExcludeSemantics'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Center'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Padding'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a padding'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'EdgeInsets'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'all'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.numberStyle, text: '16'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'ClipRRect'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a borderRadius'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'BorderRadius'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'circular'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.numberStyle, text: '8'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Image'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'asset'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027assets/demos/bottom_navigation_background.png\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Center'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'IconTheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a data'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'IconThemeData'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a color'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Colors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'white'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a size'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '80'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Semantics'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a label'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: 'bottomNavigationContentPlaceholder'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'title'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- ]);
- }
-
- static TextSpan bottomSheetDemoModal(BuildContext context) {
- final CodeStyle codeStyle = CodeStyle.of(context);
- return TextSpan(children: [
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Copyright 2019 The Flutter team. All rights reserved.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Use of this source code is governed by a BSD-style license that can be'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle, text: '// found in the LICENSE file.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:flutter/material.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:gallery/l10n/gallery_localizations.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_BottomSheetContent'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'StatelessWidget'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' build'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Container'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a height'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '300'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Column'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a children'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Container'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a height'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '70'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Center'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoBottomSheetHeader'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a textAlign'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'TextAlign'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'center'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Divider'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'thickness'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '1'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Expanded'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'ListView'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'builder'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a itemCount'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '21'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a itemBuilder'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' index'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'ListTile'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoBottomSheetItem'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'index'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_ModalBottomSheetDemo'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'StatelessWidget'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'void'),
- TextSpan(style: codeStyle.baseStyle, text: ' _showModalBottomSheet'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a showModalBottomSheet'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.keywordStyle, text: 'void'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a builder'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_BottomSheetContent'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' build'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Center'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'RaisedButton'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onPressed'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a _showModalBottomSheet'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoBottomSheetButtonText'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- ]);
- }
-
- static TextSpan bottomSheetDemoPersistent(BuildContext context) {
- final CodeStyle codeStyle = CodeStyle.of(context);
- return TextSpan(children: [
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Copyright 2019 The Flutter team. All rights reserved.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Use of this source code is governed by a BSD-style license that can be'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle, text: '// found in the LICENSE file.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:flutter/material.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:gallery/l10n/gallery_localizations.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_BottomSheetContent'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'StatelessWidget'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' build'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Container'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a height'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '300'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Column'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a children'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Container'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a height'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '70'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Center'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoBottomSheetHeader'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a textAlign'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'TextAlign'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'center'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Divider'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'thickness'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '1'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Expanded'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'ListView'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'builder'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a itemCount'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '21'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a itemBuilder'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' index'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'ListTile'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoBottomSheetItem'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'index'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_PersistentBottomSheetDemo'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'StatefulWidget'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.classStyle, text: '_PersistentBottomSheetDemoState'),
- TextSpan(style: codeStyle.baseStyle, text: ' createState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.classStyle, text: '_PersistentBottomSheetDemoState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.classStyle, text: '_PersistentBottomSheetDemoState'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'State'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: '_PersistentBottomSheetDemo'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'VoidCallback'),
- TextSpan(style: codeStyle.baseStyle, text: ' _showBottomSheetCallback'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'void'),
- TextSpan(style: codeStyle.baseStyle, text: ' initState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'super'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'initState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a _showBottomSheetCallback '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' _showPersistentBottomSheet'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'void'),
- TextSpan(style: codeStyle.baseStyle, text: ' _showPersistentBottomSheet'),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a setState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Disable the show bottom sheet button.'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a _showBottomSheetCallback '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '});'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Scaffold'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'showBottomSheet'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.keywordStyle, text: 'void'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_BottomSheetContent'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a elevation'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '25'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'closed\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'whenComplete'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'if'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'mounted'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a setState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Re-enable the bottom sheet button.'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a _showBottomSheetCallback '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' _showPersistentBottomSheet'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '});'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '});'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' build'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Center'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'RaisedButton'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onPressed'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _showBottomSheetCallback'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoBottomSheetButtonText'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- ]);
- }
-
- static TextSpan buttonDemoFlat(BuildContext context) {
- final CodeStyle codeStyle = CodeStyle.of(context);
- return TextSpan(children: [
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Copyright 2019 The Flutter team. All rights reserved.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Use of this source code is governed by a BSD-style license that can be'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle, text: '// found in the LICENSE file.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:flutter/material.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:gallery/l10n/gallery_localizations.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_FlatButtonDemo'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'StatelessWidget'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' build'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Center'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Column'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a mainAxisSize'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'MainAxisSize'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'min'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a children'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'FlatButton'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'buttonText'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onPressed'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'SizedBox'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'height'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '12'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'FlatButton'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'Icons'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'add'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' size'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '18'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a label'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'buttonText'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onPressed'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- ]);
- }
-
- static TextSpan buttonDemoFloating(BuildContext context) {
- final CodeStyle codeStyle = CodeStyle.of(context);
- return TextSpan(children: [
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Copyright 2019 The Flutter team. All rights reserved.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Use of this source code is governed by a BSD-style license that can be'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle, text: '// found in the LICENSE file.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:flutter/material.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:gallery/l10n/gallery_localizations.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_FloatingActionButtonDemo'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'StatelessWidget'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' build'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Center'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Column'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a mainAxisSize'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'MainAxisSize'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'min'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a children'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'FloatingActionButton'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'Icons'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'add'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onPressed'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a tooltip'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'buttonTextCreate'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'SizedBox'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'height'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '20'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'FloatingActionButton'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'extended'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'Icons'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'add'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a label'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'buttonTextCreate'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onPressed'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- ]);
- }
-
- static TextSpan buttonDemoOutline(BuildContext context) {
- final CodeStyle codeStyle = CodeStyle.of(context);
- return TextSpan(children: [
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Copyright 2019 The Flutter team. All rights reserved.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Use of this source code is governed by a BSD-style license that can be'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle, text: '// found in the LICENSE file.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:flutter/material.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:gallery/l10n/gallery_localizations.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_OutlineButtonDemo'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'StatelessWidget'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' build'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Center'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Column'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a mainAxisSize'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'MainAxisSize'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'min'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a children'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'OutlineButton'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// TODO: Should update to OutlineButton follow material spec.'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a highlightedBorderColor'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Theme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'colorScheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onSurface'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'withOpacity'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.numberStyle, text: '0.12'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'buttonText'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onPressed'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'SizedBox'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'height'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '12'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'OutlineButton'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// TODO: Should update to OutlineButton follow material spec.'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a highlightedBorderColor'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Theme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'colorScheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onSurface'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'withOpacity'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.numberStyle, text: '0.12'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'Icons'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'add'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' size'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '18'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a label'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'buttonText'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onPressed'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- ]);
- }
-
- static TextSpan buttonDemoRaised(BuildContext context) {
- final CodeStyle codeStyle = CodeStyle.of(context);
- return TextSpan(children: [
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Copyright 2019 The Flutter team. All rights reserved.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Use of this source code is governed by a BSD-style license that can be'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle, text: '// found in the LICENSE file.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:flutter/material.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:gallery/l10n/gallery_localizations.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_RaisedButtonDemo'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'StatelessWidget'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' build'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Center'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Column'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a mainAxisSize'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'MainAxisSize'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'min'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a children'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'RaisedButton'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'buttonText'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onPressed'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'SizedBox'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'height'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '12'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'RaisedButton'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'Icons'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'add'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' size'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '18'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a label'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'buttonText'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onPressed'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- ]);
- }
-
- static TextSpan buttonDemoToggle(BuildContext context) {
- final CodeStyle codeStyle = CodeStyle.of(context);
- return TextSpan(children: [
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Copyright 2019 The Flutter team. All rights reserved.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Use of this source code is governed by a BSD-style license that can be'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle, text: '// found in the LICENSE file.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:flutter/material.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:gallery/l10n/gallery_localizations.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_ToggleButtonsDemo'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'StatefulWidget'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_ToggleButtonsDemoState'),
- TextSpan(style: codeStyle.baseStyle, text: ' createState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_ToggleButtonsDemoState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_ToggleButtonsDemoState'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'State'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: '_ToggleButtonsDemo'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' isSelected '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.keywordStyle, text: 'bool'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>['),
- TextSpan(style: codeStyle.keywordStyle, text: 'false'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'false'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'false'),
- TextSpan(style: codeStyle.punctuationStyle, text: '];'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' build'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Center'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'ToggleButtons'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a children'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'Icons'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'ac_unit'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'Icons'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'call'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'Icons'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'cake'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onPressed'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'index'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a setState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a isSelected'),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: 'index'),
- TextSpan(style: codeStyle.punctuationStyle, text: ']'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '!'),
- TextSpan(style: codeStyle.baseStyle, text: 'isSelected'),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: 'index'),
- TextSpan(style: codeStyle.punctuationStyle, text: '];'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '});'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a isSelected'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' isSelected'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- ]);
- }
-
- static TextSpan cardsDemo(BuildContext context) {
- final CodeStyle codeStyle = CodeStyle.of(context);
- return TextSpan(children: [
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Copyright 2020 The Flutter team. All rights reserved.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Use of this source code is governed by a BSD-style license that can be'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle, text: '// found in the LICENSE file.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:flutter/foundation.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:flutter/material.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:gallery/l10n/gallery_localizations.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'enum'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CardDemoType'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a standard'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a tappable'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a selectable'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'TravelDestination'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'TravelDestination'),
- TextSpan(style: codeStyle.punctuationStyle, text: '({'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@required'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'assetName'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@required'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'assetPackage'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@required'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@required'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'description'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@required'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'city'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@required'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'location'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'type '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CardDemoType'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'standard'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '})'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'assert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'assetName '),
- TextSpan(style: codeStyle.punctuationStyle, text: '!='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'assert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'assetPackage '),
- TextSpan(style: codeStyle.punctuationStyle, text: '!='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'assert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'title '),
- TextSpan(style: codeStyle.punctuationStyle, text: '!='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'assert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'description '),
- TextSpan(style: codeStyle.punctuationStyle, text: '!='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'assert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'city '),
- TextSpan(style: codeStyle.punctuationStyle, text: '!='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'assert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'location '),
- TextSpan(style: codeStyle.punctuationStyle, text: '!='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.baseStyle, text: ' assetName'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.baseStyle, text: ' assetPackage'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.baseStyle, text: ' title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.baseStyle, text: ' description'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.baseStyle, text: ' city'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.baseStyle, text: ' location'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CardDemoType'),
- TextSpan(style: codeStyle.baseStyle, text: ' type'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.classStyle, text: 'List'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'TravelDestination'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' destinations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'TravelDestination'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a assetName'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027places/india_thanjavur_market.png\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a assetPackage'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.constantStyle, text: '_kGalleryAssetsPackage'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(
- style: codeStyle.baseStyle, text: 'cardsDemoTravelDestinationTitle1'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a description'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: 'cardsDemoTravelDestinationDescription1'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a city'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(
- style: codeStyle.baseStyle, text: 'cardsDemoTravelDestinationCity1'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a location'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: 'cardsDemoTravelDestinationLocation1'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'TravelDestination'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a assetName'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027places/india_chettinad_silk_maker.png\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a assetPackage'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.constantStyle, text: '_kGalleryAssetsPackage'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(
- style: codeStyle.baseStyle, text: 'cardsDemoTravelDestinationTitle2'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a description'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: 'cardsDemoTravelDestinationDescription2'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a city'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(
- style: codeStyle.baseStyle, text: 'cardsDemoTravelDestinationCity2'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a location'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: 'cardsDemoTravelDestinationLocation2'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a type'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CardDemoType'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'tappable'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'TravelDestination'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a assetName'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027places/india_tanjore_thanjavur_temple.png\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a assetPackage'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.constantStyle, text: '_kGalleryAssetsPackage'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(
- style: codeStyle.baseStyle, text: 'cardsDemoTravelDestinationTitle3'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a description'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: 'cardsDemoTravelDestinationDescription3'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a city'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(
- style: codeStyle.baseStyle, text: 'cardsDemoTravelDestinationCity1'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a location'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: 'cardsDemoTravelDestinationLocation1'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a type'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CardDemoType'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'selectable'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '];'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'TravelDestinationItem'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'StatelessWidget'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'TravelDestinationItem'),
- TextSpan(style: codeStyle.punctuationStyle, text: '({'),
- TextSpan(style: codeStyle.classStyle, text: 'Key'),
- TextSpan(style: codeStyle.baseStyle, text: ' key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: '@required'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'destination'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'shape'),
- TextSpan(style: codeStyle.punctuationStyle, text: '})'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'assert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'destination '),
- TextSpan(style: codeStyle.punctuationStyle, text: '!='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'super'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// This height will allow for all the Card\u0027s content to fit comfortably within the card.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'static'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' height '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '338.0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'TravelDestination'),
- TextSpan(style: codeStyle.baseStyle, text: ' destination'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'ShapeBorder'),
- TextSpan(style: codeStyle.baseStyle, text: ' shape'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' build'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'SafeArea'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a top'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'false'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a bottom'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'false'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Padding'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a padding'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'EdgeInsets'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'all'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.numberStyle, text: '8'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Column'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a children'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'SectionTitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'settingsTextScalingNormal'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'SizedBox'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a height'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' height'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Card'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// This ensures that the Card\u0027s children are clipped correctly.'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a clipBehavior'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Clip'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'antiAlias'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a shape'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' shape'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'TravelDestinationContent'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'destination'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' destination'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.classStyle, text: 'TappableTravelDestinationItem'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'StatelessWidget'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.classStyle, text: 'TappableTravelDestinationItem'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.classStyle, text: 'Key'),
- TextSpan(style: codeStyle.baseStyle, text: ' key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: '@required'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'destination'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'shape'),
- TextSpan(style: codeStyle.punctuationStyle, text: '})'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'assert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'destination '),
- TextSpan(style: codeStyle.punctuationStyle, text: '!='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'super'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// This height will allow for all the Card\u0027s content to fit comfortably within the card.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'static'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' height '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '298.0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'TravelDestination'),
- TextSpan(style: codeStyle.baseStyle, text: ' destination'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'ShapeBorder'),
- TextSpan(style: codeStyle.baseStyle, text: ' shape'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' build'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'SafeArea'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a top'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'false'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a bottom'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'false'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Padding'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a padding'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'EdgeInsets'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'all'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.numberStyle, text: '8'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Column'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a children'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'SectionTitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'cardsDemoTappable'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'SizedBox'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a height'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' height'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Card'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// This ensures that the Card\u0027s children (including the ink splash) are clipped correctly.'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a clipBehavior'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Clip'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'antiAlias'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a shape'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' shape'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'InkWell'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a onTap'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a print'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.stringStyle, text: '\u0027Card was tapped\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Generally, material cards use onSurface with 12% opacity for the pressed state.'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a splashColor'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Theme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'colorScheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onSurface'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'withOpacity'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.numberStyle, text: '0.12'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Generally, material cards do not have a highlight overlay.'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a highlightColor'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Colors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'transparent'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'TravelDestinationContent'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'destination'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' destination'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.classStyle, text: 'SelectableTravelDestinationItem'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'StatefulWidget'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.classStyle, text: 'SelectableTravelDestinationItem'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.classStyle, text: 'Key'),
- TextSpan(style: codeStyle.baseStyle, text: ' key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: '@required'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'destination'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'shape'),
- TextSpan(style: codeStyle.punctuationStyle, text: '})'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'assert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'destination '),
- TextSpan(style: codeStyle.punctuationStyle, text: '!='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'super'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'TravelDestination'),
- TextSpan(style: codeStyle.baseStyle, text: ' destination'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'ShapeBorder'),
- TextSpan(style: codeStyle.baseStyle, text: ' shape'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.classStyle,
- text: '_SelectableTravelDestinationItemState'),
- TextSpan(style: codeStyle.baseStyle, text: ' createState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.classStyle,
- text: '_SelectableTravelDestinationItemState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.classStyle,
- text: '_SelectableTravelDestinationItemState'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'State'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(
- style: codeStyle.classStyle, text: 'SelectableTravelDestinationItem'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// This height will allow for all the Card\u0027s content to fit comfortably within the card.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'static'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' height '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '298.0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'var'),
- TextSpan(style: codeStyle.baseStyle, text: ' _isSelected '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'false'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' build'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'ColorScheme'),
- TextSpan(style: codeStyle.baseStyle, text: ' colorScheme '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Theme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'colorScheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'SafeArea'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a top'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'false'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a bottom'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'false'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Padding'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a padding'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'EdgeInsets'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'all'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.numberStyle, text: '8'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Column'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a children'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'SectionTitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'cardsDemoSelectable'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'SizedBox'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a height'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' height'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Card'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// This ensures that the Card\u0027s children (including the ink splash) are clipped correctly.'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a clipBehavior'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Clip'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'antiAlias'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a shape'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'shape'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'InkWell'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a onLongPress'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a print'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027Selectable card state changed\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a setState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a _isSelected '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '!'),
- TextSpan(style: codeStyle.baseStyle, text: '_isSelected'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '});'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Generally, material cards use onSurface with 12% opacity for the pressed state.'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a splashColor'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' colorScheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onSurface'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'withOpacity'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.numberStyle, text: '0.12'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Generally, material cards do not have a highlight overlay.'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a highlightColor'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Colors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'transparent'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Stack'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a children'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Container'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a color'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: ' _isSelected\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Generally, material cards use primary with 8% opacity for the selected state.'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// See: https://material.io/design/interaction/states.html#anatomy'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '?'),
- TextSpan(style: codeStyle.baseStyle, text: ' colorScheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'primary'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'withOpacity'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.numberStyle, text: '0.08'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Colors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'transparent'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'TravelDestinationContent'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'destination'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'destination'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Align'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a alignment'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Alignment'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'topRight'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Padding'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a padding'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'EdgeInsets'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'all'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.numberStyle, text: '8'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Icons'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'check_circle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a color'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: ' _isSelected\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '?'),
- TextSpan(style: codeStyle.baseStyle, text: ' colorScheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: 'primary\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Colors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'transparent'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'SectionTitle'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'StatelessWidget'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'SectionTitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: '({'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Key'),
- TextSpan(style: codeStyle.baseStyle, text: ' key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '})'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'super'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.baseStyle, text: ' title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' build'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Padding'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a padding'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'EdgeInsets'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'fromLTRB'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.numberStyle, text: '4'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '4'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '4'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '12'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Align'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a alignment'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Alignment'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'centerLeft'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' style'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Theme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'textTheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'subhead'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'TravelDestinationContent'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'StatelessWidget'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'TravelDestinationContent'),
- TextSpan(style: codeStyle.punctuationStyle, text: '({'),
- TextSpan(style: codeStyle.classStyle, text: 'Key'),
- TextSpan(style: codeStyle.baseStyle, text: ' key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: '@required'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'destination'),
- TextSpan(style: codeStyle.punctuationStyle, text: '})'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'assert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'destination '),
- TextSpan(style: codeStyle.punctuationStyle, text: '!='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'super'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'TravelDestination'),
- TextSpan(style: codeStyle.baseStyle, text: ' destination'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' build'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'ThemeData'),
- TextSpan(style: codeStyle.baseStyle, text: ' theme '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Theme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'TextStyle'),
- TextSpan(style: codeStyle.baseStyle, text: ' titleStyle '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a theme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'textTheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'headline'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'copyWith'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'color'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Colors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'white'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'TextStyle'),
- TextSpan(style: codeStyle.baseStyle, text: ' descriptionStyle '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' theme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'textTheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'subhead'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Column'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a crossAxisAlignment'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CrossAxisAlignment'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'start'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a children'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'SizedBox'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a height'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '184'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Stack'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a children'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Positioned'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'fill'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// In order to have the ink splash appear above the image, you'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// must use Ink.image. This allows the image to be painted as'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// part of the Material and display ink effects above it. Using'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// a standard Image will obscure the ink splash.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Ink'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'image'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a image'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'AssetImage'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'destination'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'assetName'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a package'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' destination'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'assetPackage'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a fit'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'BoxFit'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'cover'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Container'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Positioned'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a bottom'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '16'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a left'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '16'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a right'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '16'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'FittedBox'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a fit'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'BoxFit'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'scaleDown'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a alignment'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Alignment'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'centerLeft'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a destination'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a style'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' titleStyle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Description and share/explore buttons.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Padding'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a padding'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'EdgeInsets'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'fromLTRB'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.numberStyle, text: '16'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '16'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '16'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '0'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'DefaultTextStyle'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a softWrap'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'false'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a overflow'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'TextOverflow'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'ellipsis'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a style'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' descriptionStyle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Column'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a crossAxisAlignment'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CrossAxisAlignment'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'start'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a children'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// This array contains the three line description on each card'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.commentStyle, text: '// demo.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Padding'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a padding'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'EdgeInsets'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'only'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'bottom'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '8'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a destination'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'description'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a style'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' descriptionStyle'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'copyWith'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'color'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Colors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'black54'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'destination'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'city'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'destination'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'location'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'if'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'destination'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'type '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CardDemoType'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'standard'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle, text: '// share, explore buttons'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'ButtonBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a alignment'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'MainAxisAlignment'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'start'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a children'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'FlatButton'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoMenuShare'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a semanticsLabel'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'cardsDemoShareSemantics'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'destination'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')),'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a textColor'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Colors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'amber'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'shade500'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a onPressed'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a print'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.stringStyle, text: '\u0027pressed\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'FlatButton'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'cardsDemoExplore'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a semanticsLabel'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'cardsDemoExploreSemantics'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'destination'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')),'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a textColor'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Colors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'amber'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'shade500'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a onPressed'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a print'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.stringStyle, text: '\u0027pressed\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CardsDemo'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'StatefulWidget'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_CardsDemoState'),
- TextSpan(style: codeStyle.baseStyle, text: ' createState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_CardsDemoState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_CardsDemoState'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'State'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'CardsDemo'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' build'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Scaffold'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a appBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'AppBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a automaticallyImplyLeading'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'false'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoCardTitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a body'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Scrollbar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'ListView'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a padding'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'EdgeInsets'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'only'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'top'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '8'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' left'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '8'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' right'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '8'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a children'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'for'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' destination '),
- TextSpan(style: codeStyle.keywordStyle, text: 'in'),
- TextSpan(style: codeStyle.baseStyle, text: ' destinations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: '))'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Container'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a margin'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'EdgeInsets'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'only'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'bottom'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '8'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'destination'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'type '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CardDemoType'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'standard'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '?'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'TravelDestinationItem'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'destination'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' destination'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' destination'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'type '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CardDemoType'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: 'tappable\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '?'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.classStyle, text: 'TappableTravelDestinationItem'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a destination'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' destination'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.classStyle, text: 'SelectableTravelDestinationItem'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a destination'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' destination'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- ]);
- }
-
- static TextSpan chipDemoAction(BuildContext context) {
- final CodeStyle codeStyle = CodeStyle.of(context);
- return TextSpan(children: [
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Copyright 2019 The Flutter team. All rights reserved.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Use of this source code is governed by a BSD-style license that can be'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle, text: '// found in the LICENSE file.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:flutter/material.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:gallery/l10n/gallery_localizations.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_ActionChipDemo'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'StatelessWidget'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' build'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Center'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'ActionChip'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onPressed'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a avatar'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Icons'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'brightness_5'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a color'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Colors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'black54'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a label'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'chipTurnOnLights'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- ]);
- }
-
- static TextSpan chipDemoChoice(BuildContext context) {
- final CodeStyle codeStyle = CodeStyle.of(context);
- return TextSpan(children: [
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Copyright 2019 The Flutter team. All rights reserved.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Use of this source code is governed by a BSD-style license that can be'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle, text: '// found in the LICENSE file.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:flutter/material.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:gallery/l10n/gallery_localizations.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_ChoiceChipDemo'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'StatefulWidget'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_ChoiceChipDemoState'),
- TextSpan(style: codeStyle.baseStyle, text: ' createState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_ChoiceChipDemoState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_ChoiceChipDemoState'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'State'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: '_ChoiceChipDemo'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'int'),
- TextSpan(style: codeStyle.baseStyle, text: ' indexSelected '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '-'),
- TextSpan(style: codeStyle.numberStyle, text: '1'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' build'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Center'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Wrap'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a children'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'ChoiceChip'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a label'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'chipSmall'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a selected'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' indexSelected '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a onSelected'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a setState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a indexSelected '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' value '),
- TextSpan(style: codeStyle.punctuationStyle, text: '?'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '0'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '-'),
- TextSpan(style: codeStyle.numberStyle, text: '1'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '});'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'SizedBox'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'width'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '8'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'ChoiceChip'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a label'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'chipMedium'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a selected'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' indexSelected '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '1'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a onSelected'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a setState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a indexSelected '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' value '),
- TextSpan(style: codeStyle.punctuationStyle, text: '?'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '1'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '-'),
- TextSpan(style: codeStyle.numberStyle, text: '1'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '});'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'SizedBox'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'width'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '8'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'ChoiceChip'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a label'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'chipLarge'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a selected'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' indexSelected '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '2'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a onSelected'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a setState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a indexSelected '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' value '),
- TextSpan(style: codeStyle.punctuationStyle, text: '?'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '2'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '-'),
- TextSpan(style: codeStyle.numberStyle, text: '1'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '});'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- ]);
- }
-
- static TextSpan chipDemoFilter(BuildContext context) {
- final CodeStyle codeStyle = CodeStyle.of(context);
- return TextSpan(children: [
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Copyright 2019 The Flutter team. All rights reserved.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Use of this source code is governed by a BSD-style license that can be'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle, text: '// found in the LICENSE file.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:flutter/material.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:gallery/l10n/gallery_localizations.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_FilterChipDemo'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'StatefulWidget'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_FilterChipDemoState'),
- TextSpan(style: codeStyle.baseStyle, text: ' createState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_FilterChipDemoState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_FilterChipDemoState'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'State'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: '_FilterChipDemo'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'bool'),
- TextSpan(style: codeStyle.baseStyle, text: ' isSelectedElevator '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'false'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'bool'),
- TextSpan(style: codeStyle.baseStyle, text: ' isSelectedWasher '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'false'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'bool'),
- TextSpan(style: codeStyle.baseStyle, text: ' isSelectedFireplace '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'false'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' build'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' chips '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'FilterChip'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a label'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'chipElevator'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a selected'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' isSelectedElevator'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onSelected'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a setState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a isSelectedElevator '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '!'),
- TextSpan(style: codeStyle.baseStyle, text: 'isSelectedElevator'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '});'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'FilterChip'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a label'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'chipWasher'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a selected'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' isSelectedWasher'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onSelected'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a setState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a isSelectedWasher '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '!'),
- TextSpan(style: codeStyle.baseStyle, text: 'isSelectedWasher'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '});'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'FilterChip'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a label'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'chipFireplace'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a selected'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' isSelectedFireplace'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onSelected'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a setState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a isSelectedFireplace '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '!'),
- TextSpan(style: codeStyle.baseStyle, text: 'isSelectedFireplace'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '});'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '];'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Center'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Wrap'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a children'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'for'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' chip '),
- TextSpan(style: codeStyle.keywordStyle, text: 'in'),
- TextSpan(style: codeStyle.baseStyle, text: ' chips'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Padding'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a padding'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'EdgeInsets'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'all'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.numberStyle, text: '4'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' chip'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- ]);
- }
-
- static TextSpan chipDemoInput(BuildContext context) {
- final CodeStyle codeStyle = CodeStyle.of(context);
- return TextSpan(children: [
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Copyright 2019 The Flutter team. All rights reserved.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Use of this source code is governed by a BSD-style license that can be'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle, text: '// found in the LICENSE file.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:flutter/material.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:gallery/l10n/gallery_localizations.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_InputChipDemo'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'StatelessWidget'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' build'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Center'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'InputChip'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onPressed'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onDeleted'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a avatar'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Icons'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'directions_bike'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a size'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '20'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a color'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Colors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'black54'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a deleteIconColor'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Colors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'black54'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a label'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'chipBiking'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- ]);
- }
-
- static TextSpan colorsDemo(BuildContext context) {
- final CodeStyle codeStyle = CodeStyle.of(context);
- return TextSpan(children: [
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Copyright 2019 The Flutter team. All rights reserved.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Use of this source code is governed by a BSD-style license that can be'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle, text: '// found in the LICENSE file.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:flutter/material.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:gallery/l10n/gallery_localizations.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'double'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.constantStyle, text: 'kColorItemHeight'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '48'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_Palette'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_Palette'),
- TextSpan(style: codeStyle.punctuationStyle, text: '({'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'name'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'primary'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'accent'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'threshold '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '900'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '})'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'assert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'name '),
- TextSpan(style: codeStyle.punctuationStyle, text: '!='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'assert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'primary '),
- TextSpan(style: codeStyle.punctuationStyle, text: '!='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'assert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'threshold '),
- TextSpan(style: codeStyle.punctuationStyle, text: '!='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.baseStyle, text: ' name'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'MaterialColor'),
- TextSpan(style: codeStyle.baseStyle, text: ' primary'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'MaterialAccentColor'),
- TextSpan(style: codeStyle.baseStyle, text: ' accent'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Titles for indices > threshold are white, otherwise black.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'int'),
- TextSpan(style: codeStyle.baseStyle, text: ' threshold'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.classStyle, text: 'List'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: '_Palette'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' _allPalettes'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_Palette'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a name'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'colorsRed'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a primary'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Colors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'red'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a accent'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Colors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'redAccent'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a threshold'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '300'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_Palette'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a name'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'colorsPink'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a primary'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Colors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'pink'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a accent'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Colors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'pinkAccent'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a threshold'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '200'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_Palette'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a name'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'colorsPurple'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a primary'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Colors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'purple'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a accent'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Colors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'purpleAccent'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a threshold'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '200'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_Palette'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a name'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'colorsDeepPurple'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a primary'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Colors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'deepPurple'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a accent'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Colors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'deepPurpleAccent'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a threshold'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '200'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_Palette'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a name'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'colorsIndigo'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a primary'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Colors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'indigo'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a accent'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Colors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'indigoAccent'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a threshold'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '200'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_Palette'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a name'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'colorsBlue'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a primary'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Colors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'blue'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a accent'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Colors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'blueAccent'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a threshold'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '400'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_Palette'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a name'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'colorsLightBlue'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a primary'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Colors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'lightBlue'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a accent'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Colors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'lightBlueAccent'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a threshold'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '500'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_Palette'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a name'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'colorsCyan'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a primary'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Colors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'cyan'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a accent'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Colors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'cyanAccent'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a threshold'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '600'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_Palette'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a name'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'colorsTeal'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a primary'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Colors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'teal'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a accent'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Colors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'tealAccent'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a threshold'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '400'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_Palette'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a name'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'colorsGreen'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a primary'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Colors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'green'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a accent'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Colors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'greenAccent'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a threshold'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '500'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_Palette'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a name'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'colorsLightGreen'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a primary'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Colors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'lightGreen'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a accent'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Colors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'lightGreenAccent'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a threshold'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '600'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_Palette'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a name'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'colorsLime'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a primary'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Colors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'lime'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a accent'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Colors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'limeAccent'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a threshold'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '800'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_Palette'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a name'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'colorsYellow'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a primary'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Colors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'yellow'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a accent'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Colors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'yellowAccent'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_Palette'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a name'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'colorsAmber'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a primary'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Colors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'amber'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a accent'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Colors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'amberAccent'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_Palette'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a name'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'colorsOrange'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a primary'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Colors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'orange'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a accent'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Colors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'orangeAccent'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a threshold'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '700'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_Palette'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a name'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'colorsDeepOrange'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a primary'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Colors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'deepOrange'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a accent'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Colors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'deepOrangeAccent'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a threshold'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '400'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_Palette'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a name'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'colorsBrown'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a primary'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Colors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'brown'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a threshold'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '200'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_Palette'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a name'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'colorsGrey'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a primary'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Colors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'grey'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a threshold'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '500'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_Palette'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a name'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'colorsBlueGrey'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a primary'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Colors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'blueGrey'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a threshold'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '500'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '];'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_ColorItem'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'StatelessWidget'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_ColorItem'),
- TextSpan(style: codeStyle.punctuationStyle, text: '({'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Key'),
- TextSpan(style: codeStyle.baseStyle, text: ' key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@required'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'index'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@required'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'color'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'prefix '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.stringStyle, text: '\u0027\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '})'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'assert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'index '),
- TextSpan(style: codeStyle.punctuationStyle, text: '!='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'assert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'color '),
- TextSpan(style: codeStyle.punctuationStyle, text: '!='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'assert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'prefix '),
- TextSpan(style: codeStyle.punctuationStyle, text: '!='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'super'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'int'),
- TextSpan(style: codeStyle.baseStyle, text: ' index'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Color'),
- TextSpan(style: codeStyle.baseStyle, text: ' color'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.baseStyle, text: ' prefix'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'get'),
- TextSpan(style: codeStyle.baseStyle, text: ' _colorString '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.stringStyle,
- text:
- '\u0022#\u0024{color.value.toRadixString(16).padLeft(8, \u00270\u0027).toUpperCase()}\u0022'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' build'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Semantics'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a container'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'true'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Container'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a height'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.constantStyle, text: 'kColorItemHeight'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a padding'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'EdgeInsets'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'symmetric'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'horizontal'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '16'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a color'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' color'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Row'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a mainAxisAlignment'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'MainAxisAlignment'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'spaceBetween'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a crossAxisAlignment'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CrossAxisAlignment'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'center'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a children'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027\u0024prefix\u0024index\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Flexible'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '_colorString'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'PaletteTabView'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'StatelessWidget'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'PaletteTabView'),
- TextSpan(style: codeStyle.punctuationStyle, text: '({'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Key'),
- TextSpan(style: codeStyle.baseStyle, text: ' key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@required'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'colors'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '})'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'assert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'colors '),
- TextSpan(style: codeStyle.punctuationStyle, text: '!='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'super'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_Palette'),
- TextSpan(style: codeStyle.baseStyle, text: ' colors'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'static'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' primaryKeys '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.keywordStyle, text: 'int'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '50'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '100'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '200'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '300'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '400'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '500'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '600'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '700'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '800'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '900'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '];'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'static'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' accentKeys '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.keywordStyle, text: 'int'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>['),
- TextSpan(style: codeStyle.numberStyle, text: '100'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '200'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '400'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '700'),
- TextSpan(style: codeStyle.punctuationStyle, text: '];'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' build'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'TextTheme'),
- TextSpan(style: codeStyle.baseStyle, text: ' textTheme '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Theme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'textTheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'TextStyle'),
- TextSpan(style: codeStyle.baseStyle, text: ' whiteTextStyle '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' textTheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'body1'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'copyWith'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a color'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Colors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'white'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'TextStyle'),
- TextSpan(style: codeStyle.baseStyle, text: ' blackTextStyle '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' textTheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'body1'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'copyWith'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a color'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Colors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'black'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Scrollbar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'ListView'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a itemExtent'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.constantStyle, text: 'kColorItemHeight'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a children'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'for'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' key '),
- TextSpan(style: codeStyle.keywordStyle, text: 'in'),
- TextSpan(style: codeStyle.baseStyle, text: ' primaryKeys'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'DefaultTextStyle'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a style'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' key '),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' colors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'threshold '),
- TextSpan(style: codeStyle.punctuationStyle, text: '?'),
- TextSpan(style: codeStyle.baseStyle, text: ' whiteTextStyle '),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' blackTextStyle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_ColorItem'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'index'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' color'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' colors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'primary'),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: 'key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ']),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'if'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'colors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'accent '),
- TextSpan(style: codeStyle.punctuationStyle, text: '!='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'for'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' key '),
- TextSpan(style: codeStyle.keywordStyle, text: 'in'),
- TextSpan(style: codeStyle.baseStyle, text: ' accentKeys'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'DefaultTextStyle'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a style'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' key '),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' colors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'threshold '),
- TextSpan(style: codeStyle.punctuationStyle, text: '?'),
- TextSpan(style: codeStyle.baseStyle, text: ' whiteTextStyle '),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' blackTextStyle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_ColorItem'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a index'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a color'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' colors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'accent'),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: 'key'),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a prefix'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.stringStyle, text: '\u0027A\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'ColorsDemo'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'StatelessWidget'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' build'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' palettes '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' _allPalettes'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'DefaultTabController'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a length'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' palettes'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'length'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Scaffold'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a appBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'AppBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a automaticallyImplyLeading'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'false'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoColorsTitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a bottom'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'TabBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a isScrollable'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'true'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a tabs'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'for'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' palette '),
- TextSpan(style: codeStyle.keywordStyle, text: 'in'),
- TextSpan(style: codeStyle.baseStyle, text: ' palettes'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Tab'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'text'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' palette'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'name'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a body'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'TabBarView'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a children'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'for'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' palette '),
- TextSpan(style: codeStyle.keywordStyle, text: 'in'),
- TextSpan(style: codeStyle.baseStyle, text: ' palettes'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'PaletteTabView'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'colors'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' palette'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- ]);
- }
-
- static TextSpan cupertinoActivityIndicatorDemo(BuildContext context) {
- final CodeStyle codeStyle = CodeStyle.of(context);
- return TextSpan(children: [
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Copyright 2019 The Flutter team. All rights reserved.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Use of this source code is governed by a BSD-style license that can be'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle, text: '// found in the LICENSE file.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:flutter/cupertino.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:gallery/l10n/gallery_localizations.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.classStyle, text: 'CupertinoProgressIndicatorDemo'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'StatelessWidget'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' build'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoPageScaffold'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a navigationBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoNavigationBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a automaticallyImplyLeading'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'false'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a middle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: 'demoCupertinoActivityIndicatorTitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Center'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoActivityIndicator'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- ]);
- }
-
- static TextSpan cupertinoAlertDemo(BuildContext context) {
- final CodeStyle codeStyle = CodeStyle.of(context);
- return TextSpan(children: [
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Copyright 2019 The Flutter team. All rights reserved.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Use of this source code is governed by a BSD-style license that can be'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle, text: '// found in the LICENSE file.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:flutter/cupertino.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:gallery/data/gallery_options.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:gallery/l10n/gallery_localizations.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'enum'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'AlertDemoType'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a alert'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a alertTitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a alertButtons'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a alertButtonsOnly'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a actionSheet'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoAlertDemo'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'StatefulWidget'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoAlertDemo'),
- TextSpan(style: codeStyle.punctuationStyle, text: '({'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Key'),
- TextSpan(style: codeStyle.baseStyle, text: ' key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@required'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'type'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '})'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'super'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'AlertDemoType'),
- TextSpan(style: codeStyle.baseStyle, text: ' type'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_CupertinoAlertDemoState'),
- TextSpan(style: codeStyle.baseStyle, text: ' createState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_CupertinoAlertDemoState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_CupertinoAlertDemoState'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'State'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoAlertDemo'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.baseStyle, text: ' lastSelectedValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.baseStyle, text: ' _title'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'switch'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'type'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'case'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'AlertDemoType'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'alert'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoCupertinoAlertTitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'case'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'AlertDemoType'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'alertTitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(
- style: codeStyle.baseStyle, text: 'demoCupertinoAlertWithTitleTitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'case'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'AlertDemoType'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'alertButtons'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(
- style: codeStyle.baseStyle, text: 'demoCupertinoAlertButtonsTitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'case'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'AlertDemoType'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'alertButtonsOnly'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: 'demoCupertinoAlertButtonsOnlyTitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'case'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'AlertDemoType'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'actionSheet'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(
- style: codeStyle.baseStyle, text: 'demoCupertinoActionSheetTitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.stringStyle, text: '\u0027\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'void'),
- TextSpan(style: codeStyle.baseStyle, text: ' _showDemoDialog'),
- TextSpan(style: codeStyle.punctuationStyle, text: '({'),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' child'),
- TextSpan(style: codeStyle.punctuationStyle, text: '})'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a showCupertinoDialog'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a builder'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'ApplyTextOptions'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' child'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'then'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(('),
- TextSpan(style: codeStyle.baseStyle, text: 'value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'if'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'value '),
- TextSpan(style: codeStyle.punctuationStyle, text: '!='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a setState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a lastSelectedValue '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '});'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '});'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'void'),
- TextSpan(style: codeStyle.baseStyle, text: ' _showDemoActionSheet'),
- TextSpan(style: codeStyle.punctuationStyle, text: '({'),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' child'),
- TextSpan(style: codeStyle.punctuationStyle, text: '})'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'ApplyTextOptions'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoTheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a data'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoTheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a showCupertinoModalPopup'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a builder'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'then'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(('),
- TextSpan(style: codeStyle.baseStyle, text: 'value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'if'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'value '),
- TextSpan(style: codeStyle.punctuationStyle, text: '!='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a setState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a lastSelectedValue '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '});'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '});'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'void'),
- TextSpan(style: codeStyle.baseStyle, text: ' _onAlertPress'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _showDemoDialog'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoAlertDialog'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'dialogDiscardTitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a actions'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoDialogAction'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'cupertinoAlertDiscard'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a isDestructiveAction'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'true'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onPressed'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Navigator'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' rootNavigator'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'true'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'pop'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'cupertinoAlertDiscard'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoDialogAction'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'cupertinoAlertCancel'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a isDefaultAction'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'true'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onPressed'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Navigator'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' rootNavigator'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'true'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'pop'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'cupertinoAlertCancel'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'void'),
- TextSpan(style: codeStyle.baseStyle, text: ' _onAlertWithTitlePress'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _showDemoDialog'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoAlertDialog'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'cupertinoAlertLocationTitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a content'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: 'cupertinoAlertLocationDescription'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a actions'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoDialogAction'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'cupertinoAlertDontAllow'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onPressed'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Navigator'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' rootNavigator'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'true'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'pop'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'cupertinoAlertDontAllow'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoDialogAction'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'cupertinoAlertAllow'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onPressed'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Navigator'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' rootNavigator'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'true'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'pop'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'cupertinoAlertAllow'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'void'),
- TextSpan(style: codeStyle.baseStyle, text: ' _onAlertWithButtonsPress'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _showDemoDialog'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoDessertDialog'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(
- style: codeStyle.baseStyle, text: 'cupertinoAlertFavoriteDessert'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a content'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(
- style: codeStyle.baseStyle, text: 'cupertinoAlertDessertDescription'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'void'),
- TextSpan(style: codeStyle.baseStyle, text: ' _onAlertButtonsOnlyPress'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _showDemoDialog'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoDessertDialog'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'void'),
- TextSpan(style: codeStyle.baseStyle, text: ' _onActionSheetPress'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a _showDemoActionSheet'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoActionSheet'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(
- style: codeStyle.baseStyle, text: 'cupertinoAlertFavoriteDessert'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a message'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(
- style: codeStyle.baseStyle, text: 'cupertinoAlertDessertDescription'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a actions'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoActionSheetAction'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'cupertinoAlertCheesecake'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onPressed'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Navigator'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' rootNavigator'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'true'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'pop'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'cupertinoAlertCheesecake'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoActionSheetAction'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'cupertinoAlertTiramisu'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onPressed'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Navigator'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' rootNavigator'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'true'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'pop'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'cupertinoAlertTiramisu'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoActionSheetAction'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'cupertinoAlertApplePie'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onPressed'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Navigator'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' rootNavigator'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'true'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'pop'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'cupertinoAlertApplePie'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a cancelButton'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoActionSheetAction'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'cupertinoAlertCancel'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a isDefaultAction'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'true'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onPressed'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Navigator'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' rootNavigator'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'true'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'pop'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'cupertinoAlertCancel'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' build'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoPageScaffold'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a navigationBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoNavigationBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a automaticallyImplyLeading'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'false'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a middle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '_title'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Builder'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a builder'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Column'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a children'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Expanded'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Center'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoButton'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'filled'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'cupertinoShowAlert'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a onPressed'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'switch'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'type'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'case'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'AlertDemoType'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'alert'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a _onAlertPress'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'break'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'case'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'AlertDemoType'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'alertTitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a _onAlertWithTitlePress'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'break'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'case'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'AlertDemoType'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'alertButtons'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a _onAlertWithButtonsPress'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'break'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'case'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'AlertDemoType'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'alertButtonsOnly'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a _onAlertButtonsOnlyPress'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'break'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'case'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'AlertDemoType'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'actionSheet'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a _onActionSheetPress'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'break'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'if'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'lastSelectedValue '),
- TextSpan(style: codeStyle.punctuationStyle, text: '!='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Padding'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a padding'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'EdgeInsets'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'all'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.numberStyle, text: '16'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dialogSelectedOption'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'lastSelectedValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a style'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoTheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'textTheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'textStyle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a textAlign'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'TextAlign'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'center'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoDessertDialog'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'StatelessWidget'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoDessertDialog'),
- TextSpan(style: codeStyle.punctuationStyle, text: '({'),
- TextSpan(style: codeStyle.classStyle, text: 'Key'),
- TextSpan(style: codeStyle.baseStyle, text: ' key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'content'),
- TextSpan(style: codeStyle.punctuationStyle, text: '})'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'super'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' content'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' build'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoAlertDialog'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a content'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' content'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a actions'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoDialogAction'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'cupertinoAlertCheesecake'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onPressed'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Navigator'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' rootNavigator'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'true'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'pop'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'cupertinoAlertCheesecake'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoDialogAction'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'cupertinoAlertTiramisu'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onPressed'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Navigator'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' rootNavigator'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'true'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'pop'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'cupertinoAlertTiramisu'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoDialogAction'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'cupertinoAlertApplePie'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onPressed'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Navigator'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' rootNavigator'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'true'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'pop'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'cupertinoAlertApplePie'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoDialogAction'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(
- style: codeStyle.baseStyle, text: 'cupertinoAlertChocolateBrownie'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onPressed'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Navigator'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' rootNavigator'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'true'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'pop'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(
- style: codeStyle.baseStyle, text: 'cupertinoAlertChocolateBrownie'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoDialogAction'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'cupertinoAlertCancel'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a isDestructiveAction'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'true'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onPressed'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Navigator'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' rootNavigator'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'true'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'pop'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'cupertinoAlertCancel'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- ]);
- }
-
- static TextSpan cupertinoButtonDemo(BuildContext context) {
- final CodeStyle codeStyle = CodeStyle.of(context);
- return TextSpan(children: [
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Copyright 2019 The Flutter team. All rights reserved.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Use of this source code is governed by a BSD-style license that can be'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle, text: '// found in the LICENSE file.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:flutter/cupertino.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:gallery/l10n/gallery_localizations.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoButtonDemo'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'StatelessWidget'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' build'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoPageScaffold'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a navigationBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoNavigationBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a automaticallyImplyLeading'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'false'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a middle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoCupertinoButtonsTitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Center'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Column'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a mainAxisAlignment'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'MainAxisAlignment'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'center'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a children'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoButton'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'cupertinoButton'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a onPressed'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'SizedBox'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'height'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '16'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoButton'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'filled'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(
- style: codeStyle.baseStyle, text: 'cupertinoButtonWithBackground'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a onPressed'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- ]);
- }
-
- static TextSpan cupertinoNavigationBarDemo(BuildContext context) {
- final CodeStyle codeStyle = CodeStyle.of(context);
- return TextSpan(children: [
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Copyright 2019 The Flutter team. All rights reserved.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Use of this source code is governed by a BSD-style license that can be'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle, text: '// found in the LICENSE file.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:flutter/cupertino.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:flutter/material.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:gallery/l10n/gallery_localizations.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoNavigationBarDemo'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'StatelessWidget'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' build'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Navigator'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'onGenerateRoute'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'settings'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.classStyle, text: '_NoAnimationCupertinoPageRoute'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.keywordStyle, text: 'void'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(
- style: codeStyle.baseStyle, text: 'demoCupertinoNavigationBarTitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a builder'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoPageScaffold'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CustomScrollView'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a slivers'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.classStyle, text: 'CupertinoSliverNavigationBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a automaticallyImplyLeading'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'false'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'SliverPadding'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a padding'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'MediaQuery'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'removePadding'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'removeTop'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'true'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'padding'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a sliver'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'SliverList'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a delegate'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'SliverChildBuilderDelegate'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' index'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' title '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'starterAppDrawerItem'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'index '),
- TextSpan(style: codeStyle.punctuationStyle, text: '+'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '1'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'ListTile'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a onTap'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Navigator'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'push'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoPageRoute'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.keywordStyle, text: 'void'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a builder'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_SecondPage'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(),'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '));'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'title'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a childCount'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '20'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '});'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_SecondPage'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'StatelessWidget'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' build'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoPageScaffold'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a navigationBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoNavigationBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Container'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text: '/// A CupertinoPageRoute without any transition animations.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.classStyle, text: '_NoAnimationCupertinoPageRoute'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'T'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoPageRoute'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'T'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.classStyle, text: '_NoAnimationCupertinoPageRoute'),
- TextSpan(style: codeStyle.punctuationStyle, text: '({'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@required'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'WidgetBuilder'),
- TextSpan(style: codeStyle.baseStyle, text: ' builder'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.baseStyle, text: ' title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '})'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'super'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'builder'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' builder'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' buildTransitions'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Animation'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.keywordStyle, text: 'double'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' animation'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Animation'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.keywordStyle, text: 'double'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' secondaryAnimation'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- ]);
- }
-
- static TextSpan cupertinoNavigationDemo(BuildContext context) {
- final CodeStyle codeStyle = CodeStyle.of(context);
- return TextSpan(children: [
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Copyright 2019 The Flutter team. All rights reserved.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Use of this source code is governed by a BSD-style license that can be'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle, text: '// found in the LICENSE file.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:flutter/cupertino.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:gallery/l10n/gallery_localizations.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_TabInfo'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_TabInfo'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.baseStyle, text: ' title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'IconData'),
- TextSpan(style: codeStyle.baseStyle, text: ' icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoTabBarDemo'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'StatelessWidget'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' build'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' _tabInfo '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_TabInfo'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'cupertinoTabBarHomeTab'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoIcons'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'home'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_TabInfo'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'cupertinoTabBarChatTab'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoIcons'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'conversation_bubble'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_TabInfo'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'cupertinoTabBarProfileTab'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoIcons'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'profile_circled'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '];'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'DefaultTextStyle'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a style'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoTheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'textTheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'textStyle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoTabScaffold'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a tabBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoTabBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a items'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'for'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' tabInfo '),
- TextSpan(style: codeStyle.keywordStyle, text: 'in'),
- TextSpan(style: codeStyle.baseStyle, text: ' _tabInfo'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'BottomNavigationBarItem'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'tabInfo'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'title'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'tabInfo'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a tabBuilder'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' index'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoTabView'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a builder'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_CupertinoDemoTab'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _tabInfo'),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: 'index'),
- TextSpan(style: codeStyle.punctuationStyle, text: '].'),
- TextSpan(style: codeStyle.baseStyle, text: 'title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _tabInfo'),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: 'index'),
- TextSpan(style: codeStyle.punctuationStyle, text: '].'),
- TextSpan(style: codeStyle.baseStyle, text: 'icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a defaultTitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _tabInfo'),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: 'index'),
- TextSpan(style: codeStyle.punctuationStyle, text: '].'),
- TextSpan(style: codeStyle.baseStyle, text: 'title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_CupertinoDemoTab'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'StatelessWidget'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_CupertinoDemoTab'),
- TextSpan(style: codeStyle.punctuationStyle, text: '({'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Key'),
- TextSpan(style: codeStyle.baseStyle, text: ' key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@required'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@required'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '})'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'super'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.baseStyle, text: ' title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'IconData'),
- TextSpan(style: codeStyle.baseStyle, text: ' icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' build'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoPageScaffold'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a navigationBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoNavigationBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a backgroundColor'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoColors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'systemBackground'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Center'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a semanticLabel'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a size'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '100'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- ]);
- }
-
- static TextSpan cupertinoPickersDemo(BuildContext context) {
- final CodeStyle codeStyle = CodeStyle.of(context);
- return TextSpan(children: [
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Copyright 2019 The Flutter team. All rights reserved.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Use of this source code is governed by a BSD-style license that can be'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle, text: '// found in the LICENSE file.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:flutter/cupertino.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:gallery/l10n/gallery_localizations.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:intl/intl.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoPickerDemo'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'StatefulWidget'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_CupertinoPickerDemoState'),
- TextSpan(style: codeStyle.baseStyle, text: ' createState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_CupertinoPickerDemoState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_CupertinoPickerDemoState'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'State'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoPickerDemo'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Duration'),
- TextSpan(style: codeStyle.baseStyle, text: ' timer '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Duration'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Value that is shown in the date picker in date mode.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'DateTime'),
- TextSpan(style: codeStyle.baseStyle, text: ' date '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'DateTime'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'now'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Value that is shown in the date picker in time mode.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'DateTime'),
- TextSpan(style: codeStyle.baseStyle, text: ' time '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'DateTime'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'now'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Value that is shown in the date picker in dateAndTime mode.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'DateTime'),
- TextSpan(style: codeStyle.baseStyle, text: ' dateTime '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'DateTime'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'now'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' _buildDatePicker'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GestureDetector'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onTap'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a showCupertinoModalPopup'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.keywordStyle, text: 'void'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a builder'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_BottomPicker'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoDatePicker'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a backgroundColor'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoColors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'systemBackground'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'resolveFrom'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a mode'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoDatePickerMode'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'date'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a initialDateTime'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' date'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a onDateTimeChanged'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'newDateTime'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a setState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' date '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' newDateTime'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_Menu'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'children'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoCupertinoPickerDate'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'DateFormat'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'yMMMMd'),
- TextSpan(style: codeStyle.punctuationStyle, text: '().'),
- TextSpan(style: codeStyle.baseStyle, text: 'format'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'date'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a style'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'TextStyle'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'color'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoColors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'inactiveGray'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ']),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' _buildTimePicker'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GestureDetector'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onTap'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a showCupertinoModalPopup'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.keywordStyle, text: 'void'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a builder'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_BottomPicker'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoDatePicker'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a backgroundColor'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoColors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'systemBackground'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'resolveFrom'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a mode'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoDatePickerMode'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'time'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a initialDateTime'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' time'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a onDateTimeChanged'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'newDateTime'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a setState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' time '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' newDateTime'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_Menu'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a children'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoCupertinoPickerTime'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'DateFormat'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'jm'),
- TextSpan(style: codeStyle.punctuationStyle, text: '().'),
- TextSpan(style: codeStyle.baseStyle, text: 'format'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'time'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a style'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'TextStyle'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'color'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoColors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'inactiveGray'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' _buildDateAndTimePicker'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GestureDetector'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onTap'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a showCupertinoModalPopup'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.keywordStyle, text: 'void'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a builder'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_BottomPicker'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoDatePicker'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a backgroundColor'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoColors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'systemBackground'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'resolveFrom'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a mode'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoDatePickerMode'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dateAndTime'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a initialDateTime'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' dateTime'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a onDateTimeChanged'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'newDateTime'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a setState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' dateTime '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' newDateTime'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_Menu'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a children'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoCupertinoPickerDateTime'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'DateFormat'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'yMMMd'),
- TextSpan(style: codeStyle.punctuationStyle, text: '().'),
- TextSpan(style: codeStyle.baseStyle, text: 'add_jm'),
- TextSpan(style: codeStyle.punctuationStyle, text: '().'),
- TextSpan(style: codeStyle.baseStyle, text: 'format'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'dateTime'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a style'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'TextStyle'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'color'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoColors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'inactiveGray'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' _buildCountdownTimerPicker'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GestureDetector'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onTap'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a showCupertinoModalPopup'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.keywordStyle, text: 'void'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a builder'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_BottomPicker'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoTimerPicker'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a backgroundColor'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoColors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'systemBackground'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'resolveFrom'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a initialTimerDuration'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' timer'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a onTimerDurationChanged'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'newTimer'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a setState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' timer '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' newTimer'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_Menu'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a children'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoCupertinoPickerTimer'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027\u0024{timer.inHours}:\u0027'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.stringStyle,
- text:
- '\u0027\u0024{(timer.inMinutes % 60).toString().padLeft(2, \u0027'),
- TextSpan(style: codeStyle.numberStyle, text: '0'),
- TextSpan(style: codeStyle.stringStyle, text: '\u0027)}:\u0027'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.stringStyle,
- text:
- '\u0027\u0024{(timer.inSeconds % 60).toString().padLeft(2, \u0027'),
- TextSpan(style: codeStyle.numberStyle, text: '0'),
- TextSpan(style: codeStyle.stringStyle, text: '\u0027)}\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a style'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'TextStyle'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'color'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoColors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'inactiveGray'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' build'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoPageScaffold'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a navigationBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoNavigationBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a automaticallyImplyLeading'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'false'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a middle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoCupertinoPickerTitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'DefaultTextStyle'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a style'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoTheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'textTheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'textStyle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'ListView'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a children'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'SizedBox'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'height'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '32'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a _buildDatePicker'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a _buildTimePicker'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a _buildDateAndTimePicker'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a _buildCountdownTimerPicker'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_BottomPicker'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'StatelessWidget'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_BottomPicker'),
- TextSpan(style: codeStyle.punctuationStyle, text: '({'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Key'),
- TextSpan(style: codeStyle.baseStyle, text: ' key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@required'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '})'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'assert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'child '),
- TextSpan(style: codeStyle.punctuationStyle, text: '!='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'super'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' build'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Container'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a height'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '216'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a padding'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'EdgeInsets'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'only'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'top'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '6'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a color'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoColors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'systemBackground'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'resolveFrom'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'DefaultTextStyle'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a style'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'TextStyle'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a color'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoColors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'label'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'resolveFrom'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a fontSize'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '22'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GestureDetector'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Blocks taps from propagating to the modal sheet and popping.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onTap'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'SafeArea'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a top'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'false'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_Menu'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'StatelessWidget'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_Menu'),
- TextSpan(style: codeStyle.punctuationStyle, text: '({'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Key'),
- TextSpan(style: codeStyle.baseStyle, text: ' key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@required'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'children'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '})'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'assert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'children '),
- TextSpan(style: codeStyle.punctuationStyle, text: '!='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'super'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'List'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' children'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' build'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Container'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a decoration'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'BoxDecoration'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a border'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Border'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a top'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'BorderSide'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'color'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoColors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'inactiveGray'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' width'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '0'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a bottom'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'BorderSide'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'color'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoColors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'inactiveGray'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' width'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '0'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a height'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '44'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Padding'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a padding'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'EdgeInsets'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'symmetric'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'horizontal'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '16'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Row'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a mainAxisAlignment'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'MainAxisAlignment'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'spaceBetween'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a children'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' children'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- ]);
- }
-
- static TextSpan cupertinoRefreshDemo(BuildContext context) {
- final CodeStyle codeStyle = CodeStyle.of(context);
- return TextSpan(children: [
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Copyright 2019 The Flutter team. All rights reserved.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Use of this source code is governed by a BSD-style license that can be'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle, text: '// found in the LICENSE file.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.stringStyle, text: '\u0027dart:math\u0027'),
- TextSpan(style: codeStyle.baseStyle, text: ' show '),
- TextSpan(style: codeStyle.classStyle, text: 'Random'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:flutter/cupertino.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:flutter/material.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:gallery/l10n/gallery_localizations.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.classStyle, text: 'CupertinoRefreshControlDemo'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'StatefulWidget'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.classStyle,
- text: '_CupertinoRefreshControlDemoState'),
- TextSpan(style: codeStyle.baseStyle, text: ' createState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.classStyle,
- text: '_CupertinoRefreshControlDemoState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.classStyle,
- text: '_CupertinoRefreshControlDemoState'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'State'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(
- style: codeStyle.classStyle, text: 'CupertinoRefreshControlDemo'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'static'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' listCount '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '20'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'var'),
- TextSpan(style: codeStyle.baseStyle, text: ' randomList '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'List'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.keywordStyle, text: 'int'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>.'),
- TextSpan(style: codeStyle.baseStyle, text: 'generate'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'listCount'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'i'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' i '),
- TextSpan(style: codeStyle.punctuationStyle, text: '+'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '1'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'void'),
- TextSpan(style: codeStyle.baseStyle, text: ' _shuffleList'),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' randomList'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'shuffle'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'Random'),
- TextSpan(style: codeStyle.punctuationStyle, text: '());'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' build'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoPageScaffold'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CustomScrollView'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// If left unspecified, the [CustomScrollView] appends an'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// [AlwaysScrollableScrollPhysics]. Behind the scene, the ScrollableState'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// will attach that [AlwaysScrollableScrollPhysics] to the output of'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// [ScrollConfiguration.of] which will be a [ClampingScrollPhysics]'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.commentStyle, text: '// on Android.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// To demonstrate the iOS behavior in this demo and to ensure that the list'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// always scrolls, we specifically use a [BouncingScrollPhysics] combined'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// with a [AlwaysScrollableScrollPhysics]'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a physics'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'BouncingScrollPhysics'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a parent'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.classStyle, text: 'AlwaysScrollableScrollPhysics'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a slivers'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.classStyle, text: 'CupertinoSliverNavigationBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a automaticallyImplyLeading'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'false'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a largeTitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(
- style: codeStyle.baseStyle, text: 'demoCupertinoPullToRefreshTitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.classStyle, text: 'CupertinoSliverRefreshControl'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onRefresh'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Future'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.keywordStyle, text: 'void'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>.'),
- TextSpan(style: codeStyle.baseStyle, text: 'delayed'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Duration'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'seconds'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '1'),
- TextSpan(style: codeStyle.punctuationStyle, text: '))'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '..'),
- TextSpan(style: codeStyle.baseStyle, text: 'then'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.keywordStyle, text: 'void'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>(('),
- TextSpan(style: codeStyle.baseStyle, text: '_'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'if'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'mounted'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a setState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' _shuffleList'),
- TextSpan(style: codeStyle.punctuationStyle, text: '());'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '});'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'SliverList'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a delegate'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'SliverChildBuilderDelegate'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' index'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' title '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'starterAppDrawerItem'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'randomList'),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: 'index'),
- TextSpan(style: codeStyle.punctuationStyle, text: ']);'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'ListTile'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'title'),
- TextSpan(style: codeStyle.punctuationStyle, text: '));'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a childCount'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' listCount'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- ]);
- }
-
- static TextSpan cupertinoSegmentedControlDemo(BuildContext context) {
- final CodeStyle codeStyle = CodeStyle.of(context);
- return TextSpan(children: [
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Copyright 2019 The Flutter team. All rights reserved.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Use of this source code is governed by a BSD-style license that can be'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle, text: '// found in the LICENSE file.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:flutter/cupertino.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:flutter/material.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:gallery/l10n/gallery_localizations.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.classStyle, text: 'CupertinoSegmentedControlDemo'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'StatefulWidget'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.classStyle,
- text: '_CupertinoSegmentedControlDemoState'),
- TextSpan(style: codeStyle.baseStyle, text: ' createState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.classStyle,
- text: '_CupertinoSegmentedControlDemoState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.classStyle,
- text: '_CupertinoSegmentedControlDemoState'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'State'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(
- style: codeStyle.classStyle, text: 'CupertinoSegmentedControlDemo'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'int'),
- TextSpan(style: codeStyle.baseStyle, text: ' currentSegment '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'void'),
- TextSpan(style: codeStyle.baseStyle, text: ' onValueChanged'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.keywordStyle, text: 'int'),
- TextSpan(style: codeStyle.baseStyle, text: ' newValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a setState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a currentSegment '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' newValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '});'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' build'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' localizations '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' segmentedControlMaxWidth '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '500.0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' children '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.keywordStyle, text: 'int'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'localizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'colorsIndigo'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '1'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'localizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'colorsTeal'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '2'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'localizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'colorsCyan'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '};'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoPageScaffold'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a navigationBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoNavigationBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a automaticallyImplyLeading'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'false'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a middle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a localizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: 'demoCupertinoSegmentedControlTitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'DefaultTextStyle'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a style'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoTheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'textTheme\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'textStyle\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'copyWith'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'fontSize'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '13'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'SafeArea'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'ListView'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a children'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'SizedBox'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'height'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '16'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'SizedBox'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a width'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' segmentedControlMaxWidth'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoSegmentedControl'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.keywordStyle, text: 'int'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a children'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' children'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a onValueChanged'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' onValueChanged'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a groupValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' currentSegment'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'SizedBox'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a width'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' segmentedControlMaxWidth'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Padding'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a padding'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'EdgeInsets'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'all'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.numberStyle, text: '16'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.classStyle,
- text: 'CupertinoSlidingSegmentedControl'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.keywordStyle, text: 'int'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a children'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' children'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a onValueChanged'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' onValueChanged'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a groupValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' currentSegment'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Container'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a padding'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'EdgeInsets'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'all'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.numberStyle, text: '16'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a height'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '300'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a alignment'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Alignment'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'center'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' children'),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: 'currentSegment'),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- ]);
- }
-
- static TextSpan cupertinoSliderDemo(BuildContext context) {
- final CodeStyle codeStyle = CodeStyle.of(context);
- return TextSpan(children: [
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Copyright 2019 The Flutter team. All rights reserved.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Use of this source code is governed by a BSD-style license that can be'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle, text: '// found in the LICENSE file.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:flutter/cupertino.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:gallery/l10n/gallery_localizations.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoSliderDemo'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'StatefulWidget'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_CupertinoSliderDemoState'),
- TextSpan(style: codeStyle.baseStyle, text: ' createState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_CupertinoSliderDemoState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_CupertinoSliderDemoState'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'State'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoSliderDemo'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'double'),
- TextSpan(style: codeStyle.baseStyle, text: ' _value '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '25.0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'double'),
- TextSpan(style: codeStyle.baseStyle, text: ' _discreteValue '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '20.0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' build'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoPageScaffold'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a navigationBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoNavigationBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a automaticallyImplyLeading'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'false'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a middle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoCupertinoSliderTitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'DefaultTextStyle'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a style'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoTheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'textTheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'textStyle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Center'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Column'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a mainAxisAlignment'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'MainAxisAlignment'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'spaceEvenly'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a children'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Column'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a mainAxisSize'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'MainAxisSize'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'min'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a children'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'SizedBox'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a width'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'double'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'infinity'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoSlider'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a min'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '0.0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a max'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '100.0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a onChanged'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a setState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a _value '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '});'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'MergeSemantics'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(
- style: codeStyle.baseStyle, text: 'demoCupertinoSliderContinuous'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a _value'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'toStringAsFixed'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.numberStyle, text: '1'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Column'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a mainAxisSize'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'MainAxisSize'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'min'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a children'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'SizedBox'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a width'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'double'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'infinity'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoSlider'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _discreteValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a min'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '0.0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a max'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '100.0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a divisions'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '5'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a onChanged'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a setState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a _discreteValue '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '});'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'MergeSemantics'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoCupertinoSliderDiscrete'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a _discreteValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'toStringAsFixed'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.numberStyle, text: '1'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- ]);
- }
-
- static TextSpan cupertinoSwitchDemo(BuildContext context) {
- final CodeStyle codeStyle = CodeStyle.of(context);
- return TextSpan(children: [
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Copyright 2019 The Flutter team. All rights reserved.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Use of this source code is governed by a BSD-style license that can be'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle, text: '// found in the LICENSE file.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:flutter/cupertino.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:gallery/l10n/gallery_localizations.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoSwitchDemo'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'StatefulWidget'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_CupertinoSwitchDemoState'),
- TextSpan(style: codeStyle.baseStyle, text: ' createState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_CupertinoSwitchDemoState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_CupertinoSwitchDemoState'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'State'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoSwitchDemo'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'bool'),
- TextSpan(style: codeStyle.baseStyle, text: ' _switchValue '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'false'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' build'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoPageScaffold'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a navigationBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoNavigationBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a automaticallyImplyLeading'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'false'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a middle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(
- style: codeStyle.baseStyle, text: 'demoSelectionControlsSwitchTitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Center'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Semantics'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a container'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'true'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a label'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(
- style: codeStyle.baseStyle, text: 'demoSelectionControlsSwitchTitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoSwitch'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _switchValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onChanged'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a setState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a _switchValue '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '});'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- ]);
- }
-
- static TextSpan cupertinoTextFieldDemo(BuildContext context) {
- final CodeStyle codeStyle = CodeStyle.of(context);
- return TextSpan(children: [
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Copyright 2019 The Flutter team. All rights reserved.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Use of this source code is governed by a BSD-style license that can be'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle, text: '// found in the LICENSE file.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:flutter/cupertino.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:gallery/l10n/gallery_localizations.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoTextFieldDemo'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'StatelessWidget'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' build'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' localizations '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoPageScaffold'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a navigationBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoNavigationBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a automaticallyImplyLeading'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'false'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a middle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'localizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoCupertinoTextFieldTitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'SafeArea'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'ListView'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a padding'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'EdgeInsets'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'all'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.numberStyle, text: '16'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a children'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Padding'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a padding'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'EdgeInsets'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'symmetric'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'vertical'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '8'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoTextField'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a placeholder'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' localizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoTextFieldEmail'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a keyboardType'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'TextInputType'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'emailAddress'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a clearButtonMode'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'OverlayVisibilityMode'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'editing'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a autocorrect'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'false'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Padding'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a padding'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'EdgeInsets'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'symmetric'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'vertical'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '8'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoTextField'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a placeholder'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' localizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'rallyLoginPassword'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a clearButtonMode'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'OverlayVisibilityMode'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'editing'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a obscureText'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'true'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a autocorrect'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'false'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoTextField'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a prefix'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoIcons'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'padlock_solid'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a size'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '28'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a padding'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'EdgeInsets'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'symmetric'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'horizontal'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '6'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' vertical'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '12'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a clearButtonMode'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'OverlayVisibilityMode'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'editing'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a keyboardType'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'TextInputType'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'number'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a decoration'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'BoxDecoration'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a border'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Border'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a bottom'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'BorderSide'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a width'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a color'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CupertinoColors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'inactiveGray'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a placeholder'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' localizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoCupertinoTextFieldPIN'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- ]);
- }
-
- static TextSpan customSlidersDemo(BuildContext context) {
- final CodeStyle codeStyle = CodeStyle.of(context);
- return TextSpan(children: [
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Copyright 2019 The Flutter team. All rights reserved.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Use of this source code is governed by a BSD-style license that can be'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle, text: '// found in the LICENSE file.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.stringStyle, text: '\u0027dart:math\u0027'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'as'),
- TextSpan(style: codeStyle.baseStyle, text: ' math'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:flutter/material.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:gallery/l10n/gallery_localizations.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.classStyle, text: 'Path'),
- TextSpan(style: codeStyle.baseStyle, text: ' _downTriangle'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.keywordStyle, text: 'double'),
- TextSpan(style: codeStyle.baseStyle, text: ' size'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Offset'),
- TextSpan(style: codeStyle.baseStyle, text: ' thumbCenter'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.keywordStyle, text: 'bool'),
- TextSpan(style: codeStyle.baseStyle, text: ' invert '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'false'),
- TextSpan(style: codeStyle.punctuationStyle, text: '})'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' thumbPath '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Path'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' height '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' math'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'sqrt'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.numberStyle, text: '3'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '/'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '2'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' centerHeight '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' size '),
- TextSpan(style: codeStyle.punctuationStyle, text: '*'),
- TextSpan(style: codeStyle.baseStyle, text: ' height '),
- TextSpan(style: codeStyle.punctuationStyle, text: '/'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '3'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' halfSize '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' size '),
- TextSpan(style: codeStyle.punctuationStyle, text: '/'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '2'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' sign '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' invert '),
- TextSpan(style: codeStyle.punctuationStyle, text: '?'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '-'),
- TextSpan(style: codeStyle.numberStyle, text: '1'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '1'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a thumbPath'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'moveTo'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a thumbCenter'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dx '),
- TextSpan(style: codeStyle.punctuationStyle, text: '-'),
- TextSpan(style: codeStyle.baseStyle, text: ' halfSize'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' thumbCenter'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dy '),
- TextSpan(style: codeStyle.punctuationStyle, text: '+'),
- TextSpan(style: codeStyle.baseStyle, text: ' sign '),
- TextSpan(style: codeStyle.punctuationStyle, text: '*'),
- TextSpan(style: codeStyle.baseStyle, text: ' centerHeight'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a thumbPath'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'lineTo'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'thumbCenter'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dx'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' thumbCenter'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dy '),
- TextSpan(style: codeStyle.punctuationStyle, text: '-'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '2'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '*'),
- TextSpan(style: codeStyle.baseStyle, text: ' sign '),
- TextSpan(style: codeStyle.punctuationStyle, text: '*'),
- TextSpan(style: codeStyle.baseStyle, text: ' centerHeight'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a thumbPath'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'lineTo'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a thumbCenter'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dx '),
- TextSpan(style: codeStyle.punctuationStyle, text: '+'),
- TextSpan(style: codeStyle.baseStyle, text: ' halfSize'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' thumbCenter'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dy '),
- TextSpan(style: codeStyle.punctuationStyle, text: '+'),
- TextSpan(style: codeStyle.baseStyle, text: ' sign '),
- TextSpan(style: codeStyle.punctuationStyle, text: '*'),
- TextSpan(style: codeStyle.baseStyle, text: ' centerHeight'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a thumbPath'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'close'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' thumbPath'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.classStyle, text: 'Path'),
- TextSpan(style: codeStyle.baseStyle, text: ' _rightTriangle'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.keywordStyle, text: 'double'),
- TextSpan(style: codeStyle.baseStyle, text: ' size'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Offset'),
- TextSpan(style: codeStyle.baseStyle, text: ' thumbCenter'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.keywordStyle, text: 'bool'),
- TextSpan(style: codeStyle.baseStyle, text: ' invert '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'false'),
- TextSpan(style: codeStyle.punctuationStyle, text: '})'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' thumbPath '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Path'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' halfSize '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' size '),
- TextSpan(style: codeStyle.punctuationStyle, text: '/'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '2'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' sign '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' invert '),
- TextSpan(style: codeStyle.punctuationStyle, text: '?'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '-'),
- TextSpan(style: codeStyle.numberStyle, text: '1'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '1'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a thumbPath'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'moveTo'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'thumbCenter'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dx '),
- TextSpan(style: codeStyle.punctuationStyle, text: '+'),
- TextSpan(style: codeStyle.baseStyle, text: ' halfSize '),
- TextSpan(style: codeStyle.punctuationStyle, text: '*'),
- TextSpan(style: codeStyle.baseStyle, text: ' sign'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' thumbCenter'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dy'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a thumbPath'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'lineTo'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'thumbCenter'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dx '),
- TextSpan(style: codeStyle.punctuationStyle, text: '-'),
- TextSpan(style: codeStyle.baseStyle, text: ' halfSize '),
- TextSpan(style: codeStyle.punctuationStyle, text: '*'),
- TextSpan(style: codeStyle.baseStyle, text: ' sign'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' thumbCenter'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dy '),
- TextSpan(style: codeStyle.punctuationStyle, text: '-'),
- TextSpan(style: codeStyle.baseStyle, text: ' size'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a thumbPath'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'lineTo'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'thumbCenter'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dx '),
- TextSpan(style: codeStyle.punctuationStyle, text: '-'),
- TextSpan(style: codeStyle.baseStyle, text: ' halfSize '),
- TextSpan(style: codeStyle.punctuationStyle, text: '*'),
- TextSpan(style: codeStyle.baseStyle, text: ' sign'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' thumbCenter'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dy '),
- TextSpan(style: codeStyle.punctuationStyle, text: '+'),
- TextSpan(style: codeStyle.baseStyle, text: ' size'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a thumbPath'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'close'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' thumbPath'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.classStyle, text: 'Path'),
- TextSpan(style: codeStyle.baseStyle, text: ' _upTriangle'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.keywordStyle, text: 'double'),
- TextSpan(style: codeStyle.baseStyle, text: ' size'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Offset'),
- TextSpan(style: codeStyle.baseStyle, text: ' thumbCenter'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _downTriangle'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'size'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' thumbCenter'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' invert'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'true'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.classStyle, text: 'Path'),
- TextSpan(style: codeStyle.baseStyle, text: ' _leftTriangle'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.keywordStyle, text: 'double'),
- TextSpan(style: codeStyle.baseStyle, text: ' size'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Offset'),
- TextSpan(style: codeStyle.baseStyle, text: ' thumbCenter'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _rightTriangle'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'size'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' thumbCenter'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' invert'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'true'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_CustomRangeThumbShape'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'RangeSliderThumbShape'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'static'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'double'),
- TextSpan(style: codeStyle.baseStyle, text: ' _thumbSize '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '4'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'static'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'double'),
- TextSpan(style: codeStyle.baseStyle, text: ' _disabledThumbSize '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '3'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Size'),
- TextSpan(style: codeStyle.baseStyle, text: ' getPreferredSize'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.keywordStyle, text: 'bool'),
- TextSpan(style: codeStyle.baseStyle, text: ' isEnabled'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'bool'),
- TextSpan(style: codeStyle.baseStyle, text: ' isDiscrete'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' isEnabled\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '?'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Size'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'fromRadius'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '_thumbSize'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Size'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'fromRadius'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '_disabledThumbSize'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'static'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Animatable'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.keywordStyle, text: 'double'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' sizeTween '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Tween'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.keywordStyle, text: 'double'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a begin'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _disabledThumbSize'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a end'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _thumbSize'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'void'),
- TextSpan(style: codeStyle.baseStyle, text: ' paint'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'PaintingContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Offset'),
- TextSpan(style: codeStyle.baseStyle, text: ' center'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@required'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Animation'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.keywordStyle, text: 'double'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' activationAnimation'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@required'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Animation'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.keywordStyle, text: 'double'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' enableAnimation'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'bool'),
- TextSpan(style: codeStyle.baseStyle, text: ' isDiscrete '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'false'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'bool'),
- TextSpan(style: codeStyle.baseStyle, text: ' isEnabled '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'false'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'bool'),
- TextSpan(style: codeStyle.baseStyle, text: ' isOnTop'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@required'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'SliderThemeData'),
- TextSpan(style: codeStyle.baseStyle, text: ' sliderTheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'TextDirection'),
- TextSpan(style: codeStyle.baseStyle, text: ' textDirection'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Thumb'),
- TextSpan(style: codeStyle.baseStyle, text: ' thumb'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '})'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' canvas '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'canvas'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' colorTween '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'ColorTween'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a begin'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' sliderTheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'disabledThumbColor'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a end'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' sliderTheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'thumbColor'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' size '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' _thumbSize '),
- TextSpan(style: codeStyle.punctuationStyle, text: '*'),
- TextSpan(style: codeStyle.baseStyle, text: ' sizeTween'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'evaluate'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'enableAnimation'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Path'),
- TextSpan(style: codeStyle.baseStyle, text: ' thumbPath'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'switch'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'textDirection'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'case'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'TextDirection'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'rtl'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'switch'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'thumb'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'case'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Thumb'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'start'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a thumbPath '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' _rightTriangle'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'size'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' center'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'break'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'case'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Thumb'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'end'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a thumbPath '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' _leftTriangle'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'size'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' center'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'break'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'break'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'case'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'TextDirection'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'ltr'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'switch'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'thumb'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'case'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Thumb'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'start'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a thumbPath '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' _leftTriangle'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'size'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' center'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'break'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'case'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Thumb'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'end'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a thumbPath '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' _rightTriangle'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'size'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' center'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'break'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'break'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a canvas'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'drawPath'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a thumbPath'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Paint'),
- TextSpan(style: codeStyle.punctuationStyle, text: '()..'),
- TextSpan(style: codeStyle.baseStyle, text: 'color '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' colorTween'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'evaluate'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'enableAnimation'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_CustomThumbShape'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'SliderComponentShape'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'static'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'double'),
- TextSpan(style: codeStyle.baseStyle, text: ' _thumbSize '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '4'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'static'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'double'),
- TextSpan(style: codeStyle.baseStyle, text: ' _disabledThumbSize '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '3'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Size'),
- TextSpan(style: codeStyle.baseStyle, text: ' getPreferredSize'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.keywordStyle, text: 'bool'),
- TextSpan(style: codeStyle.baseStyle, text: ' isEnabled'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'bool'),
- TextSpan(style: codeStyle.baseStyle, text: ' isDiscrete'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' isEnabled\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '?'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Size'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'fromRadius'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '_thumbSize'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Size'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'fromRadius'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '_disabledThumbSize'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'static'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Animatable'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.keywordStyle, text: 'double'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' sizeTween '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Tween'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.keywordStyle, text: 'double'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a begin'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _disabledThumbSize'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a end'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _thumbSize'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'void'),
- TextSpan(style: codeStyle.baseStyle, text: ' paint'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'PaintingContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Offset'),
- TextSpan(style: codeStyle.baseStyle, text: ' thumbCenter'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Animation'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.keywordStyle, text: 'double'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' activationAnimation'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Animation'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.keywordStyle, text: 'double'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' enableAnimation'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'bool'),
- TextSpan(style: codeStyle.baseStyle, text: ' isDiscrete'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'TextPainter'),
- TextSpan(style: codeStyle.baseStyle, text: ' labelPainter'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'RenderBox'),
- TextSpan(style: codeStyle.baseStyle, text: ' parentBox'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'SliderThemeData'),
- TextSpan(style: codeStyle.baseStyle, text: ' sliderTheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'TextDirection'),
- TextSpan(style: codeStyle.baseStyle, text: ' textDirection'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'double'),
- TextSpan(style: codeStyle.baseStyle, text: ' value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '})'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' canvas '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'canvas'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' colorTween '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'ColorTween'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a begin'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' sliderTheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'disabledThumbColor'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a end'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' sliderTheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'thumbColor'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' size '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' _thumbSize '),
- TextSpan(style: codeStyle.punctuationStyle, text: '*'),
- TextSpan(style: codeStyle.baseStyle, text: ' sizeTween'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'evaluate'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'enableAnimation'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' thumbPath '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' _downTriangle'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'size'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' thumbCenter'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a canvas'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'drawPath'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a thumbPath'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Paint'),
- TextSpan(style: codeStyle.punctuationStyle, text: '()..'),
- TextSpan(style: codeStyle.baseStyle, text: 'color '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' colorTween'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'evaluate'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'enableAnimation'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_CustomValueIndicatorShape'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'SliderComponentShape'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'static'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'double'),
- TextSpan(style: codeStyle.baseStyle, text: ' _indicatorSize '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '4'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'static'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'double'),
- TextSpan(style: codeStyle.baseStyle, text: ' _disabledIndicatorSize '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '3'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'static'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'double'),
- TextSpan(style: codeStyle.baseStyle, text: ' _slideUpHeight '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '40'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Size'),
- TextSpan(style: codeStyle.baseStyle, text: ' getPreferredSize'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.keywordStyle, text: 'bool'),
- TextSpan(style: codeStyle.baseStyle, text: ' isEnabled'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'bool'),
- TextSpan(style: codeStyle.baseStyle, text: ' isDiscrete'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Size'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'fromRadius'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'isEnabled '),
- TextSpan(style: codeStyle.punctuationStyle, text: '?'),
- TextSpan(style: codeStyle.baseStyle, text: ' _indicatorSize '),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _disabledIndicatorSize'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'static'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Animatable'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.keywordStyle, text: 'double'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' sizeTween '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Tween'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.keywordStyle, text: 'double'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a begin'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _disabledIndicatorSize'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a end'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _indicatorSize'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'void'),
- TextSpan(style: codeStyle.baseStyle, text: ' paint'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'PaintingContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Offset'),
- TextSpan(style: codeStyle.baseStyle, text: ' thumbCenter'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Animation'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.keywordStyle, text: 'double'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' activationAnimation'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Animation'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.keywordStyle, text: 'double'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' enableAnimation'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'bool'),
- TextSpan(style: codeStyle.baseStyle, text: ' isDiscrete'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'TextPainter'),
- TextSpan(style: codeStyle.baseStyle, text: ' labelPainter'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'RenderBox'),
- TextSpan(style: codeStyle.baseStyle, text: ' parentBox'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'SliderThemeData'),
- TextSpan(style: codeStyle.baseStyle, text: ' sliderTheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'TextDirection'),
- TextSpan(style: codeStyle.baseStyle, text: ' textDirection'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'double'),
- TextSpan(style: codeStyle.baseStyle, text: ' value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '})'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' canvas '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'canvas'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' enableColor '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'ColorTween'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a begin'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' sliderTheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'disabledThumbColor'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a end'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' sliderTheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'valueIndicatorColor'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' slideUpTween '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Tween'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.keywordStyle, text: 'double'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a begin'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a end'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _slideUpHeight'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' size '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' _indicatorSize '),
- TextSpan(style: codeStyle.punctuationStyle, text: '*'),
- TextSpan(style: codeStyle.baseStyle, text: ' sizeTween'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'evaluate'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'enableAnimation'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' slideUpOffset '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Offset'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.numberStyle, text: '0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '-'),
- TextSpan(style: codeStyle.baseStyle, text: 'slideUpTween'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'evaluate'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'activationAnimation'),
- TextSpan(style: codeStyle.punctuationStyle, text: '));'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' thumbPath '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' _upTriangle'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'size'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' thumbCenter '),
- TextSpan(style: codeStyle.punctuationStyle, text: '+'),
- TextSpan(style: codeStyle.baseStyle, text: ' slideUpOffset'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' paintColor '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' enableColor\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'evaluate'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'enableAnimation'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'withAlpha'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(('),
- TextSpan(style: codeStyle.numberStyle, text: '255'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '*'),
- TextSpan(style: codeStyle.baseStyle, text: ' activationAnimation'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'round'),
- TextSpan(style: codeStyle.punctuationStyle, text: '());'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a canvas'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'drawPath'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a thumbPath'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Paint'),
- TextSpan(style: codeStyle.punctuationStyle, text: '()..'),
- TextSpan(style: codeStyle.baseStyle, text: 'color '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' paintColor'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a canvas'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'drawLine'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a thumbCenter'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a thumbCenter '),
- TextSpan(style: codeStyle.punctuationStyle, text: '+'),
- TextSpan(style: codeStyle.baseStyle, text: ' slideUpOffset'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Paint'),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '..'),
- TextSpan(style: codeStyle.baseStyle, text: 'color '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' paintColor\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '..'),
- TextSpan(style: codeStyle.baseStyle, text: 'style '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'PaintingStyle'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'stroke\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '..'),
- TextSpan(style: codeStyle.baseStyle, text: 'strokeWidth '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '2'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a labelPainter'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'paint'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a canvas'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a thumbCenter '),
- TextSpan(style: codeStyle.punctuationStyle, text: '+'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a slideUpOffset '),
- TextSpan(style: codeStyle.punctuationStyle, text: '+'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Offset'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(-'),
- TextSpan(style: codeStyle.baseStyle, text: 'labelPainter'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'width '),
- TextSpan(style: codeStyle.punctuationStyle, text: '/'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '2'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '-'),
- TextSpan(style: codeStyle.baseStyle, text: 'labelPainter'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'height '),
- TextSpan(style: codeStyle.punctuationStyle, text: '-'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '4'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_CustomSliders'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'StatefulWidget'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_CustomSlidersState'),
- TextSpan(style: codeStyle.baseStyle, text: ' createState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_CustomSlidersState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_CustomSlidersState'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'State'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: '_CustomSliders'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'double'),
- TextSpan(style: codeStyle.baseStyle, text: ' _discreteCustomValue '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '25'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'RangeValues'),
- TextSpan(style: codeStyle.baseStyle, text: ' _continuousCustomValues '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'RangeValues'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.numberStyle, text: '40'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '160'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' build'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' theme '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Theme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Padding'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a padding'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'EdgeInsets'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'symmetric'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'horizontal'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '40'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Column'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a mainAxisAlignment'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'MainAxisAlignment'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'center'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a children'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Column'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a mainAxisSize'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'MainAxisSize'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'min'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a children'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'SliderTheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a data'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' theme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'sliderTheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'copyWith'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a activeTrackColor'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Colors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'deepPurple'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a inactiveTrackColor'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a theme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'colorScheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onSurface'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'withOpacity'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.numberStyle, text: '0.5'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a activeTickMarkColor'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a theme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'colorScheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onSurface'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'withOpacity'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.numberStyle, text: '0.7'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a inactiveTickMarkColor'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a theme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'colorScheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'surface'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'withOpacity'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.numberStyle, text: '0.7'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a overlayColor'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' theme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'colorScheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onSurface'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'withOpacity'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.numberStyle, text: '0.12'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a thumbColor'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Colors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'deepPurple'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a valueIndicatorColor'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Colors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'deepPurpleAccent'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a thumbShape'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_CustomThumbShape'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(),'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a valueIndicatorShape'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_CustomValueIndicatorShape'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(),'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a valueIndicatorTextStyle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' theme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'accentTextTheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: 'body2\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'copyWith'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'color'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' theme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'colorScheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onSurface'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Slider'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _discreteCustomValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a min'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a max'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '200'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a divisions'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '5'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a semanticFormatterCallback'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a value'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'round'),
- TextSpan(style: codeStyle.punctuationStyle, text: '().'),
- TextSpan(style: codeStyle.baseStyle, text: 'toString'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(),'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a label'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027\u0024{_discreteCustomValue.round()}\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a onChanged'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a setState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a _discreteCustomValue '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '});'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: 'demoSlidersDiscreteSliderWithCustomTheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'SizedBox'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'height'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '80'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Column'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a mainAxisSize'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'MainAxisSize'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'min'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a children'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'SliderTheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a data'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'SliderThemeData'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a activeTrackColor'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Colors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'deepPurple'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a inactiveTrackColor'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Colors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'black26'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a activeTickMarkColor'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Colors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'white70'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a inactiveTickMarkColor'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Colors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'black'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a overlayColor'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Colors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'black12'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a thumbColor'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Colors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'deepPurple'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a rangeThumbShape'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_CustomRangeThumbShape'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(),'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a showValueIndicator'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'ShowValueIndicator'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'never'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'RangeSlider'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a values'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _continuousCustomValues'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a min'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a max'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '200'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a onChanged'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'values'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a setState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a _continuousCustomValues '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' values'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '});'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: 'demoSlidersContinuousRangeSliderWithCustomTheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- ]);
- }
-
- static TextSpan dataTableDemo(BuildContext context) {
- final CodeStyle codeStyle = CodeStyle.of(context);
- return TextSpan(children: [
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Copyright 2019 The Flutter team. All rights reserved.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Use of this source code is governed by a BSD-style license that can be'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle, text: '// found in the LICENSE file.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:flutter/material.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:flutter/rendering.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:gallery/data/gallery_options.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:gallery/l10n/gallery_localizations.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:intl/intl.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'DataTableDemo'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'StatefulWidget'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_DataTableDemoState'),
- TextSpan(style: codeStyle.baseStyle, text: ' createState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_DataTableDemoState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_DataTableDemoState'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'State'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'DataTableDemo'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'int'),
- TextSpan(style: codeStyle.baseStyle, text: ' _rowsPerPage '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'PaginatedDataTable'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'defaultRowsPerPage'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'int'),
- TextSpan(style: codeStyle.baseStyle, text: ' _sortColumnIndex'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'bool'),
- TextSpan(style: codeStyle.baseStyle, text: ' _sortAscending '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'true'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_DessertDataSource'),
- TextSpan(style: codeStyle.baseStyle, text: ' _dessertsDataSource'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'void'),
- TextSpan(style: codeStyle.baseStyle, text: ' didChangeDependencies'),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'super'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'didChangeDependencies'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'if'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '_dessertsDataSource '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a _dessertsDataSource '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_DessertDataSource'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'void'),
- TextSpan(style: codeStyle.baseStyle, text: ' _sort'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'T'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Comparable'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'T'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' getField'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: '_Dessert'),
- TextSpan(style: codeStyle.baseStyle, text: ' d'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'int'),
- TextSpan(style: codeStyle.baseStyle, text: ' columnIndex'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'bool'),
- TextSpan(style: codeStyle.baseStyle, text: ' ascending'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a _dessertsDataSource'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: '_sort'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'T'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>('),
- TextSpan(style: codeStyle.baseStyle, text: 'getField'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' ascending'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a setState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a _sortColumnIndex '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' columnIndex'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _sortAscending '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' ascending'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '});'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' build'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' localizations '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Scaffold'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a appBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'AppBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a automaticallyImplyLeading'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'false'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'localizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoDataTableTitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a body'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Scrollbar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'ListView'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a padding'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'EdgeInsets'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'all'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.numberStyle, text: '16'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a children'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'PaginatedDataTable'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a header'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'localizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dataTableHeader'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a rowsPerPage'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _rowsPerPage'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a onRowsPerPageChanged'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a setState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a _rowsPerPage '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '});'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a sortColumnIndex'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _sortColumnIndex'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a sortAscending'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _sortAscending'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a onSelectAll'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _dessertsDataSource'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: '_selectAll'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a columns'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'DataColumn'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a label'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'localizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dataTableColumnDessert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a onSort'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'columnIndex'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' ascending'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a _sort'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>(('),
- TextSpan(style: codeStyle.baseStyle, text: 'd'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' d'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'name'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' columnIndex'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' ascending'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'DataColumn'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a label'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'localizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dataTableColumnCalories'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a numeric'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'true'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a onSort'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'columnIndex'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' ascending'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a _sort'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.keywordStyle, text: 'num'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>(('),
- TextSpan(style: codeStyle.baseStyle, text: 'd'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' d'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'calories'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' columnIndex'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' ascending'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'DataColumn'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a label'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'localizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dataTableColumnFat'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a numeric'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'true'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a onSort'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'columnIndex'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' ascending'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a _sort'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.keywordStyle, text: 'num'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>(('),
- TextSpan(style: codeStyle.baseStyle, text: 'd'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' d'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'fat'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' columnIndex'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' ascending'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'DataColumn'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a label'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'localizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dataTableColumnCarbs'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a numeric'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'true'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a onSort'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'columnIndex'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' ascending'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a _sort'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.keywordStyle, text: 'num'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>(('),
- TextSpan(style: codeStyle.baseStyle, text: 'd'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' d'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'carbs'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' columnIndex'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' ascending'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'DataColumn'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a label'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'localizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dataTableColumnProtein'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a numeric'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'true'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a onSort'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'columnIndex'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' ascending'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a _sort'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.keywordStyle, text: 'num'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>(('),
- TextSpan(style: codeStyle.baseStyle, text: 'd'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' d'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'protein'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' columnIndex'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' ascending'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'DataColumn'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a label'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'localizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dataTableColumnSodium'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a numeric'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'true'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a onSort'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'columnIndex'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' ascending'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a _sort'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.keywordStyle, text: 'num'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>(('),
- TextSpan(style: codeStyle.baseStyle, text: 'd'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' d'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'sodium'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' columnIndex'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' ascending'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'DataColumn'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a label'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'localizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dataTableColumnCalcium'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a numeric'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'true'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a onSort'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'columnIndex'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' ascending'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a _sort'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.keywordStyle, text: 'num'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>(('),
- TextSpan(style: codeStyle.baseStyle, text: 'd'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' d'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'calcium'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' columnIndex'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' ascending'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'DataColumn'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a label'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'localizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dataTableColumnIron'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a numeric'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'true'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a onSort'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'columnIndex'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' ascending'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a _sort'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.keywordStyle, text: 'num'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>(('),
- TextSpan(style: codeStyle.baseStyle, text: 'd'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' d'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'iron'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' columnIndex'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' ascending'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a source'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _dessertsDataSource'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_Dessert'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_Dessert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'name'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'calories'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'fat'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'carbs'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'protein'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'sodium'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'calcium'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'iron'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.baseStyle, text: ' name'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'int'),
- TextSpan(style: codeStyle.baseStyle, text: ' calories'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'double'),
- TextSpan(style: codeStyle.baseStyle, text: ' fat'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'int'),
- TextSpan(style: codeStyle.baseStyle, text: ' carbs'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'double'),
- TextSpan(style: codeStyle.baseStyle, text: ' protein'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'int'),
- TextSpan(style: codeStyle.baseStyle, text: ' sodium'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'int'),
- TextSpan(style: codeStyle.baseStyle, text: ' calcium'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'int'),
- TextSpan(style: codeStyle.baseStyle, text: ' iron'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'bool'),
- TextSpan(style: codeStyle.baseStyle, text: ' selected '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'false'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_DessertDataSource'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'DataTableSource'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_DessertDataSource'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' localizations '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _desserts '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: '_Dessert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_Dessert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a localizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dataTableRowFrozenYogurt'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '159'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '6.0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '24'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '4.0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '87'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '14'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '1'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_Dessert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a localizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(
- style: codeStyle.baseStyle, text: 'dataTableRowIceCreamSandwich'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '237'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '9.0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '37'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '4.3'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '129'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '8'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '1'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_Dessert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a localizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dataTableRowEclair'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '262'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '16.0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '24'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '6.0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '337'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '6'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '7'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_Dessert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a localizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dataTableRowCupcake'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '305'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '3.7'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '67'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '4.3'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '413'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '3'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '8'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_Dessert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a localizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dataTableRowGingerbread'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '356'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '16.0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '49'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '3.9'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '327'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '7'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '16'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_Dessert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a localizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dataTableRowJellyBean'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '375'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '0.0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '94'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '0.0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '50'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_Dessert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a localizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dataTableRowLollipop'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '392'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '0.2'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '98'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '0.0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '38'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '2'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_Dessert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a localizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dataTableRowHoneycomb'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '408'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '3.2'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '87'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '6.5'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '562'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '45'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_Dessert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a localizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dataTableRowDonut'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '452'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '25.0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '51'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '4.9'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '326'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '2'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '22'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_Dessert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a localizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dataTableRowApplePie'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '518'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '26.0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '65'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '7.0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '54'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '12'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '6'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_Dessert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a localizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dataTableRowWithSugar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a localizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dataTableRowFrozenYogurt'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '168'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '6.0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '26'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '4.0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '87'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '14'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '1'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_Dessert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a localizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dataTableRowWithSugar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a localizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(
- style: codeStyle.baseStyle, text: 'dataTableRowIceCreamSandwich'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '246'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '9.0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '39'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '4.3'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '129'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '8'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '1'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_Dessert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a localizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dataTableRowWithSugar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a localizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dataTableRowEclair'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '271'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '16.0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '26'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '6.0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '337'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '6'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '7'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_Dessert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a localizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dataTableRowWithSugar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a localizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dataTableRowCupcake'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '314'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '3.7'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '69'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '4.3'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '413'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '3'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '8'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_Dessert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a localizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dataTableRowWithSugar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a localizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dataTableRowGingerbread'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '345'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '16.0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '51'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '3.9'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '327'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '7'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '16'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_Dessert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a localizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dataTableRowWithSugar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a localizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dataTableRowJellyBean'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '364'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '0.0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '96'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '0.0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '50'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_Dessert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a localizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dataTableRowWithSugar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a localizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dataTableRowLollipop'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '401'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '0.2'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '100'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '0.0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '38'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '2'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_Dessert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a localizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dataTableRowWithSugar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a localizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dataTableRowHoneycomb'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '417'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '3.2'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '89'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '6.5'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '562'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '45'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_Dessert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a localizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dataTableRowWithSugar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a localizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dataTableRowDonut'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '461'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '25.0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '53'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '4.9'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '326'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '2'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '22'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_Dessert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a localizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dataTableRowWithSugar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a localizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dataTableRowApplePie'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '527'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '26.0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '67'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '7.0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '54'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '12'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '6'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_Dessert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a localizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dataTableRowWithHoney'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a localizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dataTableRowFrozenYogurt'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '223'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '6.0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '36'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '4.0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '87'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '14'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '1'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_Dessert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a localizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dataTableRowWithHoney'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a localizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(
- style: codeStyle.baseStyle, text: 'dataTableRowIceCreamSandwich'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '301'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '9.0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '49'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '4.3'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '129'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '8'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '1'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_Dessert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a localizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dataTableRowWithHoney'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a localizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dataTableRowEclair'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '326'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '16.0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '36'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '6.0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '337'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '6'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '7'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_Dessert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a localizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dataTableRowWithHoney'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a localizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dataTableRowCupcake'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '369'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '3.7'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '79'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '4.3'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '413'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '3'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '8'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_Dessert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a localizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dataTableRowWithHoney'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a localizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dataTableRowGingerbread'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '420'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '16.0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '61'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '3.9'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '327'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '7'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '16'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_Dessert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a localizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dataTableRowWithHoney'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a localizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dataTableRowJellyBean'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '439'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '0.0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '106'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '0.0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '50'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_Dessert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a localizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dataTableRowWithHoney'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a localizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dataTableRowLollipop'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '456'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '0.2'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '110'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '0.0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '38'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '2'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_Dessert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a localizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dataTableRowWithHoney'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a localizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dataTableRowHoneycomb'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '472'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '3.2'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '99'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '6.5'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '562'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '45'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_Dessert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a localizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dataTableRowWithHoney'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a localizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dataTableRowDonut'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '516'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '25.0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '63'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '4.9'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '326'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '2'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '22'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_Dessert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a localizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dataTableRowWithHoney'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a localizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dataTableRowApplePie'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '582'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '26.0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '77'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '7.0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '54'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '12'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '6'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '];'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'List'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: '_Dessert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' _desserts'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'void'),
- TextSpan(style: codeStyle.baseStyle, text: ' _sort'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'T'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>('),
- TextSpan(style: codeStyle.classStyle, text: 'Comparable'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'T'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' getField'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: '_Dessert'),
- TextSpan(style: codeStyle.baseStyle, text: ' d'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'bool'),
- TextSpan(style: codeStyle.baseStyle, text: ' ascending'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _desserts'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'sort'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(('),
- TextSpan(style: codeStyle.baseStyle, text: 'a'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' b'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Comparable'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'T'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' aValue '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' getField'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'a'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Comparable'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'T'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' bValue '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' getField'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'b'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' ascending\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '?'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Comparable'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'compare'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'aValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' bValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Comparable'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'compare'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'bValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' aValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '});'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a notifyListeners'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'int'),
- TextSpan(style: codeStyle.baseStyle, text: ' _selectedCount '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'DataRow'),
- TextSpan(style: codeStyle.baseStyle, text: ' getRow'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.keywordStyle, text: 'int'),
- TextSpan(style: codeStyle.baseStyle, text: ' index'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' format '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'NumberFormat'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'decimalPercentPattern'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a locale'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryOptions'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'locale'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'toString'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a decimalDigits'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'assert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'index '),
- TextSpan(style: codeStyle.punctuationStyle, text: '>='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'if'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'index '),
- TextSpan(style: codeStyle.punctuationStyle, text: '>='),
- TextSpan(style: codeStyle.baseStyle, text: ' _desserts'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'length'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_Dessert'),
- TextSpan(style: codeStyle.baseStyle, text: ' dessert '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' _desserts'),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: 'index'),
- TextSpan(style: codeStyle.punctuationStyle, text: '];'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'DataRow'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'byIndex'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a index'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' index'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a selected'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' dessert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'selected'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onSelectChanged'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'if'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'dessert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'selected '),
- TextSpan(style: codeStyle.punctuationStyle, text: '!='),
- TextSpan(style: codeStyle.baseStyle, text: ' value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a _selectedCount '),
- TextSpan(style: codeStyle.punctuationStyle, text: '+='),
- TextSpan(style: codeStyle.baseStyle, text: ' value '),
- TextSpan(style: codeStyle.punctuationStyle, text: '?'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '1'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '-'),
- TextSpan(style: codeStyle.numberStyle, text: '1'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'assert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '_selectedCount '),
- TextSpan(style: codeStyle.punctuationStyle, text: '>='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a dessert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'selected '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a notifyListeners'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a cells'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'DataCell'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'dessert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'name'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'DataCell'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027\u0024{dessert.calories}\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'DataCell'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'dessert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'fat'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'toStringAsFixed'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.numberStyle, text: '1'),
- TextSpan(style: codeStyle.punctuationStyle, text: '))),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'DataCell'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027\u0024{dessert.carbs}\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'DataCell'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'dessert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'protein'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'toStringAsFixed'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.numberStyle, text: '1'),
- TextSpan(style: codeStyle.punctuationStyle, text: '))),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'DataCell'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027\u0024{dessert.sodium}\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'DataCell'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027\u0024{format.format(dessert.calcium / 100)}\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'DataCell'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027\u0024{format.format(dessert.iron / 100)}\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'int'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'get'),
- TextSpan(style: codeStyle.baseStyle, text: ' rowCount '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' _desserts'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'length'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'bool'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'get'),
- TextSpan(style: codeStyle.baseStyle, text: ' isRowCountApproximate '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'false'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'int'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'get'),
- TextSpan(style: codeStyle.baseStyle, text: ' selectedRowCount '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' _selectedCount'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'void'),
- TextSpan(style: codeStyle.baseStyle, text: ' _selectAll'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.keywordStyle, text: 'bool'),
- TextSpan(style: codeStyle.baseStyle, text: ' checked'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'for'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_Dessert'),
- TextSpan(style: codeStyle.baseStyle, text: ' dessert '),
- TextSpan(style: codeStyle.keywordStyle, text: 'in'),
- TextSpan(style: codeStyle.baseStyle, text: ' _desserts'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a dessert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'selected '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' checked'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _selectedCount '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' checked '),
- TextSpan(style: codeStyle.punctuationStyle, text: '?'),
- TextSpan(style: codeStyle.baseStyle, text: ' _desserts'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'length '),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a notifyListeners'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- ]);
- }
-
- static TextSpan dialogDemo(BuildContext context) {
- final CodeStyle codeStyle = CodeStyle.of(context);
- return TextSpan(children: [
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Copyright 2019 The Flutter team. All rights reserved.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Use of this source code is governed by a BSD-style license that can be'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle, text: '// found in the LICENSE file.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:flutter/material.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:gallery/data/gallery_options.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:gallery/l10n/gallery_localizations.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'enum'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'DialogDemoType'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a alert'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a alertTitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a simple'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a fullscreen'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'DialogDemo'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'StatelessWidget'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'DialogDemo'),
- TextSpan(style: codeStyle.punctuationStyle, text: '({'),
- TextSpan(style: codeStyle.classStyle, text: 'Key'),
- TextSpan(style: codeStyle.baseStyle, text: ' key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: '@required'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'type'),
- TextSpan(style: codeStyle.punctuationStyle, text: '})'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'super'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GlobalKey'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'ScaffoldState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' _scaffoldKey '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GlobalKey'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'ScaffoldState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'DialogDemoType'),
- TextSpan(style: codeStyle.baseStyle, text: ' type'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.baseStyle, text: ' _title'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'switch'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'type'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'case'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'DialogDemoType'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'alert'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoAlertDialogTitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'case'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'DialogDemoType'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'alertTitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoAlertTitleDialogTitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'case'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'DialogDemoType'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'simple'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoSimpleDialogTitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'case'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'DialogDemoType'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'fullscreen'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoFullscreenDialogTitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.stringStyle, text: '\u0027\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Future'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.keywordStyle, text: 'void'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' _showDemoDialog'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'T'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>({'),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' child'),
- TextSpan(style: codeStyle.punctuationStyle, text: '})'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'async'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'ApplyTextOptions'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Theme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a data'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Theme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'T'),
- TextSpan(style: codeStyle.baseStyle, text: ' value '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'await'),
- TextSpan(style: codeStyle.baseStyle, text: ' showDialog'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'T'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a builder'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// The value passed to Navigator.pop() or null.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'if'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'value '),
- TextSpan(style: codeStyle.punctuationStyle, text: '!='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '&&'),
- TextSpan(style: codeStyle.baseStyle, text: ' value '),
- TextSpan(style: codeStyle.keywordStyle, text: 'is'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _scaffoldKey'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'currentState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'hideCurrentSnackBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _scaffoldKey'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'currentState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'showSnackBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'SnackBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a content'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'dialogSelectedOption'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '));'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'void'),
- TextSpan(style: codeStyle.baseStyle, text: ' _showAlertDialog'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'ThemeData'),
- TextSpan(style: codeStyle.baseStyle, text: ' theme '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Theme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'TextStyle'),
- TextSpan(style: codeStyle.baseStyle, text: ' dialogTextStyle '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a theme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'textTheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'subhead'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'copyWith'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'color'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' theme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'textTheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'caption'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'color'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _showDemoDialog'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'AlertDialog'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a content'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'dialogDiscardTitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a style'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' dialogTextStyle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a actions'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_DialogButton'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'text'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'dialogCancel'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_DialogButton'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'text'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'dialogDiscard'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'void'),
- TextSpan(style: codeStyle.baseStyle, text: ' _showAlertDialogWithTitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'ThemeData'),
- TextSpan(style: codeStyle.baseStyle, text: ' theme '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Theme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'TextStyle'),
- TextSpan(style: codeStyle.baseStyle, text: ' dialogTextStyle '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a theme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'textTheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'subhead'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'copyWith'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'color'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' theme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'textTheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'caption'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'color'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _showDemoDialog'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'AlertDialog'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'dialogLocationTitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a content'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'dialogLocationDescription'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a style'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' dialogTextStyle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a actions'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_DialogButton'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'text'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'dialogDisagree'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_DialogButton'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'text'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'dialogAgree'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'void'),
- TextSpan(style: codeStyle.baseStyle, text: ' _showSimpleDialog'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'ThemeData'),
- TextSpan(style: codeStyle.baseStyle, text: ' theme '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Theme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _showDemoDialog'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'SimpleDialog'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'dialogSetBackup'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a children'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_DialogDemoItem'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Icons'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'account_circle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a color'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' theme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'colorScheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'primary'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a text'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle, text: '\u0027username@gmail.com\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_DialogDemoItem'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Icons'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'account_circle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a color'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' theme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'colorScheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'secondary'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a text'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle, text: '\u0027user02@gmail.com\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_DialogDemoItem'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Icons'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'add_circle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a text'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'dialogAddAccount'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a color'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' theme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'disabledColor'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' build'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Navigator'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Adding [ValueKey] to make sure that the widget gets rebuilt when'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.commentStyle, text: '// changing type.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'ValueKey'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'type'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onGenerateRoute'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'settings'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.classStyle, text: '_NoAnimationMaterialPageRoute'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.keywordStyle, text: 'void'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a builder'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Scaffold'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _scaffoldKey'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a appBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'AppBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a automaticallyImplyLeading'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'false'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '_title'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a body'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Center'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'RaisedButton'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'dialogShow'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a onPressed'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'switch'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'type'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'case'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'DialogDemoType'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'alert'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a _showAlertDialog'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'break'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'case'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'DialogDemoType'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'alertTitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a _showAlertDialogWithTitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'break'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'case'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'DialogDemoType'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'simple'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a _showSimpleDialog'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'break'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'case'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'DialogDemoType'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'fullscreen'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Navigator'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'push'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.keywordStyle, text: 'void'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'MaterialPageRoute'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a builder'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_FullScreenDialogDemo'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(),'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a fullscreenDialog'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'true'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'break'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text: '/// A MaterialPageRoute without any transition animations.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.classStyle, text: '_NoAnimationMaterialPageRoute'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'T'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'MaterialPageRoute'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'T'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.classStyle, text: '_NoAnimationMaterialPageRoute'),
- TextSpan(style: codeStyle.punctuationStyle, text: '({'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@required'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'WidgetBuilder'),
- TextSpan(style: codeStyle.baseStyle, text: ' builder'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'RouteSettings'),
- TextSpan(style: codeStyle.baseStyle, text: ' settings'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'bool'),
- TextSpan(style: codeStyle.baseStyle, text: ' maintainState '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'true'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'bool'),
- TextSpan(style: codeStyle.baseStyle, text: ' fullscreenDialog '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'false'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '})'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'super'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a builder'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' builder'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a maintainState'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' maintainState'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a settings'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' settings'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a fullscreenDialog'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' fullscreenDialog'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' buildTransitions'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Animation'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.keywordStyle, text: 'double'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' animation'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Animation'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.keywordStyle, text: 'double'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' secondaryAnimation'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_DialogButton'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'StatelessWidget'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_DialogButton'),
- TextSpan(style: codeStyle.punctuationStyle, text: '({'),
- TextSpan(style: codeStyle.classStyle, text: 'Key'),
- TextSpan(style: codeStyle.baseStyle, text: ' key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '})'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'super'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.baseStyle, text: ' text'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' build'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'FlatButton'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onPressed'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Navigator'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' rootNavigator'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'true'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'pop'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'text'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_DialogDemoItem'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'StatelessWidget'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_DialogDemoItem'),
- TextSpan(style: codeStyle.punctuationStyle, text: '({'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Key'),
- TextSpan(style: codeStyle.baseStyle, text: ' key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'color'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'text'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '})'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'super'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'IconData'),
- TextSpan(style: codeStyle.baseStyle, text: ' icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Color'),
- TextSpan(style: codeStyle.baseStyle, text: ' color'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.baseStyle, text: ' text'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' build'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'SimpleDialogOption'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onPressed'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Navigator'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' rootNavigator'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'true'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'pop'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'text'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Row'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a mainAxisAlignment'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'MainAxisAlignment'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'start'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a crossAxisAlignment'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CrossAxisAlignment'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'center'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a children'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' size'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '36'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' color'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' color'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Flexible'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Padding'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a padding'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'EdgeInsetsDirectional'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'only'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'start'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '16'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_FullScreenDialogDemo'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'StatelessWidget'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' build'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'ThemeData'),
- TextSpan(style: codeStyle.baseStyle, text: ' theme '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Theme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Remove the MediaQuery padding because the demo is rendered inside of a'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// different page that already accounts for this padding.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'MediaQuery'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'removePadding'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a removeTop'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'true'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a removeBottom'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'true'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'ApplyTextOptions'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Scaffold'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a appBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'AppBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'dialogFullscreenTitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a actions'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'FlatButton'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'dialogFullscreenSave'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a style'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' theme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'textTheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'body1'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'copyWith'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a color'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' theme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'colorScheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onPrimary'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a onPressed'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Navigator'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'pop'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a body'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Center'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'dialogFullscreenDescription'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- ]);
- }
-
- static TextSpan gridListsDemo(BuildContext context) {
- final CodeStyle codeStyle = CodeStyle.of(context);
- return TextSpan(children: [
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Copyright 2019 The Flutter team. All rights reserved.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Use of this source code is governed by a BSD-style license that can be'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle, text: '// found in the LICENSE file.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:flutter/material.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:gallery/l10n/gallery_localizations.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'enum'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GridListDemoType'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a imageOnly'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a header'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a footer'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GridListDemo'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'StatelessWidget'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GridListDemo'),
- TextSpan(style: codeStyle.punctuationStyle, text: '({'),
- TextSpan(style: codeStyle.classStyle, text: 'Key'),
- TextSpan(style: codeStyle.baseStyle, text: ' key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'type'),
- TextSpan(style: codeStyle.punctuationStyle, text: '})'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'super'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GridListDemoType'),
- TextSpan(style: codeStyle.baseStyle, text: ' type'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'List'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: '_Photo'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' _photos'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_Photo'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a assetName'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027places/india_chennai_flower_market.png\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'placeChennai'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a subtitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'placeFlowerMarket'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_Photo'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a assetName'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027places/india_tanjore_bronze_works.png\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'placeTanjore'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a subtitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'placeBronzeWorks'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_Photo'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a assetName'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027places/india_tanjore_market_merchant.png\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'placeTanjore'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a subtitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'placeMarket'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_Photo'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a assetName'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027places/india_tanjore_thanjavur_temple.png\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'placeTanjore'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a subtitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'placeThanjavurTemple'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_Photo'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a assetName'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text:
- '\u0027places/india_tanjore_thanjavur_temple_carvings.png\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'placeTanjore'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a subtitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'placeThanjavurTemple'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_Photo'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a assetName'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027places/india_pondicherry_salt_farm.png\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'placePondicherry'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a subtitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'placeSaltFarm'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_Photo'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a assetName'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027places/india_chennai_highway.png\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'placeChennai'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a subtitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'placeScooters'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_Photo'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a assetName'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027places/india_chettinad_silk_maker.png\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'placeChettinad'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a subtitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'placeSilkMaker'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_Photo'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a assetName'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027places/india_chettinad_produce.png\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'placeChettinad'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a subtitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'placeLunchPrep'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_Photo'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a assetName'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027places/india_tanjore_market_technology.png\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'placeTanjore'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a subtitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'placeMarket'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_Photo'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a assetName'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027places/india_pondicherry_beach.png\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'placePondicherry'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a subtitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'placeBeach'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_Photo'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a assetName'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027places/india_pondicherry_fisherman.png\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'placePondicherry'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a subtitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'placeFisherman'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '];'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' build'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Scaffold'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a appBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'AppBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a automaticallyImplyLeading'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'false'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoGridListsTitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a body'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GridView'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'count'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a crossAxisCount'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '2'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a mainAxisSpacing'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '8'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a crossAxisSpacing'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '8'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a padding'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'EdgeInsets'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'all'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.numberStyle, text: '8'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a childAspectRatio'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '1'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a children'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _photos'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'map'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>(('),
- TextSpan(style: codeStyle.baseStyle, text: 'photo'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_GridDemoPhotoItem'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a photo'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' photo'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a tileStyle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' type'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}).'),
- TextSpan(style: codeStyle.baseStyle, text: 'toList'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_Photo'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_Photo'),
- TextSpan(style: codeStyle.punctuationStyle, text: '({'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'assetName'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'subtitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '});'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.baseStyle, text: ' assetName'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.baseStyle, text: ' title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.baseStyle, text: ' subtitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text: '/// Allow the text size to shrink to fit in the space'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_GridTitleText'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'StatelessWidget'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_GridTitleText'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'text'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.baseStyle, text: ' text'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' build'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'FittedBox'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a fit'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'BoxFit'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'scaleDown'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a alignment'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'AlignmentDirectional'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'centerStart'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_GridDemoPhotoItem'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'StatelessWidget'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_GridDemoPhotoItem'),
- TextSpan(style: codeStyle.punctuationStyle, text: '({'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Key'),
- TextSpan(style: codeStyle.baseStyle, text: ' key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@required'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'photo'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@required'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'tileStyle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '})'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'super'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_Photo'),
- TextSpan(style: codeStyle.baseStyle, text: ' photo'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GridListDemoType'),
- TextSpan(style: codeStyle.baseStyle, text: ' tileStyle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' build'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' image '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Material'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a shape'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'RoundedRectangleBorder'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'borderRadius'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'BorderRadius'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'circular'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.numberStyle, text: '4'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a clipBehavior'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Clip'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'antiAlias'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Image'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'asset'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a photo'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'assetName'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a package'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027flutter_gallery_assets\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a fit'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'BoxFit'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'cover'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'switch'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'tileStyle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'case'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GridListDemoType'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'imageOnly'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' image'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'case'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GridListDemoType'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'header'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GridTile'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a header'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Material'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a color'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Colors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'transparent'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a shape'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'RoundedRectangleBorder'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a borderRadius'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'BorderRadius'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'vertical'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'top'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Radius'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'circular'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.numberStyle, text: '4'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a clipBehavior'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Clip'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'antiAlias'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GridTileBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_GridTitleText'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'photo'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'title'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a backgroundColor'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Colors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'black45'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' image'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'case'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GridListDemoType'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'footer'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GridTile'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a footer'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Material'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a color'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Colors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'transparent'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a shape'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'RoundedRectangleBorder'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a borderRadius'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'BorderRadius'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'vertical'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'bottom'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Radius'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'circular'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.numberStyle, text: '4'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a clipBehavior'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Clip'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'antiAlias'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GridTileBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a backgroundColor'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Colors'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'black45'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_GridTitleText'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'photo'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'title'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a subtitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_GridTitleText'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'photo'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'subtitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' image'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- ]);
- }
-
- static TextSpan listDemo(BuildContext context) {
- final CodeStyle codeStyle = CodeStyle.of(context);
- return TextSpan(children: [
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Copyright 2019 The Flutter team. All rights reserved.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Use of this source code is governed by a BSD-style license that can be'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle, text: '// found in the LICENSE file.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:flutter/material.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:gallery/l10n/gallery_localizations.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'enum'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'ListDemoType'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a oneLine'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a twoLine'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'ListDemo'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'StatelessWidget'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'ListDemo'),
- TextSpan(style: codeStyle.punctuationStyle, text: '({'),
- TextSpan(style: codeStyle.classStyle, text: 'Key'),
- TextSpan(style: codeStyle.baseStyle, text: ' key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'type'),
- TextSpan(style: codeStyle.punctuationStyle, text: '})'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'super'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'ListDemoType'),
- TextSpan(style: codeStyle.baseStyle, text: ' type'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' build'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Scaffold'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a appBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'AppBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a automaticallyImplyLeading'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'false'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoListsTitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a body'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Scrollbar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'ListView'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a padding'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'EdgeInsets'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'symmetric'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'vertical'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '8'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a children'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'for'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.keywordStyle, text: 'int'),
- TextSpan(style: codeStyle.baseStyle, text: ' index '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '1'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: ' index '),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '21'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: ' index'),
- TextSpan(style: codeStyle.punctuationStyle, text: '++)'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'ListTile'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a leading'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'ExcludeSemantics'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CircleAvatar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.stringStyle, text: '\u0027\u0024index\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoBottomSheetItem'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'index'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a subtitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' type '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'ListDemoType'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: 'twoLine\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '?'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoListsSecondary'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- ]);
- }
-
- static TextSpan menuDemoChecklist(BuildContext context) {
- final CodeStyle codeStyle = CodeStyle.of(context);
- return TextSpan(children: [
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Copyright 2019 The Flutter team. All rights reserved.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Use of this source code is governed by a BSD-style license that can be'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle, text: '// found in the LICENSE file.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:flutter/material.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:gallery/l10n/gallery_localizations.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Pressing the PopupMenuButton on the right of this item shows a menu'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// whose items have checked icons that reflect this app\u0027s state.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_ChecklistMenuDemo'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'StatefulWidget'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_ChecklistMenuDemo'),
- TextSpan(style: codeStyle.punctuationStyle, text: '({'),
- TextSpan(style: codeStyle.classStyle, text: 'Key'),
- TextSpan(style: codeStyle.baseStyle, text: ' key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'showInSnackBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '})'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'super'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'void'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Function'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.baseStyle, text: ' value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' showInSnackBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_ChecklistMenuDemoState'),
- TextSpan(style: codeStyle.baseStyle, text: ' createState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_ChecklistMenuDemoState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_ChecklistMenuDemoState'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'State'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: '_ChecklistMenuDemo'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'List'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'CheckedValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' _checkedValues'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'void'),
- TextSpan(style: codeStyle.baseStyle, text: ' initState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'super'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'initState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _checkedValues '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.classStyle, text: 'CheckedValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'three'),
- TextSpan(style: codeStyle.punctuationStyle, text: '];'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'void'),
- TextSpan(style: codeStyle.baseStyle, text: ' showCheckedMenuSelections'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CheckedValue'),
- TextSpan(style: codeStyle.baseStyle, text: ' value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'if'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '_checkedValues'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'contains'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'value'),
- TextSpan(style: codeStyle.punctuationStyle, text: '))'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a setState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a _checkedValues'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'remove'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '});'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'else'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a setState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a _checkedValues'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'add'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '});'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'showInSnackBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoMenuChecked'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a _checkedValues'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'map'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(('),
- TextSpan(style: codeStyle.baseStyle, text: 'value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' checkedValueToString'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.baseStyle, text: ' checkedValueToString'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CheckedValue'),
- TextSpan(style: codeStyle.baseStyle, text: ' value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'CheckedValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'one'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoMenuOne'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'CheckedValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'two'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoMenuTwo'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'CheckedValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'three'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoMenuThree'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'CheckedValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'four'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoMenuFour'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}['),
- TextSpan(style: codeStyle.baseStyle, text: 'value'),
- TextSpan(style: codeStyle.punctuationStyle, text: '];'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'bool'),
- TextSpan(style: codeStyle.baseStyle, text: ' isChecked'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'CheckedValue'),
- TextSpan(style: codeStyle.baseStyle, text: ' value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' _checkedValues'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'contains'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' build'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'ListTile'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(
- style: codeStyle.baseStyle, text: 'demoMenuAnItemWithAChecklistMenu'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a trailing'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'PopupMenuButton'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'CheckedValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a padding'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'EdgeInsets'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'zero'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onSelected'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' showCheckedMenuSelections'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' value'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a itemBuilder'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'PopupMenuItem'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'CheckedValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>>['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'CheckedPopupMenuItem'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'CheckedValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CheckedValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'one'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a checked'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' isChecked'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'CheckedValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'one'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a checkedValueToString'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CheckedValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'one'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'CheckedPopupMenuItem'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'CheckedValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CheckedValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'two'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a enabled'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'false'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a checked'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' isChecked'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'CheckedValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'two'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a checkedValueToString'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CheckedValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'two'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'CheckedPopupMenuItem'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'CheckedValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CheckedValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'three'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a checked'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' isChecked'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'CheckedValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'three'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a checkedValueToString'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CheckedValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'three'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'CheckedPopupMenuItem'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'CheckedValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CheckedValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'four'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a checked'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' isChecked'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'CheckedValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'four'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a checkedValueToString'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CheckedValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'four'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- ]);
- }
-
- static TextSpan menuDemoContext(BuildContext context) {
- final CodeStyle codeStyle = CodeStyle.of(context);
- return TextSpan(children: [
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Copyright 2019 The Flutter team. All rights reserved.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Use of this source code is governed by a BSD-style license that can be'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle, text: '// found in the LICENSE file.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:flutter/material.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:gallery/l10n/gallery_localizations.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Pressing the PopupMenuButton on the right of this item shows'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// a simple menu with one disabled item. Typically the contents'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// of this \u0022contextual menu\u0022 would reflect the app\u0027s state.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_ContextMenuDemo'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'StatelessWidget'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_ContextMenuDemo'),
- TextSpan(style: codeStyle.punctuationStyle, text: '({'),
- TextSpan(style: codeStyle.classStyle, text: 'Key'),
- TextSpan(style: codeStyle.baseStyle, text: ' key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'showInSnackBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '})'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'super'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'void'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Function'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.baseStyle, text: ' value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' showInSnackBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' build'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'ListTile'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: 'demoMenuAnItemWithAContextMenuButton'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a trailing'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'PopupMenuButton'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a padding'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'EdgeInsets'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'zero'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onSelected'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' showInSnackBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoMenuSelected'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'value'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a itemBuilder'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'PopupMenuItem'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>>['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'PopupMenuItem'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoMenuContextMenuItemOne'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoMenuContextMenuItemOne'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'PopupMenuItem'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a enabled'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'false'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoMenuADisabledMenuItem'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'PopupMenuItem'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(
- style: codeStyle.baseStyle, text: 'demoMenuContextMenuItemThree'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(
- style: codeStyle.baseStyle, text: 'demoMenuContextMenuItemThree'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- ]);
- }
-
- static TextSpan menuDemoSectioned(BuildContext context) {
- final CodeStyle codeStyle = CodeStyle.of(context);
- return TextSpan(children: [
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Copyright 2019 The Flutter team. All rights reserved.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Use of this source code is governed by a BSD-style license that can be'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle, text: '// found in the LICENSE file.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:flutter/material.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:gallery/l10n/gallery_localizations.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Pressing the PopupMenuButton on the right of this item shows'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// a menu whose items have text labels and icons and a divider'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// That separates the first three items from the last one.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_SectionedMenuDemo'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'StatelessWidget'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_SectionedMenuDemo'),
- TextSpan(style: codeStyle.punctuationStyle, text: '({'),
- TextSpan(style: codeStyle.classStyle, text: 'Key'),
- TextSpan(style: codeStyle.baseStyle, text: ' key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'showInSnackBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '})'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'super'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'void'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Function'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.baseStyle, text: ' value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' showInSnackBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' build'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'ListTile'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(
- style: codeStyle.baseStyle, text: 'demoMenuAnItemWithASectionedMenu'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a trailing'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'PopupMenuButton'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a padding'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'EdgeInsets'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'zero'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onSelected'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' showInSnackBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoMenuSelected'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a itemBuilder'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'PopupMenuEntry'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>>['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'PopupMenuItem'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoMenuPreview'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'ListTile'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a leading'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'Icons'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'visibility'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoMenuPreview'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'PopupMenuItem'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoMenuShare'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'ListTile'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a leading'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'Icons'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'person_add'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoMenuShare'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'PopupMenuItem'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoMenuGetLink'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'ListTile'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a leading'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'Icons'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'link'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoMenuGetLink'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'PopupMenuDivider'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'PopupMenuItem'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoMenuRemove'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'ListTile'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a leading'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'Icons'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'delete'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoMenuRemove'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- ]);
- }
-
- static TextSpan menuDemoSimple(BuildContext context) {
- final CodeStyle codeStyle = CodeStyle.of(context);
- return TextSpan(children: [
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Copyright 2019 The Flutter team. All rights reserved.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Use of this source code is governed by a BSD-style license that can be'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle, text: '// found in the LICENSE file.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:flutter/material.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:gallery/l10n/gallery_localizations.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// This entire list item is a PopupMenuButton. Tapping anywhere shows'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// a menu whose current value is highlighted and aligned over the'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// list item\u0027s center line.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_SimpleMenuDemo'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'StatefulWidget'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_SimpleMenuDemo'),
- TextSpan(style: codeStyle.punctuationStyle, text: '({'),
- TextSpan(style: codeStyle.classStyle, text: 'Key'),
- TextSpan(style: codeStyle.baseStyle, text: ' key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'showInSnackBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '})'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'super'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'void'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Function'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.baseStyle, text: ' value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' showInSnackBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_SimpleMenuDemoState'),
- TextSpan(style: codeStyle.baseStyle, text: ' createState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_SimpleMenuDemoState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_SimpleMenuDemoState'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'State'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: '_SimpleMenuDemo'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'SimpleValue'),
- TextSpan(style: codeStyle.baseStyle, text: ' _simpleValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'void'),
- TextSpan(style: codeStyle.baseStyle, text: ' showAndSetMenuSelection'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'SimpleValue'),
- TextSpan(style: codeStyle.baseStyle, text: ' value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a setState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _simpleValue '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '});'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'showInSnackBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoMenuSelected'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'simpleValueToString'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.baseStyle, text: ' simpleValueToString'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'SimpleValue'),
- TextSpan(style: codeStyle.baseStyle, text: ' value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'SimpleValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'one'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoMenuItemValueOne'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'SimpleValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'two'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoMenuItemValueTwo'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'SimpleValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'three'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoMenuItemValueThree'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}['),
- TextSpan(style: codeStyle.baseStyle, text: 'value'),
- TextSpan(style: codeStyle.punctuationStyle, text: '];'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'void'),
- TextSpan(style: codeStyle.baseStyle, text: ' initState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'super'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'initState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _simpleValue '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'SimpleValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'two'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' build'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'PopupMenuButton'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'SimpleValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a padding'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'EdgeInsets'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'zero'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a initialValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _simpleValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onSelected'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' showAndSetMenuSelection'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' value'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'ListTile'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(
- style: codeStyle.baseStyle, text: 'demoMenuAnItemWithASimpleMenu'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a subtitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'simpleValueToString'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' _simpleValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a itemBuilder'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'PopupMenuItem'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'SimpleValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>>['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'PopupMenuItem'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'SimpleValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'SimpleValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'one'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'simpleValueToString'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'SimpleValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'one'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ')),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'PopupMenuItem'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'SimpleValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'SimpleValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'two'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'simpleValueToString'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'SimpleValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'two'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ')),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'PopupMenuItem'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'SimpleValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'SimpleValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'three'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'simpleValueToString'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'SimpleValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'three'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ')),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- ]);
- }
-
- static TextSpan pickerDemo(BuildContext context) {
- final CodeStyle codeStyle = CodeStyle.of(context);
- return TextSpan(children: [
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Copyright 2019 The Flutter team. All rights reserved.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Use of this source code is governed by a BSD-style license that can be'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle, text: '// found in the LICENSE file.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.stringStyle, text: '\u0027dart:async\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:flutter/material.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:gallery/l10n/gallery_localizations.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:intl/intl.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'enum'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'PickerDemoType'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a date'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a time'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'PickerDemo'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'StatefulWidget'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'PickerDemo'),
- TextSpan(style: codeStyle.punctuationStyle, text: '({'),
- TextSpan(style: codeStyle.classStyle, text: 'Key'),
- TextSpan(style: codeStyle.baseStyle, text: ' key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'type'),
- TextSpan(style: codeStyle.punctuationStyle, text: '})'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'super'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'PickerDemoType'),
- TextSpan(style: codeStyle.baseStyle, text: ' type'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_PickerDemoState'),
- TextSpan(style: codeStyle.baseStyle, text: ' createState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_PickerDemoState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_PickerDemoState'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'State'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'PickerDemo'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'DateTime'),
- TextSpan(style: codeStyle.baseStyle, text: ' _fromDate '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'DateTime'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'now'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'TimeOfDay'),
- TextSpan(style: codeStyle.baseStyle, text: ' _fromTime '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'TimeOfDay'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'fromDateTime'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'DateTime'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'now'),
- TextSpan(style: codeStyle.punctuationStyle, text: '());'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'get'),
- TextSpan(style: codeStyle.baseStyle, text: ' _title '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'switch'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'type'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'case'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'PickerDemoType'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'date'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoDatePickerTitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'case'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'PickerDemoType'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'time'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoTimePickerTitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.stringStyle, text: '\u0027\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'get'),
- TextSpan(style: codeStyle.baseStyle, text: ' _labelText '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'switch'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'type'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'case'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'PickerDemoType'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'date'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'DateFormat'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'yMMMd'),
- TextSpan(style: codeStyle.punctuationStyle, text: '().'),
- TextSpan(style: codeStyle.baseStyle, text: 'format'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '_fromDate'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'case'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'PickerDemoType'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'time'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' _fromTime'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'format'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.stringStyle, text: '\u0027\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Future'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.keywordStyle, text: 'void'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' _showDatePicker'),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'async'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' picked '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'await'),
- TextSpan(style: codeStyle.baseStyle, text: ' showDatePicker'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a initialDate'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _fromDate'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a firstDate'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'DateTime'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.numberStyle, text: '2015'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '1'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a lastDate'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'DateTime'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.numberStyle, text: '2100'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'if'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'picked '),
- TextSpan(style: codeStyle.punctuationStyle, text: '!='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '&&'),
- TextSpan(style: codeStyle.baseStyle, text: ' picked '),
- TextSpan(style: codeStyle.punctuationStyle, text: '!='),
- TextSpan(style: codeStyle.baseStyle, text: ' _fromDate'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a setState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _fromDate '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' picked'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '});'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Future'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.keywordStyle, text: 'void'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' _showTimePicker'),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'async'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'TimeOfDay'),
- TextSpan(style: codeStyle.baseStyle, text: ' picked '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'await'),
- TextSpan(style: codeStyle.baseStyle, text: ' showTimePicker'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a initialTime'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _fromTime'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'if'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'picked '),
- TextSpan(style: codeStyle.punctuationStyle, text: '!='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '&&'),
- TextSpan(style: codeStyle.baseStyle, text: ' picked '),
- TextSpan(style: codeStyle.punctuationStyle, text: '!='),
- TextSpan(style: codeStyle.baseStyle, text: ' _fromTime'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a setState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _fromTime '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' picked'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '});'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' build'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Scaffold'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a appBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'AppBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a automaticallyImplyLeading'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'false'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '_title'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a body'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Center'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Column'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a mainAxisSize'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'MainAxisSize'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'min'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a children'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '_labelText'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'SizedBox'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'height'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '16'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'RaisedButton'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoPickersShowPicker'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a onPressed'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'switch'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'type'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'case'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'PickerDemoType'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'date'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a _showDatePicker'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'break'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'case'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'PickerDemoType'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'time'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a _showTimePicker'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'break'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- ]);
- }
-
- static TextSpan progressIndicatorsDemo(BuildContext context) {
- final CodeStyle codeStyle = CodeStyle.of(context);
- return TextSpan(children: [
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Copyright 2019 The Flutter team. All rights reserved.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Use of this source code is governed by a BSD-style license that can be'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle, text: '// found in the LICENSE file.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:flutter/material.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:gallery/l10n/gallery_localizations.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'enum'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'ProgressIndicatorDemoType'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a circular'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a linear'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'ProgressIndicatorDemo'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'StatefulWidget'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'ProgressIndicatorDemo'),
- TextSpan(style: codeStyle.punctuationStyle, text: '({'),
- TextSpan(style: codeStyle.classStyle, text: 'Key'),
- TextSpan(style: codeStyle.baseStyle, text: ' key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'type'),
- TextSpan(style: codeStyle.punctuationStyle, text: '})'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'super'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'ProgressIndicatorDemoType'),
- TextSpan(style: codeStyle.baseStyle, text: ' type'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.classStyle, text: '_ProgressIndicatorDemoState'),
- TextSpan(style: codeStyle.baseStyle, text: ' createState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.classStyle, text: '_ProgressIndicatorDemoState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.classStyle, text: '_ProgressIndicatorDemoState'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'State'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'ProgressIndicatorDemo'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'with'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.classStyle, text: 'SingleTickerProviderStateMixin'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'AnimationController'),
- TextSpan(style: codeStyle.baseStyle, text: ' _controller'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Animation'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.keywordStyle, text: 'double'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' _animation'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'void'),
- TextSpan(style: codeStyle.baseStyle, text: ' initState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'super'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'initState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _controller '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'AnimationController'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a duration'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Duration'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'milliseconds'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '1500'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a vsync'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a animationBehavior'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'AnimationBehavior'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'preserve'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ')..'),
- TextSpan(style: codeStyle.baseStyle, text: 'forward'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a _animation '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CurvedAnimation'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a parent'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _controller'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a curve'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Interval'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.numberStyle, text: '0.0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '0.9'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' curve'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Curves'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'fastOutSlowIn'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a reverseCurve'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Curves'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'fastOutSlowIn'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ')..'),
- TextSpan(style: codeStyle.baseStyle, text: 'addStatusListener'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(('),
- TextSpan(style: codeStyle.baseStyle, text: 'status'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'if'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'status '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'AnimationStatus'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dismissed'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _controller'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'forward'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'else'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'if'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'status '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'AnimationStatus'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'completed'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _controller'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'reverse'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '});'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'void'),
- TextSpan(style: codeStyle.baseStyle, text: ' dispose'),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _controller'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'stop'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'super'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dispose'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'get'),
- TextSpan(style: codeStyle.baseStyle, text: ' _title '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'switch'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'type'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'case'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'ProgressIndicatorDemoType'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'circular'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: 'demoCircularProgressIndicatorTitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'case'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'ProgressIndicatorDemoType'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'linear'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(
- style: codeStyle.baseStyle, text: 'demoLinearProgressIndicatorTitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.stringStyle, text: '\u0027\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' _buildIndicators'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'switch'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'type'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'case'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'ProgressIndicatorDemoType'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'circular'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Column'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a children'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CircularProgressIndicator'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'SizedBox'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'height'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '32'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'CircularProgressIndicator'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _animation'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'value'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'case'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'ProgressIndicatorDemoType'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'linear'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Column'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a children'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'LinearProgressIndicator'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'SizedBox'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'height'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '32'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'LinearProgressIndicator'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _animation'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'value'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'default'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Container'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' build'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Scaffold'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a appBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'AppBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a automaticallyImplyLeading'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'false'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '_title'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a body'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Center'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'SingleChildScrollView'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Container'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a padding'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'EdgeInsets'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'all'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.numberStyle, text: '8'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'AnimatedBuilder'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a animation'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _animation'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a builder'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _buildIndicators'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- ]);
- }
-
- static TextSpan rangeSlidersDemo(BuildContext context) {
- final CodeStyle codeStyle = CodeStyle.of(context);
- return TextSpan(children: [
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Copyright 2019 The Flutter team. All rights reserved.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Use of this source code is governed by a BSD-style license that can be'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle, text: '// found in the LICENSE file.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.stringStyle, text: '\u0027dart:math\u0027'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'as'),
- TextSpan(style: codeStyle.baseStyle, text: ' math'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:flutter/material.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:gallery/l10n/gallery_localizations.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_RangeSliders'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'StatefulWidget'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_RangeSlidersState'),
- TextSpan(style: codeStyle.baseStyle, text: ' createState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_RangeSlidersState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_RangeSlidersState'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'State'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: '_RangeSliders'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'RangeValues'),
- TextSpan(style: codeStyle.baseStyle, text: ' _continuousValues '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'RangeValues'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.numberStyle, text: '25'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '75'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'RangeValues'),
- TextSpan(style: codeStyle.baseStyle, text: ' _discreteValues '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'RangeValues'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.numberStyle, text: '40'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '120'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' build'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Padding'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a padding'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'EdgeInsets'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'symmetric'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'horizontal'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '40'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Column'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a mainAxisAlignment'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'MainAxisAlignment'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'center'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a children'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Column'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a mainAxisSize'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'MainAxisSize'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'min'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a children'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'RangeSlider'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a values'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _continuousValues'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a min'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a max'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '100'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a onChanged'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'values'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a setState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a _continuousValues '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' values'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '});'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoSlidersContinuous'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'SizedBox'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'height'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '80'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Column'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a mainAxisSize'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'MainAxisSize'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'min'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a children'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'RangeSlider'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a values'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _discreteValues'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a min'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a max'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '200'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a divisions'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '5'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a labels'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'RangeLabels'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a _discreteValues'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'start'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'round'),
- TextSpan(style: codeStyle.punctuationStyle, text: '().'),
- TextSpan(style: codeStyle.baseStyle, text: 'toString'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(),'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a _discreteValues'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'end'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'round'),
- TextSpan(style: codeStyle.punctuationStyle, text: '().'),
- TextSpan(style: codeStyle.baseStyle, text: 'toString'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a onChanged'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'values'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a setState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a _discreteValues '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' values'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '});'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoSlidersDiscrete'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- ]);
- }
-
- static TextSpan selectionControlsDemoCheckbox(BuildContext context) {
- final CodeStyle codeStyle = CodeStyle.of(context);
- return TextSpan(children: [
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Copyright 2019 The Flutter team. All rights reserved.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Use of this source code is governed by a BSD-style license that can be'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle, text: '// found in the LICENSE file.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:flutter/material.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:gallery/l10n/gallery_localizations.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_CheckboxDemo'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'StatefulWidget'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_CheckboxDemoState'),
- TextSpan(style: codeStyle.baseStyle, text: ' createState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_CheckboxDemoState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_CheckboxDemoState'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'State'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: '_CheckboxDemo'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'bool'),
- TextSpan(style: codeStyle.baseStyle, text: ' checkboxValueA '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'true'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'bool'),
- TextSpan(style: codeStyle.baseStyle, text: ' checkboxValueB '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'false'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'bool'),
- TextSpan(style: codeStyle.baseStyle, text: ' checkboxValueC'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' build'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Center'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Row'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a mainAxisSize'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'MainAxisSize'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'min'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a children'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Checkbox'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' checkboxValueA'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onChanged'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a setState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a checkboxValueA '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '});'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Checkbox'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' checkboxValueB'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onChanged'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a setState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a checkboxValueB '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '});'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Checkbox'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' checkboxValueC'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a tristate'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'true'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onChanged'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a setState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a checkboxValueC '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '});'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- ]);
- }
-
- static TextSpan selectionControlsDemoRadio(BuildContext context) {
- final CodeStyle codeStyle = CodeStyle.of(context);
- return TextSpan(children: [
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Copyright 2019 The Flutter team. All rights reserved.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Use of this source code is governed by a BSD-style license that can be'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle, text: '// found in the LICENSE file.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:flutter/material.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:gallery/l10n/gallery_localizations.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_RadioDemo'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'StatefulWidget'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_RadioDemoState'),
- TextSpan(style: codeStyle.baseStyle, text: ' createState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_RadioDemoState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_RadioDemoState'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'State'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: '_RadioDemo'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'int'),
- TextSpan(style: codeStyle.baseStyle, text: ' radioValue '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'void'),
- TextSpan(style: codeStyle.baseStyle, text: ' handleRadioValueChanged'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.keywordStyle, text: 'int'),
- TextSpan(style: codeStyle.baseStyle, text: ' value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a setState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a radioValue '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '});'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' build'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Center'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Row'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a mainAxisSize'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'MainAxisSize'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'min'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a children'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'for'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.keywordStyle, text: 'int'),
- TextSpan(style: codeStyle.baseStyle, text: ' index '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: ' index '),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '3'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '++'),
- TextSpan(style: codeStyle.baseStyle, text: 'index'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Radio'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.keywordStyle, text: 'int'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' index'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a groupValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' radioValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a onChanged'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' handleRadioValueChanged'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- ]);
- }
-
- static TextSpan selectionControlsDemoSwitches(BuildContext context) {
- final CodeStyle codeStyle = CodeStyle.of(context);
- return TextSpan(children: [
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Copyright 2019 The Flutter team. All rights reserved.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Use of this source code is governed by a BSD-style license that can be'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle, text: '// found in the LICENSE file.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:flutter/material.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:gallery/l10n/gallery_localizations.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_SwitchDemo'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'StatefulWidget'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_SwitchDemoState'),
- TextSpan(style: codeStyle.baseStyle, text: ' createState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_SwitchDemoState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_SwitchDemoState'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'State'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: '_SwitchDemo'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'bool'),
- TextSpan(style: codeStyle.baseStyle, text: ' switchValue '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'false'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' build'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Center'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Semantics'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a container'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'true'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a label'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(
- style: codeStyle.baseStyle, text: 'demoSelectionControlsSwitchTitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Switch'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' switchValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onChanged'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a setState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a switchValue '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '});'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- ]);
- }
-
- static TextSpan slidersDemo(BuildContext context) {
- final CodeStyle codeStyle = CodeStyle.of(context);
- return TextSpan(children: [
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Copyright 2019 The Flutter team. All rights reserved.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Use of this source code is governed by a BSD-style license that can be'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle, text: '// found in the LICENSE file.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.stringStyle, text: '\u0027dart:math\u0027'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'as'),
- TextSpan(style: codeStyle.baseStyle, text: ' math'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:flutter/material.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:gallery/l10n/gallery_localizations.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_Sliders'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'StatefulWidget'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_SlidersState'),
- TextSpan(style: codeStyle.baseStyle, text: ' createState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_SlidersState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_SlidersState'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'State'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: '_Sliders'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'double'),
- TextSpan(style: codeStyle.baseStyle, text: ' _continuousValue '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '25'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'double'),
- TextSpan(style: codeStyle.baseStyle, text: ' _discreteValue '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '20'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' build'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Padding'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a padding'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'EdgeInsets'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'symmetric'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'horizontal'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '40'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Column'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a mainAxisAlignment'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'MainAxisAlignment'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'center'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a children'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Column'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a mainAxisSize'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'MainAxisSize'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'min'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a children'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Semantics'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a label'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: 'demoSlidersEditableNumericalValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'SizedBox'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a width'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '64'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a height'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '48'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'TextField'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a textAlign'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'TextAlign'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'center'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a onSubmitted'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'double'),
- TextSpan(style: codeStyle.baseStyle, text: ' newValue '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'double'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'tryParse'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'if'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'newValue '),
- TextSpan(style: codeStyle.punctuationStyle, text: '!='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '&&'),
- TextSpan(style: codeStyle.baseStyle, text: ' newValue '),
- TextSpan(style: codeStyle.punctuationStyle, text: '!='),
- TextSpan(style: codeStyle.baseStyle, text: ' _continuousValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a setState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a _continuousValue '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' newValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'clamp'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.numberStyle, text: '0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '100'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'as'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'double'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '});'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a keyboardType'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'TextInputType'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'number'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a controller'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'TextEditingController'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a text'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _continuousValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'toStringAsFixed'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.numberStyle, text: '0'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Slider'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _continuousValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a min'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a max'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '100'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a onChanged'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a setState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a _continuousValue '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '});'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: 'demoSlidersContinuousWithEditableNumericalValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'SizedBox'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'height'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '80'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Column'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a mainAxisSize'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'MainAxisSize'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'min'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a children'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Slider'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _discreteValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a min'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a max'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '200'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a divisions'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '5'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a label'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _discreteValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'round'),
- TextSpan(style: codeStyle.punctuationStyle, text: '().'),
- TextSpan(style: codeStyle.baseStyle, text: 'toString'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(),'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a onChanged'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a setState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a _discreteValue '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '});'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoSlidersDiscrete'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- ]);
- }
-
- static TextSpan snackbarsDemo(BuildContext context) {
- final CodeStyle codeStyle = CodeStyle.of(context);
- return TextSpan(children: [
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Copyright 2019 The Flutter team. All rights reserved.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Use of this source code is governed by a BSD-style license that can be'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle, text: '// found in the LICENSE file.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:flutter/material.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:gallery/l10n/gallery_localizations.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'SnackbarsDemo'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'StatelessWidget'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' build'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Scaffold'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a appBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'AppBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a automaticallyImplyLeading'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'false'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoSnackbarsTitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a body'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Builder'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Create an inner BuildContext so that the snackBar onPressed methods'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// can refer to the Scaffold with Scaffold.of().'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a builder'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Center'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'RaisedButton'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoSnackbarsButtonLabel'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a onPressed'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Scaffold'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'hideCurrentSnackBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Scaffold'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'showSnackBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'SnackBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a content'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoSnackbarsText'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a action'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'SnackBarAction'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a label'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(
- style: codeStyle.baseStyle, text: 'demoSnackbarsActionButtonLabel'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a onPressed'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Scaffold'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'hideCurrentSnackBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Scaffold'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'showSnackBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'SnackBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a content'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoSnackbarsAction'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '));'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '));'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- ]);
- }
-
- static TextSpan tabsNonScrollableDemo(BuildContext context) {
- final CodeStyle codeStyle = CodeStyle.of(context);
- return TextSpan(children: [
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Copyright 2019 The Flutter team. All rights reserved.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Use of this source code is governed by a BSD-style license that can be'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle, text: '// found in the LICENSE file.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:flutter/material.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:gallery/l10n/gallery_localizations.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_TabsNonScrollableDemo'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'StatelessWidget'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' build'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'List'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' tabs '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'colorsRed'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'colorsOrange'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'colorsGreen'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '];'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'DefaultTabController'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a length'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' tabs'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'length'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Scaffold'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a appBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'AppBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a automaticallyImplyLeading'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'false'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoTabsNonScrollingTitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a bottom'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'TabBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a isScrollable'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'false'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a tabs'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'for'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' tab '),
- TextSpan(style: codeStyle.keywordStyle, text: 'in'),
- TextSpan(style: codeStyle.baseStyle, text: ' tabs'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Tab'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'text'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' tab'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a body'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'TabBarView'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a children'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'for'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' tab '),
- TextSpan(style: codeStyle.keywordStyle, text: 'in'),
- TextSpan(style: codeStyle.baseStyle, text: ' tabs'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Center'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'tab'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- ]);
- }
-
- static TextSpan tabsScrollableDemo(BuildContext context) {
- final CodeStyle codeStyle = CodeStyle.of(context);
- return TextSpan(children: [
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Copyright 2019 The Flutter team. All rights reserved.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Use of this source code is governed by a BSD-style license that can be'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle, text: '// found in the LICENSE file.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:flutter/material.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:gallery/l10n/gallery_localizations.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_TabsScrollableDemo'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'StatelessWidget'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' build'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'List'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' tabs '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'colorsRed'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'colorsOrange'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'colorsGreen'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'colorsBlue'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'colorsIndigo'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'colorsPurple'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'colorsRed'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'colorsOrange'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'colorsGreen'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'colorsBlue'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'colorsIndigo'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'colorsPurple'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '];'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'DefaultTabController'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a length'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' tabs'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'length'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Scaffold'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a appBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'AppBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a automaticallyImplyLeading'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'false'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoTabsScrollingTitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a bottom'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'TabBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a isScrollable'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'true'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a tabs'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'for'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' tab '),
- TextSpan(style: codeStyle.keywordStyle, text: 'in'),
- TextSpan(style: codeStyle.baseStyle, text: ' tabs'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Tab'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'text'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' tab'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a body'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'TabBarView'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a children'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'for'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' tab '),
- TextSpan(style: codeStyle.keywordStyle, text: 'in'),
- TextSpan(style: codeStyle.baseStyle, text: ' tabs'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Center'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'tab'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- ]);
- }
-
- static TextSpan textFieldDemo(BuildContext context) {
- final CodeStyle codeStyle = CodeStyle.of(context);
- return TextSpan(children: [
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Copyright 2019 The Flutter team. All rights reserved.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Use of this source code is governed by a BSD-style license that can be'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle, text: '// found in the LICENSE file.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:flutter/material.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:flutter/services.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:flutter/gestures.dart\u0027'),
- TextSpan(style: codeStyle.baseStyle, text: ' show '),
- TextSpan(style: codeStyle.classStyle, text: 'DragStartBehavior'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:gallery/l10n/gallery_localizations.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'TextFieldDemo'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'StatelessWidget'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' build'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Scaffold'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a appBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'AppBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a automaticallyImplyLeading'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'false'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoTextFieldTitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a body'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'TextFormFieldDemo'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'TextFormFieldDemo'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'StatefulWidget'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'TextFormFieldDemo'),
- TextSpan(style: codeStyle.punctuationStyle, text: '({'),
- TextSpan(style: codeStyle.classStyle, text: 'Key'),
- TextSpan(style: codeStyle.baseStyle, text: ' key'),
- TextSpan(style: codeStyle.punctuationStyle, text: '})'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'super'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'TextFormFieldDemoState'),
- TextSpan(style: codeStyle.baseStyle, text: ' createState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'TextFormFieldDemoState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'PersonData'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.baseStyle, text: ' name '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.stringStyle, text: '\u0027\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.baseStyle, text: ' phoneNumber '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.stringStyle, text: '\u0027\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.baseStyle, text: ' email '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.stringStyle, text: '\u0027\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.baseStyle, text: ' password '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.stringStyle, text: '\u0027\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'PasswordField'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'StatefulWidget'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'PasswordField'),
- TextSpan(style: codeStyle.punctuationStyle, text: '({'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'fieldKey'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'hintText'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'labelText'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'helperText'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onSaved'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'validator'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onFieldSubmitted'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '});'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Key'),
- TextSpan(style: codeStyle.baseStyle, text: ' fieldKey'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.baseStyle, text: ' hintText'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.baseStyle, text: ' labelText'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.baseStyle, text: ' helperText'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'FormFieldSetter'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' onSaved'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'FormFieldValidator'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' validator'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'ValueChanged'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' onFieldSubmitted'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_PasswordFieldState'),
- TextSpan(style: codeStyle.baseStyle, text: ' createState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_PasswordFieldState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_PasswordFieldState'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'State'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'PasswordField'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'bool'),
- TextSpan(style: codeStyle.baseStyle, text: ' _obscureText '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'true'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' build'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'TextFormField'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'fieldKey'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a obscureText'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _obscureText'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a cursorColor'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Theme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'cursorColor'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a maxLength'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '8'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onSaved'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onSaved'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a validator'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'validator'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a onFieldSubmitted'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onFieldSubmitted'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a decoration'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'InputDecoration'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a filled'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'true'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a hintText'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'hintText'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a labelText'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'labelText'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a helperText'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'helperText'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a suffixIcon'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GestureDetector'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a dragStartBehavior'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'DragStartBehavior'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'down'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onTap'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a setState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a _obscureText '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '!'),
- TextSpan(style: codeStyle.baseStyle, text: '_obscureText'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '});'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a _obscureText '),
- TextSpan(style: codeStyle.punctuationStyle, text: '?'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Icons'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'visibility '),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Icons'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'visibility_off'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a semanticLabel'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: ' _obscureText\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '?'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: 'demoTextFieldShowPasswordLabel\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(
- style: codeStyle.baseStyle, text: 'demoTextFieldHidePasswordLabel'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'TextFormFieldDemoState'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'State'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'TextFormFieldDemo'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GlobalKey'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'ScaffoldState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' _scaffoldKey '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GlobalKey'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'ScaffoldState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'PersonData'),
- TextSpan(style: codeStyle.baseStyle, text: ' person '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'PersonData'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'void'),
- TextSpan(style: codeStyle.baseStyle, text: ' showInSnackBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.baseStyle, text: ' value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _scaffoldKey'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'currentState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'hideCurrentSnackBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _scaffoldKey'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'currentState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'showSnackBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'SnackBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a content'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'value'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '));'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'bool'),
- TextSpan(style: codeStyle.baseStyle, text: ' _autoValidate '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'false'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GlobalKey'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'FormState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' _formKey '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GlobalKey'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'FormState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GlobalKey'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'FormFieldState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>>'),
- TextSpan(style: codeStyle.baseStyle, text: ' _passwordFieldKey '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GlobalKey'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'FormFieldState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>>();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.classStyle, text: '_UsNumberTextInputFormatter'),
- TextSpan(style: codeStyle.baseStyle, text: ' _phoneNumberFormatter '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.classStyle, text: '_UsNumberTextInputFormatter'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'void'),
- TextSpan(style: codeStyle.baseStyle, text: ' _handleSubmitted'),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' form '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' _formKey'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'currentState'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'if'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '(!'),
- TextSpan(style: codeStyle.baseStyle, text: 'form'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'validate'),
- TextSpan(style: codeStyle.punctuationStyle, text: '())'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _autoValidate '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'true'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Start validating on every change.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a showInSnackBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoTextFieldFormErrors'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'else'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a form'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'save'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a showInSnackBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(
- style: codeStyle.baseStyle, text: 'demoTextFieldNameHasPhoneNumber'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'person'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'name'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' person'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'phoneNumber'),
- TextSpan(style: codeStyle.punctuationStyle, text: '));'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.baseStyle, text: ' _validateName'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.baseStyle, text: ' value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'if'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'value'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'isEmpty'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoTextFieldNameRequired'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' nameExp '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'RegExp'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.stringStyle, text: 'r\u0027^[A-Za-z ]+\u0024\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'if'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '(!'),
- TextSpan(style: codeStyle.baseStyle, text: 'nameExp'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'hasMatch'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'value'),
- TextSpan(style: codeStyle.punctuationStyle, text: '))'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: 'demoTextFieldOnlyAlphabeticalChars'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.baseStyle, text: ' _validatePhoneNumber'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.baseStyle, text: ' value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' phoneExp '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'RegExp'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.stringStyle,
- text:
- 'r\u0027^\u005c(\u005cd\u005cd\u005cd\u005c) \u005cd\u005cd\u005cd\u005c-\u005cd\u005cd\u005cd\u005cd\u0024\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'if'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '(!'),
- TextSpan(style: codeStyle.baseStyle, text: 'phoneExp'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'hasMatch'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'value'),
- TextSpan(style: codeStyle.punctuationStyle, text: '))'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(
- style: codeStyle.baseStyle, text: 'demoTextFieldEnterUSPhoneNumber'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.baseStyle, text: ' _validatePassword'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.baseStyle, text: ' value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' passwordField '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' _passwordFieldKey'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'currentState'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'if'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'passwordField'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'value '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '||'),
- TextSpan(style: codeStyle.baseStyle, text: ' passwordField'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'value'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'isEmpty'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoTextFieldEnterPassword'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'if'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'passwordField'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'value '),
- TextSpan(style: codeStyle.punctuationStyle, text: '!='),
- TextSpan(style: codeStyle.baseStyle, text: ' value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(
- style: codeStyle.baseStyle, text: 'demoTextFieldPasswordsDoNotMatch'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' build'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' cursorColor '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Theme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'cursorColor'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' sizedBoxSpace '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'SizedBox'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'height'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '24'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Scaffold'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _scaffoldKey'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a body'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Form'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _formKey'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a autovalidate'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _autoValidate'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Scrollbar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'SingleChildScrollView'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a dragStartBehavior'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'DragStartBehavior'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'down'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a padding'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'EdgeInsets'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'symmetric'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'horizontal'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '16'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Column'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a crossAxisAlignment'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CrossAxisAlignment'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'stretch'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a children'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a sizedBoxSpace'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'TextFormField'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a textCapitalization'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'TextCapitalization'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'words'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a cursorColor'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' cursorColor'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a decoration'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'InputDecoration'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a filled'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'true'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'Icons'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'person'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a hintText'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(
- style: codeStyle.baseStyle, text: 'demoTextFieldWhatDoPeopleCallYou'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a labelText'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoTextFieldNameField'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a onSaved'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a person'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'name '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a validator'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _validateName'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a sizedBoxSpace'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'TextFormField'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a cursorColor'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' cursorColor'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a decoration'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'InputDecoration'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a filled'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'true'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'Icons'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'phone'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a hintText'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(
- style: codeStyle.baseStyle, text: 'demoTextFieldWhereCanWeReachYou'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a labelText'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoTextFieldPhoneNumber'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a prefixText'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.stringStyle, text: '\u0027+1 \u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a keyboardType'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'TextInputType'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'phone'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a onSaved'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a person'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'phoneNumber '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a maxLength'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '14'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a maxLengthEnforced'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'false'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a validator'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _validatePhoneNumber'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// TextInputFormatters are applied in sequence.'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a inputFormatters'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'TextInputFormatter'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.classStyle, text: 'WhitelistingTextInputFormatter'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'digitsOnly'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle, text: '// Fit the validating format.'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a _phoneNumberFormatter'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a sizedBoxSpace'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'TextFormField'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a cursorColor'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' cursorColor'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a decoration'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'InputDecoration'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a filled'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'true'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'Icons'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'email'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a hintText'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(
- style: codeStyle.baseStyle, text: 'demoTextFieldYourEmailAddress'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a labelText'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoTextFieldEmail'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a keyboardType'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'TextInputType'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'emailAddress'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a onSaved'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a person'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'email '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a sizedBoxSpace'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'TextFormField'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a cursorColor'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' cursorColor'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a decoration'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'InputDecoration'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a border'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'OutlineInputBorder'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(),'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a hintText'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(
- style: codeStyle.baseStyle, text: 'demoTextFieldTellUsAboutYourself'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a helperText'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoTextFieldKeepItShort'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a labelText'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoTextFieldLifeStory'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a maxLines'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '3'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a sizedBoxSpace'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'TextFormField'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a cursorColor'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' cursorColor'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a keyboardType'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'TextInputType'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'number'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a decoration'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'InputDecoration'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a border'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'OutlineInputBorder'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(),'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a labelText'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoTextFieldSalary'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a suffixText'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoTextFieldUSD'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a maxLines'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '1'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a sizedBoxSpace'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'PasswordField'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a fieldKey'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _passwordFieldKey'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a helperText'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoTextFieldNoMoreThan'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a labelText'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoTextFieldPassword'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a onFieldSubmitted'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a setState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a person'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'password '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '});'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a sizedBoxSpace'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'TextFormField'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a cursorColor'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' cursorColor'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a decoration'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'InputDecoration'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a filled'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'true'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a labelText'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoTextFieldRetypePassword'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a maxLength'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '8'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a obscureText'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'true'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a validator'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _validatePassword'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a sizedBoxSpace'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Center'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'RaisedButton'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoTextFieldSubmit'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a onPressed'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _handleSubmitted'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a sizedBoxSpace'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoTextFieldRequiredField'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a style'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Theme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'textTheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'caption'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a sizedBoxSpace'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '/// Format incoming numeric text to fit the format of (###) ###-#### ##'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.classStyle, text: '_UsNumberTextInputFormatter'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'TextInputFormatter'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'TextEditingValue'),
- TextSpan(style: codeStyle.baseStyle, text: ' formatEditUpdate'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'TextEditingValue'),
- TextSpan(style: codeStyle.baseStyle, text: ' oldValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'TextEditingValue'),
- TextSpan(style: codeStyle.baseStyle, text: ' newValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' newTextLength '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' newValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'length'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' newText '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'StringBuffer'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'int'),
- TextSpan(style: codeStyle.baseStyle, text: ' selectionIndex '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' newValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'selection'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'end'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'int'),
- TextSpan(style: codeStyle.baseStyle, text: ' usedSubstringIndex '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'if'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'newTextLength '),
- TextSpan(style: codeStyle.punctuationStyle, text: '>='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '1'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a newText'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'write'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.stringStyle, text: '\u0027(\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'if'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'newValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'selection'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'end '),
- TextSpan(style: codeStyle.punctuationStyle, text: '>='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '1'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' selectionIndex'),
- TextSpan(style: codeStyle.punctuationStyle, text: '++;'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'if'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'newTextLength '),
- TextSpan(style: codeStyle.punctuationStyle, text: '>='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '4'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a newText'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'write'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'newValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'substring'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.numberStyle, text: '0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' usedSubstringIndex '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '3'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '+'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.stringStyle, text: '\u0027) \u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'if'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'newValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'selection'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'end '),
- TextSpan(style: codeStyle.punctuationStyle, text: '>='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '3'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' selectionIndex '),
- TextSpan(style: codeStyle.punctuationStyle, text: '+='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '2'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'if'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'newTextLength '),
- TextSpan(style: codeStyle.punctuationStyle, text: '>='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '7'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a newText'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'write'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'newValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'substring'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.numberStyle, text: '3'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' usedSubstringIndex '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '6'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '+'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.stringStyle, text: '\u0027-\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'if'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'newValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'selection'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'end '),
- TextSpan(style: codeStyle.punctuationStyle, text: '>='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '6'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' selectionIndex'),
- TextSpan(style: codeStyle.punctuationStyle, text: '++;'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'if'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'newTextLength '),
- TextSpan(style: codeStyle.punctuationStyle, text: '>='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '11'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a newText'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'write'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'newValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'substring'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.numberStyle, text: '6'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' usedSubstringIndex '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '10'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '+'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.stringStyle, text: '\u0027 \u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'if'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'newValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'selection'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'end '),
- TextSpan(style: codeStyle.punctuationStyle, text: '>='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '10'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' selectionIndex'),
- TextSpan(style: codeStyle.punctuationStyle, text: '++;'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.commentStyle, text: '// Dump the rest.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'if'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'newTextLength '),
- TextSpan(style: codeStyle.punctuationStyle, text: '>='),
- TextSpan(style: codeStyle.baseStyle, text: ' usedSubstringIndex'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a newText'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'write'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'newValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'substring'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'usedSubstringIndex'),
- TextSpan(style: codeStyle.punctuationStyle, text: '));'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'TextEditingValue'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a text'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' newText'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'toString'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a selection'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'TextSelection'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'collapsed'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'offset'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' selectionIndex'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- ]);
- }
-
- static TextSpan tooltipDemo(BuildContext context) {
- final CodeStyle codeStyle = CodeStyle.of(context);
- return TextSpan(children: [
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Copyright 2019 The Flutter team. All rights reserved.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Use of this source code is governed by a BSD-style license that can be'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle, text: '// found in the LICENSE file.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:flutter/material.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:gallery/l10n/gallery_localizations.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'TooltipDemo'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'StatelessWidget'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' build'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Scaffold'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a appBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'AppBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a automaticallyImplyLeading'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'false'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoTooltipTitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a body'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Center'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Padding'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a padding'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'EdgeInsets'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'all'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.numberStyle, text: '8'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Column'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a mainAxisAlignment'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'MainAxisAlignment'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'center'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a children'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoTooltipInstructions'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a textAlign'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'TextAlign'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'center'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'SizedBox'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'height'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '16'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Tooltip'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a message'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'starterAppTooltipSearch'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'IconButton'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a color'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Theme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'colorScheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'primary'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a onPressed'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{},'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'Icons'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'search'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- ]);
- }
-
- static TextSpan transformationsDemo(BuildContext context) {
- final CodeStyle codeStyle = CodeStyle.of(context);
- return TextSpan(children: [
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Copyright 2019 The Flutter team. All rights reserved.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Use of this source code is governed by a BSD-style license that can be'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle, text: '// found in the LICENSE file.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle, text: '\u0027dart:collection\u0027'),
- TextSpan(style: codeStyle.baseStyle, text: ' show '),
- TextSpan(style: codeStyle.classStyle, text: 'IterableMixin'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.stringStyle, text: '\u0027dart:math\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.stringStyle, text: '\u0027dart:ui\u0027'),
- TextSpan(style: codeStyle.baseStyle, text: ' show '),
- TextSpan(style: codeStyle.classStyle, text: 'Vertices'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:flutter/material.dart\u0027'),
- TextSpan(style: codeStyle.baseStyle, text: ' hide '),
- TextSpan(style: codeStyle.classStyle, text: 'Gradient'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:vector_math/vector_math_64.dart\u0027'),
- TextSpan(style: codeStyle.baseStyle, text: ' show '),
- TextSpan(style: codeStyle.classStyle, text: 'Vector3'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'TransformationsDemo'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'StatefulWidget'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'TransformationsDemo'),
- TextSpan(style: codeStyle.punctuationStyle, text: '({'),
- TextSpan(style: codeStyle.classStyle, text: 'Key'),
- TextSpan(style: codeStyle.baseStyle, text: ' key'),
- TextSpan(style: codeStyle.punctuationStyle, text: '})'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'super'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_TransformationsDemoState'),
- TextSpan(style: codeStyle.baseStyle, text: ' createState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_TransformationsDemoState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_TransformationsDemoState'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'State'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'TransformationsDemo'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// The radius of a hexagon tile in pixels.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'static'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.constantStyle, text: '_kHexagonRadius'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '32.0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// The margin between hexagons.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'static'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.constantStyle, text: '_kHexagonMargin'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '1.0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// The radius of the entire board in hexagons, not including the center.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'static'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.constantStyle, text: '_kBoardRadius'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '12'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'bool'),
- TextSpan(style: codeStyle.baseStyle, text: ' _reset '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'false'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Board'),
- TextSpan(style: codeStyle.baseStyle, text: ' _board '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Board'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a boardRadius'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.constantStyle, text: '_kBoardRadius'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a hexagonRadius'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.constantStyle, text: '_kHexagonRadius'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a hexagonMargin'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.constantStyle, text: '_kHexagonMargin'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' build'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'BoardPainter'),
- TextSpan(style: codeStyle.baseStyle, text: ' painter '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'BoardPainter'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a board'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _board'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// The scene is drawn by a CustomPaint, but user interaction is handled by'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// the GestureTransformable parent widget.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Scaffold'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a backgroundColor'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Theme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'colorScheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'primary'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a appBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'AppBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a automaticallyImplyLeading'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'false'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demo2dTransformationsTitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a body'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Container'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a color'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' backgroundColor'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'LayoutBuilder'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a builder'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' constraints'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Draw the scene as big as is available, but allow the user to'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// translate beyond that to a visibleSize that\u0027s a bit bigger.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Size'),
- TextSpan(style: codeStyle.baseStyle, text: ' size '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Size'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'constraints'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'maxWidth'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' constraints'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'maxHeight'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Size'),
- TextSpan(style: codeStyle.baseStyle, text: ' visibleSize '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Size'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'size'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'width '),
- TextSpan(style: codeStyle.punctuationStyle, text: '*'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '3'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' size'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'height '),
- TextSpan(style: codeStyle.punctuationStyle, text: '*'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '2'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GestureTransformable'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a reset'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _reset'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a onResetEnd'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a setState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a _reset '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'false'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '});'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CustomPaint'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a painter'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' painter'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a boundaryRect'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Rect'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'fromLTWH'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '-'),
- TextSpan(style: codeStyle.baseStyle, text: 'visibleSize'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'width '),
- TextSpan(style: codeStyle.punctuationStyle, text: '/'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '2'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '-'),
- TextSpan(style: codeStyle.baseStyle, text: 'visibleSize'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'height '),
- TextSpan(style: codeStyle.punctuationStyle, text: '/'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '2'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a visibleSize'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'width'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a visibleSize'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'height'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Center the board in the middle of the screen. It\u0027s drawn centered'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// at the origin, which is the top left corner of the'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.commentStyle, text: '// GestureTransformable.'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a initialTranslation'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Offset'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'size'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'width '),
- TextSpan(style: codeStyle.punctuationStyle, text: '/'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '2'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' size'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'height '),
- TextSpan(style: codeStyle.punctuationStyle, text: '/'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '2'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onTapUp'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _onTapUp'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a size'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' size'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a persistentFooterButtons'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: 'resetButton'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' editButton'),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'IconButton'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'get'),
- TextSpan(style: codeStyle.baseStyle, text: ' resetButton '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'IconButton'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onPressed'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a setState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _reset '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'true'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '});'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a tooltip'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: 'demo2dTransformationsResetTooltip'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a color'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Theme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'colorScheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'surface'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'Icons'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'replay'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'IconButton'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'get'),
- TextSpan(style: codeStyle.baseStyle, text: ' editButton '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'IconButton'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onPressed'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'if'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '_board'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'selected '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a showModalBottomSheet'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a builder'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Container'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a width'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'double'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'infinity'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a height'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '150'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a padding'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'EdgeInsets'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'all'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.numberStyle, text: '12'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'EditBoardPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a boardPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _board'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'selected'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a onColorSelection'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'color'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a setState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a _board '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' _board'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'copyWithBoardPointColor'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a _board'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'selected'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' color'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Navigator'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'pop'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '});'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '});'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a tooltip'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(
- style: codeStyle.baseStyle, text: 'demo2dTransformationsEditTooltip'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a color'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Theme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'colorScheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'surface'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Icon'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'Icons'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'edit'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'void'),
- TextSpan(style: codeStyle.baseStyle, text: ' _onTapUp'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'TapUpDetails'),
- TextSpan(style: codeStyle.baseStyle, text: ' details'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Offset'),
- TextSpan(style: codeStyle.baseStyle, text: ' scenePoint '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' details'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'globalPosition'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'BoardPoint'),
- TextSpan(style: codeStyle.baseStyle, text: ' boardPoint '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' _board'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'pointToBoardPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'scenePoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a setState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _board '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' _board'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'copyWithSelected'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'boardPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '});'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// CustomPainter is what is passed to CustomPaint and actually draws the scene'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// when its `paint` method is called.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'BoardPainter'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CustomPainter'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'BoardPainter'),
- TextSpan(style: codeStyle.punctuationStyle, text: '({'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'board'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '});'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Board'),
- TextSpan(style: codeStyle.baseStyle, text: ' board'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'void'),
- TextSpan(style: codeStyle.baseStyle, text: ' paint'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'Canvas'),
- TextSpan(style: codeStyle.baseStyle, text: ' canvas'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Size'),
- TextSpan(style: codeStyle.baseStyle, text: ' size'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'void'),
- TextSpan(style: codeStyle.baseStyle, text: ' drawBoardPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BoardPoint'),
- TextSpan(style: codeStyle.baseStyle, text: ' boardPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Color'),
- TextSpan(style: codeStyle.baseStyle, text: ' color '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' boardPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'color'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'withOpacity'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a board'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'selected '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=='),
- TextSpan(style: codeStyle.baseStyle, text: ' boardPoint '),
- TextSpan(style: codeStyle.punctuationStyle, text: '?'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '0.7'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '1'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Vertices'),
- TextSpan(style: codeStyle.baseStyle, text: ' vertices '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a board'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'getVerticesForBoardPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'boardPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' color'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a canvas'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'drawVertices'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'vertices'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'BlendMode'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'color'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Paint'),
- TextSpan(style: codeStyle.punctuationStyle, text: '());'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a board'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'forEach'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'drawBoardPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// We should repaint whenever the board changes, such as board.selected.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'bool'),
- TextSpan(style: codeStyle.baseStyle, text: ' shouldRepaint'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BoardPainter'),
- TextSpan(style: codeStyle.baseStyle, text: ' oldDelegate'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' oldDelegate'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'board '),
- TextSpan(style: codeStyle.punctuationStyle, text: '!='),
- TextSpan(style: codeStyle.baseStyle, text: ' board'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// The entire state of the hex board and abstraction to get information about'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// it. Iterable so that all BoardPoints on the board can be iterated over.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: '@immutable'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Board'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Object'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'with'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'IterableMixin'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'BoardPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Board'),
- TextSpan(style: codeStyle.punctuationStyle, text: '({'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@required'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'boardRadius'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@required'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'hexagonRadius'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@required'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'hexagonMargin'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'selected'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'List'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'BoardPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' boardPoints'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '})'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'assert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'boardRadius '),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '0'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'assert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'hexagonRadius '),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '0'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'assert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'hexagonMargin '),
- TextSpan(style: codeStyle.punctuationStyle, text: '>='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Set up the positions for the center hexagon where the entire board is'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle, text: '// centered on the origin.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Start point of hexagon (top vertex).'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Point'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.keywordStyle, text: 'double'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' hexStart '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Point'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.keywordStyle, text: 'double'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>('),
- TextSpan(style: codeStyle.numberStyle, text: '0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '-'),
- TextSpan(style: codeStyle.baseStyle, text: 'hexagonRadius'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'double'),
- TextSpan(style: codeStyle.baseStyle, text: ' hexagonRadiusPadded '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' hexagonRadius '),
- TextSpan(style: codeStyle.punctuationStyle, text: '-'),
- TextSpan(style: codeStyle.baseStyle, text: ' hexagonMargin'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'double'),
- TextSpan(style: codeStyle.baseStyle, text: ' centerToFlat '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' sqrt'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.numberStyle, text: '3'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '/'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '2'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '*'),
- TextSpan(style: codeStyle.baseStyle, text: ' hexagonRadiusPadded'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a positionsForHexagonAtOrigin'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'addAll'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(<'),
- TextSpan(style: codeStyle.classStyle, text: 'Offset'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Offset'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'hexStart'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'x'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' hexStart'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'y'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Offset'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'hexStart'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'x '),
- TextSpan(style: codeStyle.punctuationStyle, text: '+'),
- TextSpan(style: codeStyle.baseStyle, text: ' centerToFlat'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' hexStart'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'y '),
- TextSpan(style: codeStyle.punctuationStyle, text: '+'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '0.5'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '*'),
- TextSpan(style: codeStyle.baseStyle, text: ' hexagonRadiusPadded'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Offset'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'hexStart'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'x '),
- TextSpan(style: codeStyle.punctuationStyle, text: '+'),
- TextSpan(style: codeStyle.baseStyle, text: ' centerToFlat'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' hexStart'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'y '),
- TextSpan(style: codeStyle.punctuationStyle, text: '+'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '1.5'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '*'),
- TextSpan(style: codeStyle.baseStyle, text: ' hexagonRadiusPadded'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Offset'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'hexStart'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'x '),
- TextSpan(style: codeStyle.punctuationStyle, text: '+'),
- TextSpan(style: codeStyle.baseStyle, text: ' centerToFlat'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' hexStart'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'y '),
- TextSpan(style: codeStyle.punctuationStyle, text: '+'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '1.5'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '*'),
- TextSpan(style: codeStyle.baseStyle, text: ' hexagonRadiusPadded'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Offset'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'hexStart'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'x'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' hexStart'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'y '),
- TextSpan(style: codeStyle.punctuationStyle, text: '+'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '2'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '*'),
- TextSpan(style: codeStyle.baseStyle, text: ' hexagonRadiusPadded'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Offset'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'hexStart'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'x'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' hexStart'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'y '),
- TextSpan(style: codeStyle.punctuationStyle, text: '+'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '2'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '*'),
- TextSpan(style: codeStyle.baseStyle, text: ' hexagonRadiusPadded'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Offset'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'hexStart'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'x '),
- TextSpan(style: codeStyle.punctuationStyle, text: '-'),
- TextSpan(style: codeStyle.baseStyle, text: ' centerToFlat'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' hexStart'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'y '),
- TextSpan(style: codeStyle.punctuationStyle, text: '+'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '1.5'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '*'),
- TextSpan(style: codeStyle.baseStyle, text: ' hexagonRadiusPadded'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Offset'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'hexStart'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'x '),
- TextSpan(style: codeStyle.punctuationStyle, text: '-'),
- TextSpan(style: codeStyle.baseStyle, text: ' centerToFlat'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' hexStart'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'y '),
- TextSpan(style: codeStyle.punctuationStyle, text: '+'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '1.5'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '*'),
- TextSpan(style: codeStyle.baseStyle, text: ' hexagonRadiusPadded'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Offset'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'hexStart'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'x '),
- TextSpan(style: codeStyle.punctuationStyle, text: '-'),
- TextSpan(style: codeStyle.baseStyle, text: ' centerToFlat'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' hexStart'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'y '),
- TextSpan(style: codeStyle.punctuationStyle, text: '+'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '0.5'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '*'),
- TextSpan(style: codeStyle.baseStyle, text: ' hexagonRadiusPadded'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ']);'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'if'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'boardPoints '),
- TextSpan(style: codeStyle.punctuationStyle, text: '!='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _boardPoints'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'addAll'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'boardPoints'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'else'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Generate boardPoints for a fresh board.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'BoardPoint'),
- TextSpan(style: codeStyle.baseStyle, text: ' boardPoint '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' _getNextBoardPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'while'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'boardPoint '),
- TextSpan(style: codeStyle.punctuationStyle, text: '!='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _boardPoints'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'add'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'boardPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a boardPoint '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' _getNextBoardPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'boardPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'int'),
- TextSpan(style: codeStyle.baseStyle, text: ' boardRadius'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Number of hexagons from center to edge.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'double'),
- TextSpan(style: codeStyle.baseStyle, text: ' hexagonRadius'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Pixel radius of a hexagon (center to vertex).'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'double'),
- TextSpan(style: codeStyle.baseStyle, text: ' hexagonMargin'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.commentStyle, text: '// Margin between hexagons.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'List'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'Offset'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(
- style: codeStyle.baseStyle, text: ' positionsForHexagonAtOrigin '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'Offset'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>[];'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'BoardPoint'),
- TextSpan(style: codeStyle.baseStyle, text: ' selected'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'List'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'BoardPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' _boardPoints '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'BoardPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>[];'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Iterator'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'BoardPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'get'),
- TextSpan(style: codeStyle.baseStyle, text: ' iterator '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_BoardIterator'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '_boardPoints'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// For a given q axial coordinate, get the range of possible r values'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// See the definition of BoardPoint for more information about hex grids and'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.commentStyle, text: '// axial coordinates.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_Range'),
- TextSpan(style: codeStyle.baseStyle, text: ' _getRRangeForQ'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.keywordStyle, text: 'int'),
- TextSpan(style: codeStyle.baseStyle, text: ' q'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'int'),
- TextSpan(style: codeStyle.baseStyle, text: ' rStart'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'int'),
- TextSpan(style: codeStyle.baseStyle, text: ' rEnd'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'if'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'q '),
- TextSpan(style: codeStyle.punctuationStyle, text: '<='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a rStart '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '-'),
- TextSpan(style: codeStyle.baseStyle, text: 'boardRadius '),
- TextSpan(style: codeStyle.punctuationStyle, text: '-'),
- TextSpan(style: codeStyle.baseStyle, text: ' q'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a rEnd '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' boardRadius'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'else'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a rEnd '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' boardRadius '),
- TextSpan(style: codeStyle.punctuationStyle, text: '-'),
- TextSpan(style: codeStyle.baseStyle, text: ' q'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a rStart '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '-'),
- TextSpan(style: codeStyle.baseStyle, text: 'boardRadius'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_Range'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'rStart'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' rEnd'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Get the BoardPoint that comes after the given BoardPoint. If given null,'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// returns the origin BoardPoint. If given BoardPoint is the last, returns'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.commentStyle, text: '// null.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'BoardPoint'),
- TextSpan(style: codeStyle.baseStyle, text: ' _getNextBoardPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BoardPoint'),
- TextSpan(style: codeStyle.baseStyle, text: ' boardPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// If before the first element.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'if'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'boardPoint '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'BoardPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(-'),
- TextSpan(style: codeStyle.baseStyle, text: 'boardRadius'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_Range'),
- TextSpan(style: codeStyle.baseStyle, text: ' rRange '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' _getRRangeForQ'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'boardPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'q'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// If at or after the last element.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'if'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'boardPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'q '),
- TextSpan(style: codeStyle.punctuationStyle, text: '>='),
- TextSpan(style: codeStyle.baseStyle, text: ' boardRadius '),
- TextSpan(style: codeStyle.punctuationStyle, text: '&&'),
- TextSpan(style: codeStyle.baseStyle, text: ' boardPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'r '),
- TextSpan(style: codeStyle.punctuationStyle, text: '>='),
- TextSpan(style: codeStyle.baseStyle, text: ' rRange'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'max'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// If wrapping from one q to the next.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'if'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'boardPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'r '),
- TextSpan(style: codeStyle.punctuationStyle, text: '>='),
- TextSpan(style: codeStyle.baseStyle, text: ' rRange'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'max'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'BoardPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'boardPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'q '),
- TextSpan(style: codeStyle.punctuationStyle, text: '+'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '1'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' _getRRangeForQ'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'boardPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'q '),
- TextSpan(style: codeStyle.punctuationStyle, text: '+'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '1'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'min'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Otherwise we\u0027re just incrementing r.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'BoardPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'boardPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'q'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' boardPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'r '),
- TextSpan(style: codeStyle.punctuationStyle, text: '+'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '1'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Check if the board point is actually on the board.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'bool'),
- TextSpan(style: codeStyle.baseStyle, text: ' _validateBoardPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BoardPoint'),
- TextSpan(style: codeStyle.baseStyle, text: ' boardPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'BoardPoint'),
- TextSpan(style: codeStyle.baseStyle, text: ' center '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'BoardPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.numberStyle, text: '0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'int'),
- TextSpan(style: codeStyle.baseStyle, text: ' distanceFromCenter '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' getDistance'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'center'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' boardPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' distanceFromCenter '),
- TextSpan(style: codeStyle.punctuationStyle, text: '<='),
- TextSpan(style: codeStyle.baseStyle, text: ' boardRadius'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Get the distance between two BoardPoins.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'static'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'int'),
- TextSpan(style: codeStyle.baseStyle, text: ' getDistance'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BoardPoint'),
- TextSpan(style: codeStyle.baseStyle, text: ' a'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'BoardPoint'),
- TextSpan(style: codeStyle.baseStyle, text: ' b'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Vector3'),
- TextSpan(style: codeStyle.baseStyle, text: ' a3 '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'cubeCoordinates'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Vector3'),
- TextSpan(style: codeStyle.baseStyle, text: ' b3 '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' b'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'cubeCoordinates'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '(('),
- TextSpan(style: codeStyle.baseStyle, text: 'a3'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'x '),
- TextSpan(style: codeStyle.punctuationStyle, text: '-'),
- TextSpan(style: codeStyle.baseStyle, text: ' b3'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'x'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'abs'),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '+'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'a3'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'y '),
- TextSpan(style: codeStyle.punctuationStyle, text: '-'),
- TextSpan(style: codeStyle.baseStyle, text: ' b3'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'y'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'abs'),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '+'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'a3'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'z '),
- TextSpan(style: codeStyle.punctuationStyle, text: '-'),
- TextSpan(style: codeStyle.baseStyle, text: ' b3'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'z'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'abs'),
- TextSpan(style: codeStyle.punctuationStyle, text: '())'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '~/'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '2'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Return the q,r BoardPoint for a point in the scene, where the origin is in'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// the center of the board in both coordinate systems. If no BoardPoint at the'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle, text: '// location, return null.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'BoardPoint'),
- TextSpan(style: codeStyle.baseStyle, text: ' pointToBoardPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'Offset'),
- TextSpan(style: codeStyle.baseStyle, text: ' point'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'BoardPoint'),
- TextSpan(style: codeStyle.baseStyle, text: ' boardPoint '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'BoardPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '(('),
- TextSpan(style: codeStyle.baseStyle, text: 'sqrt'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.numberStyle, text: '3'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '/'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '3'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '*'),
- TextSpan(style: codeStyle.baseStyle, text: ' point'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dx '),
- TextSpan(style: codeStyle.punctuationStyle, text: '-'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '1'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '/'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '3'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '*'),
- TextSpan(style: codeStyle.baseStyle, text: ' point'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dy'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '/'),
- TextSpan(style: codeStyle.baseStyle, text: ' hexagonRadius'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'round'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '(('),
- TextSpan(style: codeStyle.numberStyle, text: '2'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '/'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '3'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '*'),
- TextSpan(style: codeStyle.baseStyle, text: ' point'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dy'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '/'),
- TextSpan(style: codeStyle.baseStyle, text: ' hexagonRadius'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'round'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'if'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '(!'),
- TextSpan(style: codeStyle.baseStyle, text: '_validateBoardPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'boardPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: '))'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' _boardPoints'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'firstWhere'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(('),
- TextSpan(style: codeStyle.baseStyle, text: 'boardPointI'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' boardPointI'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'q '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=='),
- TextSpan(style: codeStyle.baseStyle, text: ' boardPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'q '),
- TextSpan(style: codeStyle.punctuationStyle, text: '&&'),
- TextSpan(style: codeStyle.baseStyle, text: ' boardPointI'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'r '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=='),
- TextSpan(style: codeStyle.baseStyle, text: ' boardPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'r'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '});'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Return a scene point for the center of a hexagon given its q,r point.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Point'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.keywordStyle, text: 'double'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' boardPointToPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BoardPoint'),
- TextSpan(style: codeStyle.baseStyle, text: ' boardPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Point'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.keywordStyle, text: 'double'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a sqrt'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.numberStyle, text: '3'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '*'),
- TextSpan(style: codeStyle.baseStyle, text: ' hexagonRadius '),
- TextSpan(style: codeStyle.punctuationStyle, text: '*'),
- TextSpan(style: codeStyle.baseStyle, text: ' boardPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'q '),
- TextSpan(style: codeStyle.punctuationStyle, text: '+'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a sqrt'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.numberStyle, text: '3'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '/'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '2'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '*'),
- TextSpan(style: codeStyle.baseStyle, text: ' hexagonRadius '),
- TextSpan(style: codeStyle.punctuationStyle, text: '*'),
- TextSpan(style: codeStyle.baseStyle, text: ' boardPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'r'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '1.5'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '*'),
- TextSpan(style: codeStyle.baseStyle, text: ' hexagonRadius '),
- TextSpan(style: codeStyle.punctuationStyle, text: '*'),
- TextSpan(style: codeStyle.baseStyle, text: ' boardPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'r'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Get Vertices that can be drawn to a Canvas for the given BoardPoint.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Vertices'),
- TextSpan(style: codeStyle.baseStyle, text: ' getVerticesForBoardPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BoardPoint'),
- TextSpan(style: codeStyle.baseStyle, text: ' boardPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Color'),
- TextSpan(style: codeStyle.baseStyle, text: ' color'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Point'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.keywordStyle, text: 'double'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' centerOfHexZeroCenter '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' boardPointToPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'boardPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'List'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'Offset'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' positions '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(
- style: codeStyle.baseStyle, text: ' positionsForHexagonAtOrigin'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'map'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(('),
- TextSpan(style: codeStyle.baseStyle, text: 'offset'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' offset'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'translate'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'centerOfHexZeroCenter'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'x'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' centerOfHexZeroCenter'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'y'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}).'),
- TextSpan(style: codeStyle.baseStyle, text: 'toList'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Vertices'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'VertexMode'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'triangleFan'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a positions'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a colors'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'List'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'Color'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>.'),
- TextSpan(style: codeStyle.baseStyle, text: 'filled'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'positions'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'length'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' color'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Return a new board with the given BoardPoint selected.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Board'),
- TextSpan(style: codeStyle.baseStyle, text: ' copyWithSelected'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BoardPoint'),
- TextSpan(style: codeStyle.baseStyle, text: ' boardPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'if'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'selected '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=='),
- TextSpan(style: codeStyle.baseStyle, text: ' boardPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Board'),
- TextSpan(style: codeStyle.baseStyle, text: ' nextBoard '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Board'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a boardRadius'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' boardRadius'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a hexagonRadius'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' hexagonRadius'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a hexagonMargin'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' hexagonMargin'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a selected'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' boardPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a boardPoints'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _boardPoints'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' nextBoard'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Return a new board where boardPoint has the given color.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Board'),
- TextSpan(style: codeStyle.baseStyle, text: ' copyWithBoardPointColor'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BoardPoint'),
- TextSpan(style: codeStyle.baseStyle, text: ' boardPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Color'),
- TextSpan(style: codeStyle.baseStyle, text: ' color'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'BoardPoint'),
- TextSpan(style: codeStyle.baseStyle, text: ' nextBoardPoint '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' boardPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'copyWithColor'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'color'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'int'),
- TextSpan(style: codeStyle.baseStyle, text: ' boardPointIndex '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' _boardPoints'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'indexWhere'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(('),
- TextSpan(style: codeStyle.baseStyle, text: 'boardPointI'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a boardPointI'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'q '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=='),
- TextSpan(style: codeStyle.baseStyle, text: ' boardPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'q '),
- TextSpan(style: codeStyle.punctuationStyle, text: '&&'),
- TextSpan(style: codeStyle.baseStyle, text: ' boardPointI'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'r '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=='),
- TextSpan(style: codeStyle.baseStyle, text: ' boardPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'r'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'if'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'elementAt'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'boardPointIndex'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=='),
- TextSpan(style: codeStyle.baseStyle, text: ' boardPoint '),
- TextSpan(style: codeStyle.punctuationStyle, text: '&&'),
- TextSpan(style: codeStyle.baseStyle, text: ' boardPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'color '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=='),
- TextSpan(style: codeStyle.baseStyle, text: ' color'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'List'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'BoardPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' nextBoardPoints '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'List'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'BoardPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>.'),
- TextSpan(style: codeStyle.baseStyle, text: 'from'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '_boardPoints'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a nextBoardPoints'),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: 'boardPointIndex'),
- TextSpan(style: codeStyle.punctuationStyle, text: ']'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' nextBoardPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'BoardPoint'),
- TextSpan(style: codeStyle.baseStyle, text: ' selectedBoardPoint '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a boardPoint '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=='),
- TextSpan(style: codeStyle.baseStyle, text: ' selected '),
- TextSpan(style: codeStyle.punctuationStyle, text: '?'),
- TextSpan(style: codeStyle.baseStyle, text: ' nextBoardPoint '),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' selected'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Board'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a boardRadius'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' boardRadius'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a hexagonRadius'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' hexagonRadius'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a hexagonMargin'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' hexagonMargin'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a selected'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' selectedBoardPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a boardPoints'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' nextBoardPoints'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_BoardIterator'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Iterator'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'BoardPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_BoardIterator'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'boardPoints'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'List'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'BoardPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' boardPoints'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'int'),
- TextSpan(style: codeStyle.baseStyle, text: ' currentIndex'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'BoardPoint'),
- TextSpan(style: codeStyle.baseStyle, text: ' current'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'bool'),
- TextSpan(style: codeStyle.baseStyle, text: ' moveNext'),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'if'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'currentIndex '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a currentIndex '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'else'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a currentIndex'),
- TextSpan(style: codeStyle.punctuationStyle, text: '++;'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'if'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'currentIndex '),
- TextSpan(style: codeStyle.punctuationStyle, text: '>='),
- TextSpan(style: codeStyle.baseStyle, text: ' boardPoints'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'length'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a current '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'false'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a current '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' boardPoints'),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: 'currentIndex'),
- TextSpan(style: codeStyle.punctuationStyle, text: '];'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'true'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// A range of q/r board coordinate values.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: '@immutable'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_Range'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_Range'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'min'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'max'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'assert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'min '),
- TextSpan(style: codeStyle.punctuationStyle, text: '!='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'assert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'max '),
- TextSpan(style: codeStyle.punctuationStyle, text: '!='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'assert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'min '),
- TextSpan(style: codeStyle.punctuationStyle, text: '<='),
- TextSpan(style: codeStyle.baseStyle, text: ' max'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'int'),
- TextSpan(style: codeStyle.baseStyle, text: ' min'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'int'),
- TextSpan(style: codeStyle.baseStyle, text: ' max'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// A location on the board in axial coordinates.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Axial coordinates use two integers, q and r, to locate a hexagon on a grid.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// https://www.redblobgames.com/grids/hexagons/#coordinates-axial'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: '@immutable'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'BoardPoint'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'BoardPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'q'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'r'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'color '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Color'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.numberStyle, text: '0'),
- TextSpan(style: codeStyle.baseStyle, text: 'xFFCDCDCD'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '});'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'int'),
- TextSpan(style: codeStyle.baseStyle, text: ' q'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'int'),
- TextSpan(style: codeStyle.baseStyle, text: ' r'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Color'),
- TextSpan(style: codeStyle.baseStyle, text: ' color'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.baseStyle, text: ' toString'),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027BoardPoint(\u0024q, \u0024r, \u0024color)\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(
- style: codeStyle.commentStyle, text: '// Only compares by location.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'bool'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'operator'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '==('),
- TextSpan(style: codeStyle.classStyle, text: 'Object'),
- TextSpan(style: codeStyle.baseStyle, text: ' other'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'if'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'other'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'runtimeType '),
- TextSpan(style: codeStyle.punctuationStyle, text: '!='),
- TextSpan(style: codeStyle.baseStyle, text: ' runtimeType'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'false'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' other '),
- TextSpan(style: codeStyle.keywordStyle, text: 'is'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'BoardPoint'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '&&'),
- TextSpan(style: codeStyle.baseStyle, text: ' other'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'q '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=='),
- TextSpan(style: codeStyle.baseStyle, text: ' q '),
- TextSpan(style: codeStyle.punctuationStyle, text: '&&'),
- TextSpan(style: codeStyle.baseStyle, text: ' other'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'r '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=='),
- TextSpan(style: codeStyle.baseStyle, text: ' r'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'int'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'get'),
- TextSpan(style: codeStyle.baseStyle, text: ' hashCode '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' hashValues'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'q'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' r'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'BoardPoint'),
- TextSpan(style: codeStyle.baseStyle, text: ' copyWithColor'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'Color'),
- TextSpan(style: codeStyle.baseStyle, text: ' nextColor'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'BoardPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'q'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' r'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' color'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' nextColor'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Convert from q,r axial coords to x,y,z cube coords.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Vector3'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'get'),
- TextSpan(style: codeStyle.baseStyle, text: ' cubeCoordinates '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Vector3'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a q'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'toDouble'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a r'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'toDouble'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '(-'),
- TextSpan(style: codeStyle.baseStyle, text: 'q '),
- TextSpan(style: codeStyle.punctuationStyle, text: '-'),
- TextSpan(style: codeStyle.baseStyle, text: ' r'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'toDouble'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// This widget allows 2D transform interactions on its child in relation to its'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// parent. The user can transform the child by dragging to pan or pinching to'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// zoom and rotate. All event callbacks for GestureDetector are supported, and'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// the coordinates that are given are untransformed and in relation to the'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// original position of the child.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: '@immutable'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GestureTransformable'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'StatefulWidget'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GestureTransformable'),
- TextSpan(style: codeStyle.punctuationStyle, text: '({'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Key'),
- TextSpan(style: codeStyle.baseStyle, text: ' key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// The child to perform the transformations on.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@required'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// The desired visible size of the widget and the area that is receptive to'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// gestures. If a widget that\u0027s as big as possible is desired, then wrap'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// this in a LayoutBuilder and pass'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// `Size(constraints.maxWidth, constraints.maxHeight)`.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@required'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'size'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// The scale will be clamped to between these values. A maxScale of null has'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// no bounds. minScale must be greater than zero.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'maxScale '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '2.5'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'minScale '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '0.8'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Transforms will be limited so that the viewport can not view beyond this'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Rect. The Rect does not rotate with the rest of the scene, so it is'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// always aligned with the viewport. A null boundaryRect results in no'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// limits to the distance that the viewport can be transformed to see.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'boundaryRect'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Initial values for the transform can be provided.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'initialTranslation'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'initialScale'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'initialRotation'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Any and all of the possible transformations can be disabled.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'disableTranslation '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'false'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'disableScale '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'false'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'disableRotation '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'false'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// If set to true, this widget will animate back to its initial transform'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// and call onResetEnd when done. When utilizing reset, onResetEnd should'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// also be implemented, and it should set reset to false when called.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'reset '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'false'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Access to event callbacks from GestureDetector. Called with untransformed'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle, text: '// coordinates in an Offset.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onTapDown'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onTapUp'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onTap'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onTapCancel'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onDoubleTap'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onLongPress'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onLongPressUp'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onVerticalDragDown'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onVerticalDragStart'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onVerticalDragUpdate'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onVerticalDragEnd'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onVerticalDragCancel'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onHorizontalDragDown'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onHorizontalDragStart'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onHorizontalDragUpdate'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onHorizontalDragEnd'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onHorizontalDragCancel'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onPanDown'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onPanStart'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onPanUpdate'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onPanEnd'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onPanCancel'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onResetEnd'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onScaleStart'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onScaleUpdate'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onScaleEnd'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '})'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'assert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'child '),
- TextSpan(style: codeStyle.punctuationStyle, text: '!='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'assert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'size '),
- TextSpan(style: codeStyle.punctuationStyle, text: '!='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'assert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'minScale '),
- TextSpan(style: codeStyle.punctuationStyle, text: '!='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'assert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'minScale '),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '0'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'assert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'disableTranslation '),
- TextSpan(style: codeStyle.punctuationStyle, text: '!='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'assert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'disableScale '),
- TextSpan(style: codeStyle.punctuationStyle, text: '!='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'assert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'disableRotation '),
- TextSpan(style: codeStyle.punctuationStyle, text: '!='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'assert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'reset '),
- TextSpan(style: codeStyle.punctuationStyle, text: '!='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'assert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '!'),
- TextSpan(style: codeStyle.baseStyle, text: 'reset '),
- TextSpan(style: codeStyle.punctuationStyle, text: '||'),
- TextSpan(style: codeStyle.baseStyle, text: ' onResetEnd '),
- TextSpan(style: codeStyle.punctuationStyle, text: '!='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027Must implement onResetEnd to use reset.\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'super'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Size'),
- TextSpan(style: codeStyle.baseStyle, text: ' size'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'bool'),
- TextSpan(style: codeStyle.baseStyle, text: ' reset'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GestureTapDownCallback'),
- TextSpan(style: codeStyle.baseStyle, text: ' onTapDown'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GestureTapUpCallback'),
- TextSpan(style: codeStyle.baseStyle, text: ' onTapUp'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GestureTapCallback'),
- TextSpan(style: codeStyle.baseStyle, text: ' onTap'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GestureTapCancelCallback'),
- TextSpan(style: codeStyle.baseStyle, text: ' onTapCancel'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GestureTapCallback'),
- TextSpan(style: codeStyle.baseStyle, text: ' onDoubleTap'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GestureLongPressCallback'),
- TextSpan(style: codeStyle.baseStyle, text: ' onLongPress'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GestureLongPressUpCallback'),
- TextSpan(style: codeStyle.baseStyle, text: ' onLongPressUp'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GestureDragDownCallback'),
- TextSpan(style: codeStyle.baseStyle, text: ' onVerticalDragDown'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GestureDragStartCallback'),
- TextSpan(style: codeStyle.baseStyle, text: ' onVerticalDragStart'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GestureDragUpdateCallback'),
- TextSpan(style: codeStyle.baseStyle, text: ' onVerticalDragUpdate'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GestureDragEndCallback'),
- TextSpan(style: codeStyle.baseStyle, text: ' onVerticalDragEnd'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GestureDragCancelCallback'),
- TextSpan(style: codeStyle.baseStyle, text: ' onVerticalDragCancel'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GestureDragDownCallback'),
- TextSpan(style: codeStyle.baseStyle, text: ' onHorizontalDragDown'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GestureDragStartCallback'),
- TextSpan(style: codeStyle.baseStyle, text: ' onHorizontalDragStart'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GestureDragUpdateCallback'),
- TextSpan(style: codeStyle.baseStyle, text: ' onHorizontalDragUpdate'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GestureDragEndCallback'),
- TextSpan(style: codeStyle.baseStyle, text: ' onHorizontalDragEnd'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GestureDragCancelCallback'),
- TextSpan(style: codeStyle.baseStyle, text: ' onHorizontalDragCancel'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GestureDragDownCallback'),
- TextSpan(style: codeStyle.baseStyle, text: ' onPanDown'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GestureDragStartCallback'),
- TextSpan(style: codeStyle.baseStyle, text: ' onPanStart'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GestureDragUpdateCallback'),
- TextSpan(style: codeStyle.baseStyle, text: ' onPanUpdate'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GestureDragEndCallback'),
- TextSpan(style: codeStyle.baseStyle, text: ' onPanEnd'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GestureDragCancelCallback'),
- TextSpan(style: codeStyle.baseStyle, text: ' onPanCancel'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'VoidCallback'),
- TextSpan(style: codeStyle.baseStyle, text: ' onResetEnd'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GestureScaleStartCallback'),
- TextSpan(style: codeStyle.baseStyle, text: ' onScaleStart'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GestureScaleUpdateCallback'),
- TextSpan(style: codeStyle.baseStyle, text: ' onScaleUpdate'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GestureScaleEndCallback'),
- TextSpan(style: codeStyle.baseStyle, text: ' onScaleEnd'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'double'),
- TextSpan(style: codeStyle.baseStyle, text: ' maxScale'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'double'),
- TextSpan(style: codeStyle.baseStyle, text: ' minScale'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Rect'),
- TextSpan(style: codeStyle.baseStyle, text: ' boundaryRect'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'bool'),
- TextSpan(style: codeStyle.baseStyle, text: ' disableTranslation'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'bool'),
- TextSpan(style: codeStyle.baseStyle, text: ' disableScale'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'bool'),
- TextSpan(style: codeStyle.baseStyle, text: ' disableRotation'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Offset'),
- TextSpan(style: codeStyle.baseStyle, text: ' initialTranslation'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'double'),
- TextSpan(style: codeStyle.baseStyle, text: ' initialScale'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'double'),
- TextSpan(style: codeStyle.baseStyle, text: ' initialRotation'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_GestureTransformableState'),
- TextSpan(style: codeStyle.baseStyle, text: ' createState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_GestureTransformableState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// A single user event can only represent one of these gestures. The user can\u0027t'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// do multiple at the same time, which results in more precise transformations.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'enum'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_GestureType'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a translate'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a scale'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a rotate'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// This is public only for access from a unit test.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_GestureTransformableState'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'State'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'GestureTransformable'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'with'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'TickerProviderStateMixin'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Animation'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'Offset'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' _animation'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'AnimationController'),
- TextSpan(style: codeStyle.baseStyle, text: ' _controller'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Animation'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'Matrix4'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' _animationReset'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'AnimationController'),
- TextSpan(style: codeStyle.baseStyle, text: ' _controllerReset'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// The translation that will be applied to the scene (not viewport).'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// A positive x offset moves the scene right, viewport left.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// A positive y offset moves the scene down, viewport up.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Offset'),
- TextSpan(style: codeStyle.baseStyle, text: ' _translateFromScene'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Point where a single translation began.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'double'),
- TextSpan(style: codeStyle.baseStyle, text: ' _scaleStart'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Scale value at start of scaling gesture.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'double'),
- TextSpan(style: codeStyle.baseStyle, text: ' _rotationStart '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Rotation at start of rotation gesture.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Rect'),
- TextSpan(style: codeStyle.baseStyle, text: ' _boundaryRect'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Matrix4'),
- TextSpan(style: codeStyle.baseStyle, text: ' _transform '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Matrix4'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'identity'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'double'),
- TextSpan(style: codeStyle.baseStyle, text: ' _currentRotation '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_GestureType'),
- TextSpan(style: codeStyle.baseStyle, text: ' gestureType'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// The transformation matrix that gives the initial home position.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Matrix4'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'get'),
- TextSpan(style: codeStyle.baseStyle, text: ' _initialTransform '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Matrix4'),
- TextSpan(style: codeStyle.baseStyle, text: ' matrix '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Matrix4'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'identity'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'if'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'initialTranslation '),
- TextSpan(style: codeStyle.punctuationStyle, text: '!='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a matrix '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' matrixTranslate'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'matrix'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'initialTranslation'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'if'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'initialScale '),
- TextSpan(style: codeStyle.punctuationStyle, text: '!='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a matrix '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' matrixScale'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'matrix'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'initialScale'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'if'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'initialRotation '),
- TextSpan(style: codeStyle.punctuationStyle, text: '!='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a matrix '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' matrixRotate'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'matrix'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'initialRotation'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Offset'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'zero'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' matrix'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Return the scene point at the given viewport point.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'static'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Offset'),
- TextSpan(style: codeStyle.baseStyle, text: ' fromViewport'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'Offset'),
- TextSpan(style: codeStyle.baseStyle, text: ' viewportPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Matrix4'),
- TextSpan(style: codeStyle.baseStyle, text: ' transform'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// On viewportPoint, perform the inverse transformation of the scene to get'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// where the point would be in the scene before the transformation.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Matrix4'),
- TextSpan(style: codeStyle.baseStyle, text: ' inverseMatrix '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Matrix4'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'inverted'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'transform'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Vector3'),
- TextSpan(style: codeStyle.baseStyle, text: ' untransformed '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' inverseMatrix'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'transform3'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'Vector3'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a viewportPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dx'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a viewportPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dy'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.numberStyle, text: '0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '));'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Offset'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'untransformed'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'x'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' untransformed'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'y'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Get the offset of the current widget from the global screen coordinates.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// TODO(justinmc): Protect against calling this during first build.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'static'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Offset'),
- TextSpan(style: codeStyle.baseStyle, text: ' getOffset'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'RenderBox'),
- TextSpan(style: codeStyle.baseStyle, text: ' renderObject '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'findRenderObject'),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'as'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'RenderBox'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' renderObject'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'localToGlobal'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'Offset'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'zero'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'void'),
- TextSpan(style: codeStyle.baseStyle, text: ' initState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'super'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'initState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _boundaryRect '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'boundaryRect '),
- TextSpan(style: codeStyle.punctuationStyle, text: '??'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Offset'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'zero '),
- TextSpan(style: codeStyle.punctuationStyle, text: '&'),
- TextSpan(style: codeStyle.baseStyle, text: ' widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'size'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _transform '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' _initialTransform'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _controller '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'AnimationController'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a vsync'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _controllerReset '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'AnimationController'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a vsync'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'if'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'reset'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a _animateResetInitialize'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'void'),
- TextSpan(style: codeStyle.baseStyle, text: ' didUpdateWidget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'GestureTransformable'),
- TextSpan(style: codeStyle.baseStyle, text: ' oldWidget'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'super'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'didUpdateWidget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'oldWidget'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'if'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'reset '),
- TextSpan(style: codeStyle.punctuationStyle, text: '&&'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '!'),
- TextSpan(style: codeStyle.baseStyle, text: 'oldWidget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'reset '),
- TextSpan(style: codeStyle.punctuationStyle, text: '&&'),
- TextSpan(style: codeStyle.baseStyle, text: ' _animationReset '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a _animateResetInitialize'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'else'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'if'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '(!'),
- TextSpan(style: codeStyle.baseStyle, text: 'widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'reset '),
- TextSpan(style: codeStyle.punctuationStyle, text: '&&'),
- TextSpan(style: codeStyle.baseStyle, text: ' oldWidget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'reset '),
- TextSpan(style: codeStyle.punctuationStyle, text: '&&'),
- TextSpan(style: codeStyle.baseStyle, text: ' _animationReset '),
- TextSpan(style: codeStyle.punctuationStyle, text: '!='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a _animateResetStop'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' build'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// A GestureDetector allows the detection of panning and zooming gestures on'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// its child, which is the CustomPaint.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'GestureDetector'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a behavior'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'HitTestBehavior'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'opaque'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Necessary when translating off screen'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onTapDown'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onTapDown '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '?'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'details'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onTapDown'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'TapDownDetails'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a globalPosition'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' fromViewport'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a details'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'globalPosition '),
- TextSpan(style: codeStyle.punctuationStyle, text: '-'),
- TextSpan(style: codeStyle.baseStyle, text: ' getOffset'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: ' _transform'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '));'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onTapUp'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onTapUp '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '?'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'details'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onTapUp'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'TapUpDetails'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a globalPosition'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' fromViewport'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a details'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'globalPosition '),
- TextSpan(style: codeStyle.punctuationStyle, text: '-'),
- TextSpan(style: codeStyle.baseStyle, text: ' getOffset'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: ' _transform'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '));'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onTap'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onTap'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onTapCancel'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onTapCancel'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onDoubleTap'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onDoubleTap'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onLongPress'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onLongPress'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onLongPressUp'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onLongPressUp'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a onVerticalDragDown'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onVerticalDragDown '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '?'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'details'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onVerticalDragDown'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'DragDownDetails'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a globalPosition'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' fromViewport'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a details'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'globalPosition '),
- TextSpan(style: codeStyle.punctuationStyle, text: '-'),
- TextSpan(style: codeStyle.baseStyle, text: ' getOffset'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: ' _transform'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '));'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a onVerticalDragStart'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onVerticalDragStart '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '?'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'details'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onVerticalDragStart'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'DragStartDetails'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a globalPosition'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' fromViewport'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a details'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'globalPosition '),
- TextSpan(style: codeStyle.punctuationStyle, text: '-'),
- TextSpan(style: codeStyle.baseStyle, text: ' getOffset'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: ' _transform'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '));'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a onVerticalDragUpdate'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onVerticalDragUpdate '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '?'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'details'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onVerticalDragUpdate'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'DragUpdateDetails'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a globalPosition'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' fromViewport'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a details'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'globalPosition '),
- TextSpan(style: codeStyle.punctuationStyle, text: '-'),
- TextSpan(style: codeStyle.baseStyle, text: ' getOffset'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: ' _transform'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '));'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a onVerticalDragEnd'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onVerticalDragEnd'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a onVerticalDragCancel'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onVerticalDragCancel'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a onHorizontalDragDown'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onHorizontalDragDown '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '?'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'details'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onHorizontalDragDown'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'DragDownDetails'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a globalPosition'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' fromViewport'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a details'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'globalPosition '),
- TextSpan(style: codeStyle.punctuationStyle, text: '-'),
- TextSpan(style: codeStyle.baseStyle, text: ' getOffset'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: ' _transform'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '));'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a onHorizontalDragStart'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onHorizontalDragStart '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '?'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'details'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onHorizontalDragStart'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'DragStartDetails'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a globalPosition'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' fromViewport'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a details'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'globalPosition '),
- TextSpan(style: codeStyle.punctuationStyle, text: '-'),
- TextSpan(style: codeStyle.baseStyle, text: ' getOffset'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: ' _transform'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '));'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a onHorizontalDragUpdate'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onHorizontalDragUpdate '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '?'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'details'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onHorizontalDragUpdate'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'DragUpdateDetails'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a globalPosition'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' fromViewport'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a details'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'globalPosition '),
- TextSpan(style: codeStyle.punctuationStyle, text: '-'),
- TextSpan(style: codeStyle.baseStyle, text: ' getOffset'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: ' _transform'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '));'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a onHorizontalDragEnd'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onHorizontalDragEnd'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a onHorizontalDragCancel'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onHorizontalDragCancel'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onPanDown'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onPanDown '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '?'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'details'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onPanDown'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'DragDownDetails'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a globalPosition'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' fromViewport'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a details'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'globalPosition '),
- TextSpan(style: codeStyle.punctuationStyle, text: '-'),
- TextSpan(style: codeStyle.baseStyle, text: ' getOffset'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: ' _transform'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '));'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onPanStart'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onPanStart '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '?'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'details'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onPanStart'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'DragStartDetails'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a globalPosition'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' fromViewport'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a details'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'globalPosition '),
- TextSpan(style: codeStyle.punctuationStyle, text: '-'),
- TextSpan(style: codeStyle.baseStyle, text: ' getOffset'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: ' _transform'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '));'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onPanUpdate'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onPanUpdate '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '?'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'details'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onPanUpdate'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'DragUpdateDetails'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a globalPosition'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' fromViewport'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a details'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'globalPosition '),
- TextSpan(style: codeStyle.punctuationStyle, text: '-'),
- TextSpan(style: codeStyle.baseStyle, text: ' getOffset'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: ' _transform'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '));'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '},'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onPanEnd'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onPanEnd'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onPanCancel'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onPanCancel'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onScaleEnd'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _onScaleEnd'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onScaleStart'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _onScaleStart'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a onScaleUpdate'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _onScaleUpdate'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'ClipRect'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// The scene is panned/zoomed/rotated using this Transform widget.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Transform'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a transform'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _transform'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Container'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a height'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'size'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'height'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a width'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'size'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'width'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Return a new matrix representing the given matrix after applying the given'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.commentStyle, text: '// translation.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Matrix4'),
- TextSpan(style: codeStyle.baseStyle, text: ' matrixTranslate'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'Matrix4'),
- TextSpan(style: codeStyle.baseStyle, text: ' matrix'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Offset'),
- TextSpan(style: codeStyle.baseStyle, text: ' translation'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'if'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'disableTranslation '),
- TextSpan(style: codeStyle.punctuationStyle, text: '||'),
- TextSpan(style: codeStyle.baseStyle, text: ' translation '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Offset'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'zero'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' matrix'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Clamp translation so the viewport remains inside _boundaryRect.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'double'),
- TextSpan(style: codeStyle.baseStyle, text: ' scale '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' _transform'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'getMaxScaleOnAxis'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Size'),
- TextSpan(style: codeStyle.baseStyle, text: ' scaledSize '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'size '),
- TextSpan(style: codeStyle.punctuationStyle, text: '/'),
- TextSpan(style: codeStyle.baseStyle, text: ' scale'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Rect'),
- TextSpan(style: codeStyle.baseStyle, text: ' viewportBoundaries '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Rect'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'fromLTRB'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _boundaryRect'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'left'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _boundaryRect'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'top'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _boundaryRect'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'right '),
- TextSpan(style: codeStyle.punctuationStyle, text: '-'),
- TextSpan(style: codeStyle.baseStyle, text: ' scaledSize'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'width'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _boundaryRect'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'bottom '),
- TextSpan(style: codeStyle.punctuationStyle, text: '-'),
- TextSpan(style: codeStyle.baseStyle, text: ' scaledSize'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'height'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Translation is reversed (a positive translation moves the scene to the'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// right, viewport to the left).'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Rect'),
- TextSpan(style: codeStyle.baseStyle, text: ' translationBoundaries '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Rect'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'fromLTRB'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '-'),
- TextSpan(style: codeStyle.baseStyle, text: 'scale '),
- TextSpan(style: codeStyle.punctuationStyle, text: '*'),
- TextSpan(style: codeStyle.baseStyle, text: ' viewportBoundaries'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'right'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '-'),
- TextSpan(style: codeStyle.baseStyle, text: 'scale '),
- TextSpan(style: codeStyle.punctuationStyle, text: '*'),
- TextSpan(style: codeStyle.baseStyle, text: ' viewportBoundaries'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'bottom'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '-'),
- TextSpan(style: codeStyle.baseStyle, text: 'scale '),
- TextSpan(style: codeStyle.punctuationStyle, text: '*'),
- TextSpan(style: codeStyle.baseStyle, text: ' viewportBoundaries'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'left'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '-'),
- TextSpan(style: codeStyle.baseStyle, text: 'scale '),
- TextSpan(style: codeStyle.punctuationStyle, text: '*'),
- TextSpan(style: codeStyle.baseStyle, text: ' viewportBoundaries'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'top'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Matrix4'),
- TextSpan(style: codeStyle.baseStyle, text: ' nextMatrix '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' matrix'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'clone'),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '..'),
- TextSpan(style: codeStyle.baseStyle, text: 'translate'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a translation'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dx'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a translation'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dy'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Vector3'),
- TextSpan(style: codeStyle.baseStyle, text: ' nextTranslationVector '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' nextMatrix'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'getTranslation'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Offset'),
- TextSpan(style: codeStyle.baseStyle, text: ' nextTranslation '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Offset'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a nextTranslationVector'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'x'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a nextTranslationVector'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'y'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'bool'),
- TextSpan(style: codeStyle.baseStyle, text: ' inBoundaries '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' translationBoundaries'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'contains'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Offset'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'nextTranslation'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dx'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' nextTranslation'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dy'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'if'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '(!'),
- TextSpan(style: codeStyle.baseStyle, text: 'inBoundaries'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// TODO(justinmc): Instead of canceling translation when it goes out of'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// bounds, stop translation at boundary.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' matrix'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' nextMatrix'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Return a new matrix representing the given matrix after applying the given'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.commentStyle, text: '// scale transform.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Matrix4'),
- TextSpan(style: codeStyle.baseStyle, text: ' matrixScale'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'Matrix4'),
- TextSpan(style: codeStyle.baseStyle, text: ' matrix'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'double'),
- TextSpan(style: codeStyle.baseStyle, text: ' scale'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'if'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'disableScale '),
- TextSpan(style: codeStyle.punctuationStyle, text: '||'),
- TextSpan(style: codeStyle.baseStyle, text: ' scale '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '1'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' matrix'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'assert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'scale '),
- TextSpan(style: codeStyle.punctuationStyle, text: '!='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Don\u0027t allow a scale that moves the viewport outside of _boundaryRect.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Offset'),
- TextSpan(style: codeStyle.baseStyle, text: ' tl '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' fromViewport'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Offset'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.numberStyle, text: '0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '0'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: ' _transform'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Offset'),
- TextSpan(style: codeStyle.baseStyle, text: ' tr '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' fromViewport'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'Offset'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'size'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'width'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '0'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: ' _transform'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Offset'),
- TextSpan(style: codeStyle.baseStyle, text: ' bl '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' fromViewport'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'Offset'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.numberStyle, text: '0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'size'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'height'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: ' _transform'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Offset'),
- TextSpan(style: codeStyle.baseStyle, text: ' br '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' fromViewport'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Offset'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'size'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'width'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'size'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'height'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _transform'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'if'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '(!'),
- TextSpan(style: codeStyle.baseStyle, text: '_boundaryRect'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'contains'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'tl'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '||'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '!'),
- TextSpan(style: codeStyle.baseStyle, text: '_boundaryRect'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'contains'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'tr'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '||'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '!'),
- TextSpan(style: codeStyle.baseStyle, text: '_boundaryRect'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'contains'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'bl'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '||'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '!'),
- TextSpan(style: codeStyle.baseStyle, text: '_boundaryRect'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'contains'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'br'),
- TextSpan(style: codeStyle.punctuationStyle, text: '))'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' matrix'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Don\u0027t allow a scale that results in an overall scale beyond min/max'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.commentStyle, text: '// scale.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'double'),
- TextSpan(style: codeStyle.baseStyle, text: ' currentScale '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' _transform'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'getMaxScaleOnAxis'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'double'),
- TextSpan(style: codeStyle.baseStyle, text: ' totalScale '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' currentScale '),
- TextSpan(style: codeStyle.punctuationStyle, text: '*'),
- TextSpan(style: codeStyle.baseStyle, text: ' scale'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'double'),
- TextSpan(style: codeStyle.baseStyle, text: ' clampedTotalScale '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' totalScale'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'clamp'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'minScale'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'maxScale'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'as'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'double'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'double'),
- TextSpan(style: codeStyle.baseStyle, text: ' clampedScale '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' clampedTotalScale '),
- TextSpan(style: codeStyle.punctuationStyle, text: '/'),
- TextSpan(style: codeStyle.baseStyle, text: ' currentScale'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' matrix'),
- TextSpan(style: codeStyle.punctuationStyle, text: '..'),
- TextSpan(style: codeStyle.baseStyle, text: 'scale'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'clampedScale'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Return a new matrix representing the given matrix after applying the given'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.commentStyle, text: '// rotation transform.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Rotating the scene cannot cause the viewport to view beyond _boundaryRect.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Matrix4'),
- TextSpan(style: codeStyle.baseStyle, text: ' matrixRotate'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'Matrix4'),
- TextSpan(style: codeStyle.baseStyle, text: ' matrix'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'double'),
- TextSpan(style: codeStyle.baseStyle, text: ' rotation'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Offset'),
- TextSpan(style: codeStyle.baseStyle, text: ' focalPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'if'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'disableRotation '),
- TextSpan(style: codeStyle.punctuationStyle, text: '||'),
- TextSpan(style: codeStyle.baseStyle, text: ' rotation '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' matrix'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Offset'),
- TextSpan(style: codeStyle.baseStyle, text: ' focalPointScene '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' fromViewport'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'focalPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' matrix'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' matrix\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '..'),
- TextSpan(style: codeStyle.baseStyle, text: 'translate'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'focalPointScene'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dx'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' focalPointScene'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dy'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '..'),
- TextSpan(style: codeStyle.baseStyle, text: 'rotateZ'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(-'),
- TextSpan(style: codeStyle.baseStyle, text: 'rotation'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '..'),
- TextSpan(style: codeStyle.baseStyle, text: 'translate'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(-'),
- TextSpan(style: codeStyle.baseStyle, text: 'focalPointScene'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dx'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '-'),
- TextSpan(style: codeStyle.baseStyle, text: 'focalPointScene'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dy'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Handle the start of a gesture of _GestureType.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'void'),
- TextSpan(style: codeStyle.baseStyle, text: ' _onScaleStart'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'ScaleStartDetails'),
- TextSpan(style: codeStyle.baseStyle, text: ' details'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'if'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onScaleStart '),
- TextSpan(style: codeStyle.punctuationStyle, text: '!='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onScaleStart'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'details'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'if'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '_controller'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'isAnimating'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _controller'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'stop'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _controller'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'reset'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _animation'),
- TextSpan(style: codeStyle.punctuationStyle, text: '?.'),
- TextSpan(style: codeStyle.baseStyle, text: 'removeListener'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '_onAnimate'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _animation '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'if'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '_controllerReset'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'isAnimating'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a _animateResetStop'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a\u000a gestureType '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a setState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _scaleStart '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' _transform'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'getMaxScaleOnAxis'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a _translateFromScene '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' fromViewport'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'details'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'focalPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' _transform'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _rotationStart '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' _currentRotation'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '});'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Handle an update to an ongoing gesture of _GestureType.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'void'),
- TextSpan(style: codeStyle.baseStyle, text: ' _onScaleUpdate'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'ScaleUpdateDetails'),
- TextSpan(style: codeStyle.baseStyle, text: ' details'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'double'),
- TextSpan(style: codeStyle.baseStyle, text: ' scale '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' _transform'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'getMaxScaleOnAxis'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'if'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onScaleUpdate '),
- TextSpan(style: codeStyle.punctuationStyle, text: '!='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onScaleUpdate'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'ScaleUpdateDetails'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a focalPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' fromViewport'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'details'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'focalPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' _transform'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a scale'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' details'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'scale'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a rotation'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' details'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'rotation'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '));'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Offset'),
- TextSpan(style: codeStyle.baseStyle, text: ' focalPointScene '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' fromViewport'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a details'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'focalPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _transform'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'if'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'gestureType '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Decide which type of gesture this is by comparing the amount of scale'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// and rotation in the gesture, if any. Scale starts at 1 and rotation'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// starts at 0. Translate will have 0 scale and 0 rotation because it uses'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.commentStyle, text: '// only one finger.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'if'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '(('),
- TextSpan(style: codeStyle.baseStyle, text: 'details'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'scale '),
- TextSpan(style: codeStyle.punctuationStyle, text: '-'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '1'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'abs'),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '>'),
- TextSpan(style: codeStyle.baseStyle, text: ' details'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'rotation'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'abs'),
- TextSpan(style: codeStyle.punctuationStyle, text: '())'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a gestureType '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_GestureType'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'scale'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'else'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'if'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'details'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'rotation '),
- TextSpan(style: codeStyle.punctuationStyle, text: '!='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a gestureType '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_GestureType'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'rotate'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'else'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a gestureType '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_GestureType'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'translate'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a setState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'if'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'gestureType '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_GestureType'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'scale '),
- TextSpan(style: codeStyle.punctuationStyle, text: '&&'),
- TextSpan(style: codeStyle.baseStyle, text: ' _scaleStart '),
- TextSpan(style: codeStyle.punctuationStyle, text: '!='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// details.scale gives us the amount to change the scale as of the'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// start of this gesture, so calculate the amount to scale as of the'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// previous call to _onScaleUpdate.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'double'),
- TextSpan(style: codeStyle.baseStyle, text: ' desiredScale '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' _scaleStart '),
- TextSpan(style: codeStyle.punctuationStyle, text: '*'),
- TextSpan(style: codeStyle.baseStyle, text: ' details'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'scale'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'double'),
- TextSpan(style: codeStyle.baseStyle, text: ' scaleChange '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' desiredScale '),
- TextSpan(style: codeStyle.punctuationStyle, text: '/'),
- TextSpan(style: codeStyle.baseStyle, text: ' scale'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _transform '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' matrixScale'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '_transform'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' scaleChange'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a scale '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' _transform'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'getMaxScaleOnAxis'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// While scaling, translate such that the user\u0027s two fingers stay on the'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// same places in the scene. That means that the focal point of the'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// scale should be on the same place in the scene before and after the'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.commentStyle, text: '// scale.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Offset'),
- TextSpan(style: codeStyle.baseStyle, text: ' focalPointSceneNext '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' fromViewport'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a details'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'focalPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _transform'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _transform '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a matrixTranslate'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '_transform'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' focalPointSceneNext '),
- TextSpan(style: codeStyle.punctuationStyle, text: '-'),
- TextSpan(style: codeStyle.baseStyle, text: ' focalPointScene'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'else'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'if'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'gestureType '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_GestureType'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'rotate '),
- TextSpan(style: codeStyle.punctuationStyle, text: '&&'),
- TextSpan(style: codeStyle.baseStyle, text: ' details'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'rotation '),
- TextSpan(style: codeStyle.punctuationStyle, text: '!='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'double'),
- TextSpan(style: codeStyle.baseStyle, text: ' desiredRotation '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' _rotationStart '),
- TextSpan(style: codeStyle.punctuationStyle, text: '+'),
- TextSpan(style: codeStyle.baseStyle, text: ' details'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'rotation'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _transform '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' matrixRotate'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a _transform'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' _currentRotation '),
- TextSpan(style: codeStyle.punctuationStyle, text: '-'),
- TextSpan(style: codeStyle.baseStyle, text: ' desiredRotation'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' details'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'focalPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a _currentRotation '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' desiredRotation'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'else'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'if'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '_translateFromScene '),
- TextSpan(style: codeStyle.punctuationStyle, text: '!='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '&&'),
- TextSpan(style: codeStyle.baseStyle, text: ' details'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'scale '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '1'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Translate so that the same point in the scene is underneath the'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// focal point before and after the movement.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Offset'),
- TextSpan(style: codeStyle.baseStyle, text: ' translationChange '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' focalPointScene '),
- TextSpan(style: codeStyle.punctuationStyle, text: '-'),
- TextSpan(style: codeStyle.baseStyle, text: ' _translateFromScene'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _transform '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' matrixTranslate'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '_transform'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' translationChange'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a _translateFromScene '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' fromViewport'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'details'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'focalPoint'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' _transform'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '});'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Handle the end of a gesture of _GestureType.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'void'),
- TextSpan(style: codeStyle.baseStyle, text: ' _onScaleEnd'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'ScaleEndDetails'),
- TextSpan(style: codeStyle.baseStyle, text: ' details'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'if'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onScaleEnd '),
- TextSpan(style: codeStyle.punctuationStyle, text: '!='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onScaleEnd'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'details'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a setState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _scaleStart '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _rotationStart '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a _translateFromScene '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '});'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a _animation'),
- TextSpan(style: codeStyle.punctuationStyle, text: '?.'),
- TextSpan(style: codeStyle.baseStyle, text: 'removeListener'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '_onAnimate'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _controller'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'reset'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// If the scale ended with velocity, animate inertial movement'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'double'),
- TextSpan(style: codeStyle.baseStyle, text: ' velocityTotal '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' details'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'velocity'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'pixelsPerSecond'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dx'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'abs'),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '+'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a details'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'velocity'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'pixelsPerSecond'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dy'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'abs'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'if'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'velocityTotal '),
- TextSpan(style: codeStyle.punctuationStyle, text: '=='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '0'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Vector3'),
- TextSpan(style: codeStyle.baseStyle, text: ' translationVector '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' _transform'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'getTranslation'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Offset'),
- TextSpan(style: codeStyle.baseStyle, text: ' translation '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Offset'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'translationVector'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'x'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' translationVector'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'y'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'InertialMotion'),
- TextSpan(style: codeStyle.baseStyle, text: ' inertialMotion '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'InertialMotion'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'details'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'velocity'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' translation'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _animation '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Tween'),
- TextSpan(style: codeStyle.punctuationStyle, text: '<'),
- TextSpan(style: codeStyle.classStyle, text: 'Offset'),
- TextSpan(style: codeStyle.punctuationStyle, text: '>('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a begin'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' translation'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a end'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' inertialMotion'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'finalPosition'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'animate'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '_controller'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _controller'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'duration '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Duration'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'milliseconds'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' inertialMotion'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'duration'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'toInt'),
- TextSpan(style: codeStyle.punctuationStyle, text: '());'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _animation'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'addListener'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '_onAnimate'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _controller'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'fling'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Handle inertia drag animation.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'void'),
- TextSpan(style: codeStyle.baseStyle, text: ' _onAnimate'),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a setState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Translate _transform such that the resulting translation is'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.commentStyle, text: '// _animation.value.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Vector3'),
- TextSpan(style: codeStyle.baseStyle, text: ' translationVector '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' _transform'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'getTranslation'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Offset'),
- TextSpan(style: codeStyle.baseStyle, text: ' translation '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Offset'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'translationVector'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'x'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' translationVector'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'y'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Offset'),
- TextSpan(style: codeStyle.baseStyle, text: ' translationScene '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' fromViewport'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'translation'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' _transform'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Offset'),
- TextSpan(style: codeStyle.baseStyle, text: ' animationScene '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' fromViewport'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '_animation'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' _transform'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Offset'),
- TextSpan(style: codeStyle.baseStyle, text: ' translationChangeScene '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' animationScene '),
- TextSpan(style: codeStyle.punctuationStyle, text: '-'),
- TextSpan(style: codeStyle.baseStyle, text: ' translationScene'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _transform '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' matrixTranslate'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '_transform'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' translationChangeScene'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '});'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'if'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '(!'),
- TextSpan(style: codeStyle.baseStyle, text: '_controller'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'isAnimating'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _animation'),
- TextSpan(style: codeStyle.punctuationStyle, text: '?.'),
- TextSpan(style: codeStyle.baseStyle, text: 'removeListener'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '_onAnimate'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _animation '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _controller'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'reset'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Handle reset to home transform animation.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'void'),
- TextSpan(style: codeStyle.baseStyle, text: ' _onAnimateReset'),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a setState'),
- TextSpan(style: codeStyle.punctuationStyle, text: '(()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _transform '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' _animationReset'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'value'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '});'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'if'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '(!'),
- TextSpan(style: codeStyle.baseStyle, text: '_controllerReset'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'isAnimating'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _animationReset'),
- TextSpan(style: codeStyle.punctuationStyle, text: '?.'),
- TextSpan(style: codeStyle.baseStyle, text: 'removeListener'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '_onAnimateReset'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a _animationReset '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a _controllerReset'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'reset'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onResetEnd'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Initialize the reset to home transform animation.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'void'),
- TextSpan(style: codeStyle.baseStyle, text: ' _animateResetInitialize'),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _controllerReset'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'reset'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _animationReset '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Matrix4Tween'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a begin'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _transform'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a end'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' _initialTransform'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'animate'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '_controllerReset'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _controllerReset'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'duration '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Duration'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'milliseconds'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '400'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _animationReset'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'addListener'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '_onAnimateReset'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _controllerReset'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'forward'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Stop a running reset to home transform animation.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'void'),
- TextSpan(style: codeStyle.baseStyle, text: ' _animateResetStop'),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _controllerReset'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'stop'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _animationReset'),
- TextSpan(style: codeStyle.punctuationStyle, text: '?.'),
- TextSpan(style: codeStyle.baseStyle, text: 'removeListener'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '_onAnimateReset'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _animationReset '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _controllerReset'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'reset'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a widget'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'onResetEnd'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'void'),
- TextSpan(style: codeStyle.baseStyle, text: ' dispose'),
- TextSpan(style: codeStyle.punctuationStyle, text: '()'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _controller'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dispose'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a _controllerReset'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dispose'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'super'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'dispose'),
- TextSpan(style: codeStyle.punctuationStyle, text: '();'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- ]);
- }
-
- static TextSpan typographyDemo(BuildContext context) {
- final CodeStyle codeStyle = CodeStyle.of(context);
- return TextSpan(children: [
- TextSpan(
- style: codeStyle.commentStyle,
- text: '// Copyright 2019 The Flutter team. All rights reserved.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle,
- text:
- '// Use of this source code is governed by a BSD-style license that can be'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(
- style: codeStyle.commentStyle, text: '// found in the LICENSE file.'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:flutter/material.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'import'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027package:gallery/l10n/gallery_localizations.dart\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_TextStyleItem'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'StatelessWidget'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: '_TextStyleItem'),
- TextSpan(style: codeStyle.punctuationStyle, text: '({'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Key'),
- TextSpan(style: codeStyle.baseStyle, text: ' key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@required'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'name'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@required'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'style'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@required'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'this'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'text'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '})'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'assert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'name '),
- TextSpan(style: codeStyle.punctuationStyle, text: '!='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'assert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'style '),
- TextSpan(style: codeStyle.punctuationStyle, text: '!='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'assert'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'text '),
- TextSpan(style: codeStyle.punctuationStyle, text: '!='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'null'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'super'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' key'),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.baseStyle, text: ' name'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'TextStyle'),
- TextSpan(style: codeStyle.baseStyle, text: ' style'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'String'),
- TextSpan(style: codeStyle.baseStyle, text: ' text'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' build'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Padding'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a padding'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'const'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'EdgeInsets'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'symmetric'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'horizontal'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '8'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' vertical'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '16'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Row'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle, text: '\u000a crossAxisAlignment'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'CrossAxisAlignment'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'center'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a children'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'SizedBox'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a width'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.numberStyle, text: '72'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'name'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' style'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Theme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'textTheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'caption'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Expanded'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'text'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: ' style'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' style'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '],'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- TextSpan(style: codeStyle.keywordStyle, text: 'class'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'TypographyDemo'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'StatelessWidget'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: '@override'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: 'Widget'),
- TextSpan(style: codeStyle.baseStyle, text: ' build'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
- TextSpan(style: codeStyle.baseStyle, text: ' context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '{'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' textTheme '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Theme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'textTheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: ';'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'final'),
- TextSpan(style: codeStyle.baseStyle, text: ' styleItems '),
- TextSpan(style: codeStyle.punctuationStyle, text: '='),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.punctuationStyle, text: '['),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_TextStyleItem'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a name'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.stringStyle, text: '\u0027Display 4\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a style'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' textTheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'display4'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a text'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.stringStyle, text: '\u0027Light 96sp\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_TextStyleItem'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a name'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.stringStyle, text: '\u0027Display 3\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a style'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' textTheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'display3'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a text'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.stringStyle, text: '\u0027Light 60sp\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_TextStyleItem'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a name'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.stringStyle, text: '\u0027Display 2\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a style'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' textTheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'display2'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a text'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.stringStyle, text: '\u0027Regular 48sp\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_TextStyleItem'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a name'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.stringStyle, text: '\u0027Display 1\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a style'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' textTheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'display1'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a text'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.stringStyle, text: '\u0027Regular 34sp\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_TextStyleItem'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a name'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.stringStyle, text: '\u0027Headline\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a style'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' textTheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'headline'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a text'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.stringStyle, text: '\u0027Regular 24sp\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_TextStyleItem'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a name'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.stringStyle, text: '\u0027Title\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a style'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' textTheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a text'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.stringStyle, text: '\u0027Medium 20sp\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_TextStyleItem'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a name'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.stringStyle, text: '\u0027Subhead\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a style'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' textTheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'subhead'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a text'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.stringStyle, text: '\u0027Regular 16sp\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_TextStyleItem'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a name'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.stringStyle, text: '\u0027Subtitle\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a style'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' textTheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'subtitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a text'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.stringStyle, text: '\u0027Medium 14sp\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_TextStyleItem'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a name'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.stringStyle, text: '\u0027Body 1\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a style'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' textTheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'body1'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a text'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.stringStyle, text: '\u0027Regular 16sp\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_TextStyleItem'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a name'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.stringStyle, text: '\u0027Body 2\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a style'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' textTheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'body2'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a text'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.stringStyle, text: '\u0027Regular 14sp\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_TextStyleItem'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a name'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.stringStyle, text: '\u0027Button\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a style'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' textTheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'button'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a text'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027MEDIUM (ALL CAPS) 14sp\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_TextStyleItem'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a name'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.stringStyle, text: '\u0027Caption\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a style'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' textTheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'caption'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a text'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.stringStyle, text: '\u0027Regular 12sp\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.classStyle, text: '_TextStyleItem'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a name'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.stringStyle, text: '\u0027Overline\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a style'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' textTheme'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'overline'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a text'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(
- style: codeStyle.stringStyle,
- text: '\u0027REGULAR (ALL CAPS) 10sp\u0027'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '];'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
- TextSpan(style: codeStyle.keywordStyle, text: 'return'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Scaffold'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a appBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'AppBar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(
- style: codeStyle.baseStyle,
- text: '\u000a automaticallyImplyLeading'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.keywordStyle, text: 'false'),
- TextSpan(style: codeStyle.punctuationStyle, text: ','),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a title'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Text'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
- TextSpan(style: codeStyle.punctuationStyle, text: '.'),
- TextSpan(style: codeStyle.baseStyle, text: 'of'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'context'),
- TextSpan(style: codeStyle.punctuationStyle, text: ').'),
- TextSpan(style: codeStyle.baseStyle, text: 'demoTypographyTitle'),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a body'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'Scrollbar'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'child'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' '),
- TextSpan(style: codeStyle.classStyle, text: 'ListView'),
- TextSpan(style: codeStyle.punctuationStyle, text: '('),
- TextSpan(style: codeStyle.baseStyle, text: 'children'),
- TextSpan(style: codeStyle.punctuationStyle, text: ':'),
- TextSpan(style: codeStyle.baseStyle, text: ' styleItems'),
- TextSpan(style: codeStyle.punctuationStyle, text: ')),'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: ');'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
- TextSpan(style: codeStyle.punctuationStyle, text: '}'),
- TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
- ]);
- }
-}
diff --git a/gallery/lib/codeviewer/code_style.dart b/gallery/lib/codeviewer/code_style.dart
deleted file mode 100644
index 24facf03f..000000000
--- a/gallery/lib/codeviewer/code_style.dart
+++ /dev/null
@@ -1,43 +0,0 @@
-// Copyright 2019 The Flutter team. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-import 'package:flutter/material.dart';
-
-class CodeStyle extends InheritedWidget {
- const CodeStyle({
- this.baseStyle,
- this.numberStyle,
- this.commentStyle,
- this.keywordStyle,
- this.stringStyle,
- this.punctuationStyle,
- this.classStyle,
- this.constantStyle,
- @required Widget child,
- }) : super(child: child);
-
- final TextStyle baseStyle;
- final TextStyle numberStyle;
- final TextStyle commentStyle;
- final TextStyle keywordStyle;
- final TextStyle stringStyle;
- final TextStyle punctuationStyle;
- final TextStyle classStyle;
- final TextStyle constantStyle;
-
- static CodeStyle of(BuildContext context) {
- return context.dependOnInheritedWidgetOfExactType();
- }
-
- @override
- bool updateShouldNotify(CodeStyle oldWidget) =>
- oldWidget.baseStyle != baseStyle ||
- oldWidget.numberStyle != numberStyle ||
- oldWidget.commentStyle != commentStyle ||
- oldWidget.keywordStyle != keywordStyle ||
- oldWidget.stringStyle != stringStyle ||
- oldWidget.punctuationStyle != punctuationStyle ||
- oldWidget.classStyle != classStyle ||
- oldWidget.constantStyle != constantStyle;
-}
diff --git a/gallery/lib/constants.dart b/gallery/lib/constants.dart
deleted file mode 100644
index ea962bfe6..000000000
--- a/gallery/lib/constants.dart
+++ /dev/null
@@ -1,23 +0,0 @@
-// Copyright 2019 The Flutter team. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// Only put constants shared between files here.
-
-// height of the 'Gallery' header
-const double galleryHeaderHeight = 64;
-
-// The font size delta for display1 font.
-const double desktopDisplay1FontDelta = 16;
-
-// The width of the settingsDesktop.
-const double desktopSettingsWidth = 520;
-
-// Sentinel value for the system text scale factor option.
-const double systemTextScaleFactorOption = -1;
-
-// The splash page animation duration.
-const splashPageAnimationDurationInMilliseconds = 300;
-
-// The desktop top padding for a page's first header (e.g. Gallery, Settings)
-const firstHeaderDesktopTopPadding = 5.0;
diff --git a/gallery/lib/data/demos.dart b/gallery/lib/data/demos.dart
deleted file mode 100644
index 41d162bed..000000000
--- a/gallery/lib/data/demos.dart
+++ /dev/null
@@ -1,847 +0,0 @@
-// Copyright 2019 The Flutter team. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-import 'package:flutter/cupertino.dart';
-import 'package:flutter/material.dart';
-import 'package:gallery/codeviewer/code_displayer.dart';
-import 'package:gallery/codeviewer/code_segments.dart';
-import 'package:gallery/data/gallery_options.dart';
-import 'package:gallery/data/icons.dart';
-import 'package:gallery/demos/cupertino/cupertino_activity_indicator_demo.dart';
-import 'package:gallery/demos/cupertino/cupertino_alert_demo.dart';
-import 'package:gallery/demos/cupertino/cupertino_button_demo.dart';
-import 'package:gallery/demos/cupertino/cupertino_navigation_bar_demo.dart';
-import 'package:gallery/demos/cupertino/cupertino_picker_demo.dart';
-import 'package:gallery/demos/cupertino/cupertino_refresh_demo.dart';
-import 'package:gallery/demos/cupertino/cupertino_segmented_control_demo.dart';
-import 'package:gallery/demos/cupertino/cupertino_slider_demo.dart';
-import 'package:gallery/demos/cupertino/cupertino_switch_demo.dart';
-import 'package:gallery/demos/cupertino/cupertino_tab_bar_demo.dart';
-import 'package:gallery/demos/cupertino/cupertino_text_field_demo.dart';
-import 'package:gallery/demos/material/banner_demo.dart';
-import 'package:gallery/demos/material/bottom_app_bar_demo.dart';
-import 'package:gallery/demos/material/bottom_navigation_demo.dart';
-import 'package:gallery/demos/material/bottom_sheet_demo.dart';
-import 'package:gallery/demos/material/button_demo.dart';
-import 'package:gallery/demos/material/cards_demo.dart';
-import 'package:gallery/demos/material/chip_demo.dart';
-import 'package:gallery/demos/material/data_table_demo.dart';
-import 'package:gallery/demos/material/dialog_demo.dart';
-import 'package:gallery/demos/material/grid_list_demo.dart';
-import 'package:gallery/demos/material/list_demo.dart';
-import 'package:gallery/demos/material/menu_demo.dart';
-import 'package:gallery/demos/material/picker_demo.dart';
-import 'package:gallery/demos/material/progress_indicator_demo.dart';
-import 'package:gallery/demos/material/selection_controls_demo.dart';
-import 'package:gallery/demos/material/sliders_demo.dart';
-import 'package:gallery/demos/material/snackbar_demo.dart';
-import 'package:gallery/demos/material/tabs_demo.dart';
-import 'package:gallery/demos/material/text_field_demo.dart';
-import 'package:gallery/demos/material/tooltip_demo.dart';
-import 'package:gallery/demos/reference/colors_demo.dart';
-import 'package:gallery/demos/reference/transformations_demo.dart';
-import 'package:gallery/demos/reference/typography_demo.dart';
-import 'package:gallery/l10n/gallery_localizations.dart';
-import 'package:gallery/themes/material_demo_theme_data.dart';
-
-const _docsBaseUrl = 'https://api.flutter.dev/flutter';
-
-class GalleryDemo {
- GalleryDemo({
- @required this.title,
- @required this.icon,
- @required this.subtitle,
- @required this.configurations,
- }) : assert(title != null),
- assert(icon != null),
- assert(configurations != null && configurations.isNotEmpty);
-
- final String title;
- final IconData icon;
- final String subtitle;
- final List configurations;
-}
-
-class GalleryDemoConfiguration {
- GalleryDemoConfiguration({
- this.title,
- this.description,
- this.documentationUrl,
- this.buildRoute,
- this.code,
- });
-
- final String title;
- final String description;
- final String documentationUrl;
- final WidgetBuilder buildRoute;
- final CodeDisplayer code;
-}
-
-List materialDemos(BuildContext context) {
- final localizations = GalleryLocalizations.of(context);
- return [
- GalleryDemo(
- title: localizations.demoBannerTitle,
- icon: GalleryIcons.listsLeaveBehind,
- subtitle: localizations.demoBannerSubtitle,
- configurations: [
- GalleryDemoConfiguration(
- title: localizations.demoBannerTitle,
- description: localizations.demoBannerDescription,
- documentationUrl: '$_docsBaseUrl/material/MaterialBanner-class.html',
- buildRoute: (_) => BannerDemo(),
- code: CodeSegments.bannerDemo,
- ),
- ],
- ),
- GalleryDemo(
- title: localizations.demoBottomAppBarTitle,
- icon: GalleryIcons.bottomAppBar,
- subtitle: localizations.demoBottomAppBarSubtitle,
- configurations: [
- GalleryDemoConfiguration(
- title: localizations.demoBottomAppBarTitle,
- description: localizations.demoBottomAppBarDescription,
- documentationUrl: '$_docsBaseUrl/material/BottomAppBar-class.html',
- buildRoute: (_) => BottomAppBarDemo(),
- code: CodeSegments.bottomAppBarDemo,
- ),
- ],
- ),
- GalleryDemo(
- title: localizations.demoBottomNavigationTitle,
- icon: GalleryIcons.bottomNavigation,
- subtitle: localizations.demoBottomNavigationSubtitle,
- configurations: [
- GalleryDemoConfiguration(
- title: localizations.demoBottomNavigationPersistentLabels,
- description: localizations.demoBottomNavigationDescription,
- documentationUrl:
- '$_docsBaseUrl/material/BottomNavigationBar-class.html',
- buildRoute: (_) =>
- BottomNavigationDemo(type: BottomNavigationDemoType.withLabels),
- code: CodeSegments.bottomNavigationDemo,
- ),
- GalleryDemoConfiguration(
- title: localizations.demoBottomNavigationSelectedLabel,
- description: localizations.demoBottomNavigationDescription,
- documentationUrl:
- '$_docsBaseUrl/material/BottomNavigationBar-class.html',
- buildRoute: (_) => BottomNavigationDemo(
- type: BottomNavigationDemoType.withoutLabels),
- code: CodeSegments.bottomNavigationDemo,
- ),
- ],
- ),
- GalleryDemo(
- title: localizations.demoBottomSheetTitle,
- icon: GalleryIcons.bottomSheets,
- subtitle: localizations.demoBottomSheetSubtitle,
- configurations: [
- GalleryDemoConfiguration(
- title: localizations.demoBottomSheetPersistentTitle,
- description: localizations.demoBottomSheetPersistentDescription,
- documentationUrl: '$_docsBaseUrl/material/BottomSheet-class.html',
- buildRoute: (_) =>
- BottomSheetDemo(type: BottomSheetDemoType.persistent),
- code: CodeSegments.bottomSheetDemoPersistent,
- ),
- GalleryDemoConfiguration(
- title: localizations.demoBottomSheetModalTitle,
- description: localizations.demoBottomSheetModalDescription,
- documentationUrl: '$_docsBaseUrl/material/BottomSheet-class.html',
- buildRoute: (_) => BottomSheetDemo(type: BottomSheetDemoType.modal),
- code: CodeSegments.bottomSheetDemoModal,
- ),
- ],
- ),
- GalleryDemo(
- title: localizations.demoButtonTitle,
- icon: GalleryIcons.genericButtons,
- subtitle: localizations.demoButtonSubtitle,
- configurations: [
- GalleryDemoConfiguration(
- title: localizations.demoFlatButtonTitle,
- description: localizations.demoFlatButtonDescription,
- documentationUrl: '$_docsBaseUrl/material/FlatButton-class.html',
- buildRoute: (_) => ButtonDemo(type: ButtonDemoType.flat),
- code: CodeSegments.buttonDemoFlat,
- ),
- GalleryDemoConfiguration(
- title: localizations.demoRaisedButtonTitle,
- description: localizations.demoRaisedButtonDescription,
- documentationUrl: '$_docsBaseUrl/material/RaisedButton-class.html',
- buildRoute: (_) => ButtonDemo(type: ButtonDemoType.raised),
- code: CodeSegments.buttonDemoRaised,
- ),
- GalleryDemoConfiguration(
- title: localizations.demoOutlineButtonTitle,
- description: localizations.demoOutlineButtonDescription,
- documentationUrl: '$_docsBaseUrl/material/OutlineButton-class.html',
- buildRoute: (_) => ButtonDemo(type: ButtonDemoType.outline),
- code: CodeSegments.buttonDemoOutline,
- ),
- GalleryDemoConfiguration(
- title: localizations.demoToggleButtonTitle,
- description: localizations.demoToggleButtonDescription,
- documentationUrl: '$_docsBaseUrl/material/ToggleButtons-class.html',
- buildRoute: (_) => ButtonDemo(type: ButtonDemoType.toggle),
- code: CodeSegments.buttonDemoToggle,
- ),
- GalleryDemoConfiguration(
- title: localizations.demoFloatingButtonTitle,
- description: localizations.demoFloatingButtonDescription,
- documentationUrl:
- '$_docsBaseUrl/material/FloatingActionButton-class.html',
- buildRoute: (_) => ButtonDemo(type: ButtonDemoType.floating),
- code: CodeSegments.buttonDemoFloating,
- ),
- ],
- ),
- GalleryDemo(
- title: GalleryLocalizations.of(context).demoCardTitle,
- icon: GalleryIcons.cards,
- subtitle: GalleryLocalizations.of(context).demoCardSubtitle,
- configurations: [
- GalleryDemoConfiguration(
- title: GalleryLocalizations.of(context).demoCardTitle,
- description: GalleryLocalizations.of(context).demoCardDescription,
- documentationUrl: '$_docsBaseUrl/material/Card-class.html',
- buildRoute: (context) => CardsDemo(),
- code: CodeSegments.cardsDemo,
- ),
- ],
- ),
- GalleryDemo(
- title: localizations.demoChipTitle,
- icon: GalleryIcons.chips,
- subtitle: localizations.demoChipSubtitle,
- configurations: [
- GalleryDemoConfiguration(
- title: localizations.demoActionChipTitle,
- description: localizations.demoActionChipDescription,
- documentationUrl: '$_docsBaseUrl/material/ActionChip-class.html',
- buildRoute: (_) => ChipDemo(type: ChipDemoType.action),
- code: CodeSegments.chipDemoAction,
- ),
- GalleryDemoConfiguration(
- title: localizations.demoChoiceChipTitle,
- description: localizations.demoChoiceChipDescription,
- documentationUrl: '$_docsBaseUrl/material/ChoiceChip-class.html',
- buildRoute: (_) => ChipDemo(type: ChipDemoType.choice),
- code: CodeSegments.chipDemoChoice,
- ),
- GalleryDemoConfiguration(
- title: localizations.demoFilterChipTitle,
- description: localizations.demoFilterChipDescription,
- documentationUrl: '$_docsBaseUrl/material/FilterChip-class.html',
- buildRoute: (_) => ChipDemo(type: ChipDemoType.filter),
- code: CodeSegments.chipDemoFilter,
- ),
- GalleryDemoConfiguration(
- title: localizations.demoInputChipTitle,
- description: localizations.demoInputChipDescription,
- documentationUrl: '$_docsBaseUrl/material/InputChip-class.html',
- buildRoute: (_) => ChipDemo(type: ChipDemoType.input),
- code: CodeSegments.chipDemoInput,
- ),
- ],
- ),
- GalleryDemo(
- title: localizations.demoDataTableTitle,
- icon: GalleryIcons.dataTable,
- subtitle: localizations.demoDataTableSubtitle,
- configurations: [
- GalleryDemoConfiguration(
- title: localizations.demoDataTableTitle,
- description: localizations.demoDataTableDescription,
- documentationUrl: '$_docsBaseUrl/material/DataTable-class.html',
- buildRoute: (_) => DataTableDemo(),
- code: CodeSegments.dataTableDemo,
- ),
- ],
- ),
- GalleryDemo(
- title: localizations.demoDialogTitle,
- icon: GalleryIcons.dialogs,
- subtitle: localizations.demoDialogSubtitle,
- configurations: [
- GalleryDemoConfiguration(
- title: localizations.demoAlertDialogTitle,
- description: localizations.demoAlertDialogDescription,
- documentationUrl: '$_docsBaseUrl/material/AlertDialog-class.html',
- buildRoute: (_) => DialogDemo(type: DialogDemoType.alert),
- code: CodeSegments.dialogDemo,
- ),
- GalleryDemoConfiguration(
- title: localizations.demoAlertTitleDialogTitle,
- description: localizations.demoAlertDialogDescription,
- documentationUrl: '$_docsBaseUrl/material/AlertDialog-class.html',
- buildRoute: (_) => DialogDemo(type: DialogDemoType.alertTitle),
- code: CodeSegments.dialogDemo,
- ),
- GalleryDemoConfiguration(
- title: localizations.demoSimpleDialogTitle,
- description: localizations.demoSimpleDialogDescription,
- documentationUrl: '$_docsBaseUrl/material/SimpleDialog-class.html',
- buildRoute: (_) => DialogDemo(type: DialogDemoType.simple),
- code: CodeSegments.dialogDemo,
- ),
- GalleryDemoConfiguration(
- title: localizations.demoFullscreenDialogTitle,
- description: localizations.demoFullscreenDialogDescription,
- documentationUrl:
- '$_docsBaseUrl/widgets/PageRoute/fullscreenDialog.html',
- buildRoute: (_) => DialogDemo(type: DialogDemoType.fullscreen),
- code: CodeSegments.dialogDemo,
- ),
- ],
- ),
- GalleryDemo(
- title: localizations.demoGridListsTitle,
- icon: GalleryIcons.gridOn,
- subtitle: localizations.demoGridListsSubtitle,
- configurations: [
- GalleryDemoConfiguration(
- title: localizations.demoGridListsImageOnlyTitle,
- description: localizations.demoGridListsDescription,
- documentationUrl: '$_docsBaseUrl/widgets/GridView-class.html',
- buildRoute: (context) =>
- GridListDemo(type: GridListDemoType.imageOnly),
- code: CodeSegments.gridListsDemo,
- ),
- GalleryDemoConfiguration(
- title: localizations.demoGridListsHeaderTitle,
- description: localizations.demoGridListsDescription,
- documentationUrl: '$_docsBaseUrl/widgets/GridView-class.html',
- buildRoute: (context) => GridListDemo(type: GridListDemoType.header),
- code: CodeSegments.gridListsDemo,
- ),
- GalleryDemoConfiguration(
- title: localizations.demoGridListsFooterTitle,
- description: localizations.demoGridListsDescription,
- documentationUrl: '$_docsBaseUrl/widgets/GridView-class.html',
- buildRoute: (context) => GridListDemo(type: GridListDemoType.footer),
- code: CodeSegments.gridListsDemo,
- ),
- ],
- ),
- GalleryDemo(
- title: localizations.demoListsTitle,
- icon: GalleryIcons.listAlt,
- subtitle: localizations.demoListsSubtitle,
- configurations: [
- GalleryDemoConfiguration(
- title: localizations.demoOneLineListsTitle,
- description: localizations.demoListsDescription,
- documentationUrl: '$_docsBaseUrl/material/ListTile-class.html',
- buildRoute: (context) => ListDemo(type: ListDemoType.oneLine),
- code: CodeSegments.listDemo,
- ),
- GalleryDemoConfiguration(
- title: localizations.demoTwoLineListsTitle,
- description: localizations.demoListsDescription,
- documentationUrl: '$_docsBaseUrl/material/ListTile-class.html',
- buildRoute: (context) => ListDemo(type: ListDemoType.twoLine),
- code: CodeSegments.listDemo,
- ),
- ],
- ),
- GalleryDemo(
- title: localizations.demoMenuTitle,
- icon: GalleryIcons.moreVert,
- subtitle: localizations.demoMenuSubtitle,
- configurations: [
- GalleryDemoConfiguration(
- title: localizations.demoContextMenuTitle,
- description: localizations.demoMenuDescription,
- documentationUrl: '$_docsBaseUrl/material/PopupMenuItem-class.html',
- buildRoute: (context) => MenuDemo(
- type: MenuDemoType.contextMenu,
- ),
- code: CodeSegments.menuDemoContext,
- ),
- GalleryDemoConfiguration(
- title: localizations.demoSectionedMenuTitle,
- description: localizations.demoMenuDescription,
- documentationUrl: '$_docsBaseUrl/material/PopupMenuItem-class.html',
- buildRoute: (context) => MenuDemo(
- type: MenuDemoType.sectionedMenu,
- ),
- code: CodeSegments.menuDemoSectioned,
- ),
- GalleryDemoConfiguration(
- title: localizations.demoChecklistMenuTitle,
- description: localizations.demoMenuDescription,
- documentationUrl:
- '$_docsBaseUrl/material/CheckedPopupMenuItem-class.html',
- buildRoute: (context) => MenuDemo(
- type: MenuDemoType.checklistMenu,
- ),
- code: CodeSegments.menuDemoChecklist,
- ),
- GalleryDemoConfiguration(
- title: localizations.demoSimpleMenuTitle,
- description: localizations.demoMenuDescription,
- documentationUrl: '$_docsBaseUrl/material/PopupMenuItem-class.html',
- buildRoute: (context) => MenuDemo(
- type: MenuDemoType.simpleMenu,
- ),
- code: CodeSegments.menuDemoSimple,
- ),
- ],
- ),
- GalleryDemo(
- title: localizations.demoPickersTitle,
- icon: GalleryIcons.event,
- subtitle: localizations.demoPickersSubtitle,
- configurations: [
- GalleryDemoConfiguration(
- title: localizations.demoDatePickerTitle,
- description: localizations.demoDatePickerDescription,
- documentationUrl: '$_docsBaseUrl/material/showDatePicker.html',
- buildRoute: (context) => PickerDemo(type: PickerDemoType.date),
- code: CodeSegments.pickerDemo,
- ),
- GalleryDemoConfiguration(
- title: localizations.demoTimePickerTitle,
- description: localizations.demoTimePickerDescription,
- documentationUrl: '$_docsBaseUrl/material/showTimePicker.htmlhtml',
- buildRoute: (context) => PickerDemo(type: PickerDemoType.time),
- code: CodeSegments.pickerDemo,
- ),
- ],
- ),
- GalleryDemo(
- title: localizations.demoProgressIndicatorTitle,
- icon: GalleryIcons.progressActivity,
- subtitle: localizations.demoProgressIndicatorSubtitle,
- configurations: [
- GalleryDemoConfiguration(
- title: localizations.demoCircularProgressIndicatorTitle,
- description: localizations.demoCircularProgressIndicatorDescription,
- documentationUrl:
- '$_docsBaseUrl/material/CircularProgressIndicator-class.html',
- buildRoute: (context) => ProgressIndicatorDemo(
- type: ProgressIndicatorDemoType.circular,
- ),
- code: CodeSegments.progressIndicatorsDemo,
- ),
- GalleryDemoConfiguration(
- title: localizations.demoLinearProgressIndicatorTitle,
- description: localizations.demoLinearProgressIndicatorDescription,
- documentationUrl:
- '$_docsBaseUrl/material/LinearProgressIndicator-class.html',
- buildRoute: (context) => ProgressIndicatorDemo(
- type: ProgressIndicatorDemoType.linear,
- ),
- code: CodeSegments.progressIndicatorsDemo,
- ),
- ],
- ),
- GalleryDemo(
- title: localizations.demoSelectionControlsTitle,
- icon: GalleryIcons.checkBox,
- subtitle: localizations.demoSelectionControlsSubtitle,
- configurations: [
- GalleryDemoConfiguration(
- title: localizations.demoSelectionControlsCheckboxTitle,
- description: localizations.demoSelectionControlsCheckboxDescription,
- documentationUrl: '$_docsBaseUrl/material/Checkbox-class.html',
- buildRoute: (context) => SelectionControlsDemo(
- type: SelectionControlsDemoType.checkbox,
- ),
- code: CodeSegments.selectionControlsDemoCheckbox,
- ),
- GalleryDemoConfiguration(
- title: localizations.demoSelectionControlsRadioTitle,
- description: localizations.demoSelectionControlsRadioDescription,
- documentationUrl: '$_docsBaseUrl/material/Radio-class.html',
- buildRoute: (context) => SelectionControlsDemo(
- type: SelectionControlsDemoType.radio,
- ),
- code: CodeSegments.selectionControlsDemoRadio,
- ),
- GalleryDemoConfiguration(
- title: localizations.demoSelectionControlsSwitchTitle,
- description: localizations.demoSelectionControlsSwitchDescription,
- documentationUrl: '$_docsBaseUrl/material/Switch-class.html',
- buildRoute: (context) => SelectionControlsDemo(
- type: SelectionControlsDemoType.switches,
- ),
- code: CodeSegments.selectionControlsDemoSwitches,
- ),
- ],
- ),
- GalleryDemo(
- title: localizations.demoSlidersTitle,
- icon: GalleryIcons.sliders,
- subtitle: localizations.demoSlidersSubtitle,
- configurations: [
- GalleryDemoConfiguration(
- title: localizations.demoSlidersTitle,
- description: localizations.demoSlidersDescription,
- documentationUrl: '$_docsBaseUrl/material/Slider-class.html',
- buildRoute: (context) => SlidersDemo(type: SlidersDemoType.sliders),
- code: CodeSegments.slidersDemo,
- ),
- GalleryDemoConfiguration(
- title: localizations.demoRangeSlidersTitle,
- description: localizations.demoRangeSlidersDescription,
- documentationUrl: '$_docsBaseUrl/material/RangeSlider-class.html',
- buildRoute: (context) =>
- SlidersDemo(type: SlidersDemoType.rangeSliders),
- code: CodeSegments.rangeSlidersDemo,
- ),
- GalleryDemoConfiguration(
- title: localizations.demoCustomSlidersTitle,
- description: localizations.demoCustomSlidersDescription,
- documentationUrl: '$_docsBaseUrl/material/SliderTheme-class.html',
- buildRoute: (context) =>
- SlidersDemo(type: SlidersDemoType.customSliders),
- code: CodeSegments.customSlidersDemo,
- ),
- ],
- ),
- GalleryDemo(
- title: localizations.demoSnackbarsTitle,
- icon: GalleryIcons.snackbar,
- subtitle: localizations.demoSnackbarsSubtitle,
- configurations: [
- GalleryDemoConfiguration(
- title: localizations.demoSnackbarsTitle,
- description: localizations.demoSnackbarsDescription,
- documentationUrl: '$_docsBaseUrl/material/SnackBar-class.html',
- buildRoute: (context) => SnackbarsDemo(),
- code: CodeSegments.snackbarsDemo,
- ),
- ],
- ),
- GalleryDemo(
- title: localizations.demoTabsTitle,
- icon: GalleryIcons.tabs,
- subtitle: localizations.demoTabsSubtitle,
- configurations: [
- GalleryDemoConfiguration(
- title: localizations.demoTabsScrollingTitle,
- description: localizations.demoTabsDescription,
- documentationUrl: '$_docsBaseUrl/material/TabBar-class.html',
- buildRoute: (context) => TabsDemo(type: TabsDemoType.scrollable),
- code: CodeSegments.tabsScrollableDemo,
- ),
- GalleryDemoConfiguration(
- title: localizations.demoTabsNonScrollingTitle,
- description: localizations.demoTabsDescription,
- documentationUrl: '$_docsBaseUrl/material/TabBar-class.html',
- buildRoute: (context) => TabsDemo(type: TabsDemoType.nonScrollable),
- code: CodeSegments.tabsNonScrollableDemo,
- ),
- ],
- ),
- GalleryDemo(
- title: localizations.demoTextFieldTitle,
- icon: GalleryIcons.textFieldsAlt,
- subtitle: localizations.demoTextFieldSubtitle,
- configurations: [
- GalleryDemoConfiguration(
- title: localizations.demoTextFieldTitle,
- description: localizations.demoTextFieldDescription,
- documentationUrl: '$_docsBaseUrl/material/TextField-class.html',
- buildRoute: (_) => TextFieldDemo(),
- code: CodeSegments.textFieldDemo,
- ),
- ],
- ),
- GalleryDemo(
- title: localizations.demoTooltipTitle,
- icon: GalleryIcons.tooltip,
- subtitle: localizations.demoTooltipSubtitle,
- configurations: [
- GalleryDemoConfiguration(
- title: localizations.demoTooltipTitle,
- description: localizations.demoTooltipDescription,
- documentationUrl: '$_docsBaseUrl/material/Tooltip-class.html',
- buildRoute: (_) => TooltipDemo(),
- code: CodeSegments.tooltipDemo,
- ),
- ],
- ),
- ];
-}
-
-List cupertinoDemos(BuildContext context) {
- final localizations = GalleryLocalizations.of(context);
- return [
- GalleryDemo(
- title: localizations.demoCupertinoActivityIndicatorTitle,
- icon: GalleryIcons.cupertinoProgress,
- subtitle: localizations.demoCupertinoActivityIndicatorSubtitle,
- configurations: [
- GalleryDemoConfiguration(
- title: localizations.demoCupertinoActivityIndicatorTitle,
- description: localizations.demoCupertinoActivityIndicatorDescription,
- documentationUrl:
- '$_docsBaseUrl/cupertino/CupertinoActivityIndicator-class.html',
- buildRoute: (_) => CupertinoProgressIndicatorDemo(),
- code: CodeSegments.cupertinoActivityIndicatorDemo,
- ),
- ],
- ),
- GalleryDemo(
- title: localizations.demoCupertinoAlertsTitle,
- icon: GalleryIcons.dialogs,
- subtitle: localizations.demoCupertinoAlertsSubtitle,
- configurations: [
- GalleryDemoConfiguration(
- title: localizations.demoCupertinoAlertTitle,
- description: localizations.demoCupertinoAlertDescription,
- documentationUrl:
- '$_docsBaseUrl/cupertino/CupertinoAlertDialog-class.html',
- buildRoute: (_) => CupertinoAlertDemo(type: AlertDemoType.alert),
- code: CodeSegments.cupertinoAlertDemo,
- ),
- GalleryDemoConfiguration(
- title: localizations.demoCupertinoAlertWithTitleTitle,
- description: localizations.demoCupertinoAlertDescription,
- documentationUrl:
- '$_docsBaseUrl/cupertino/CupertinoAlertDialog-class.html',
- buildRoute: (_) => CupertinoAlertDemo(type: AlertDemoType.alertTitle),
- code: CodeSegments.cupertinoAlertDemo,
- ),
- GalleryDemoConfiguration(
- title: localizations.demoCupertinoAlertButtonsTitle,
- description: localizations.demoCupertinoAlertDescription,
- documentationUrl:
- '$_docsBaseUrl/cupertino/CupertinoAlertDialog-class.html',
- buildRoute: (_) =>
- CupertinoAlertDemo(type: AlertDemoType.alertButtons),
- code: CodeSegments.cupertinoAlertDemo,
- ),
- GalleryDemoConfiguration(
- title: localizations.demoCupertinoAlertButtonsOnlyTitle,
- description: localizations.demoCupertinoAlertDescription,
- documentationUrl:
- '$_docsBaseUrl/cupertino/CupertinoAlertDialog-class.html',
- buildRoute: (_) =>
- CupertinoAlertDemo(type: AlertDemoType.alertButtonsOnly),
- code: CodeSegments.cupertinoAlertDemo,
- ),
- GalleryDemoConfiguration(
- title: localizations.demoCupertinoActionSheetTitle,
- description: localizations.demoCupertinoActionSheetDescription,
- documentationUrl:
- '$_docsBaseUrl/cupertino/CupertinoActionSheet-class.html',
- buildRoute: (_) =>
- CupertinoAlertDemo(type: AlertDemoType.actionSheet),
- code: CodeSegments.cupertinoAlertDemo,
- ),
- ],
- ),
- GalleryDemo(
- title: localizations.demoCupertinoButtonsTitle,
- icon: GalleryIcons.genericButtons,
- subtitle: localizations.demoCupertinoButtonsSubtitle,
- configurations: [
- GalleryDemoConfiguration(
- title: localizations.demoCupertinoButtonsTitle,
- description: localizations.demoCupertinoButtonsDescription,
- documentationUrl:
- '$_docsBaseUrl/cupertino/CupertinoButton-class.html',
- buildRoute: (_) => CupertinoButtonDemo(),
- code: CodeSegments.cupertinoButtonDemo,
- ),
- ],
- ),
- GalleryDemo(
- title: localizations.demoCupertinoNavigationBarTitle,
- icon: GalleryIcons.bottomSheetPersistent,
- subtitle: localizations.demoCupertinoNavigationBarSubtitle,
- configurations: [
- GalleryDemoConfiguration(
- title: localizations.demoCupertinoNavigationBarTitle,
- description: localizations.demoCupertinoNavigationBarDescription,
- documentationUrl:
- '$_docsBaseUrl/cupertino/CupertinoNavigationBar-class.html',
- buildRoute: (_) => CupertinoNavigationBarDemo(),
- code: CodeSegments.cupertinoNavigationBarDemo,
- ),
- ],
- ),
- GalleryDemo(
- title: localizations.demoCupertinoPickerTitle,
- icon: GalleryIcons.event,
- subtitle: localizations.demoCupertinoPickerSubtitle,
- configurations: [
- GalleryDemoConfiguration(
- title: localizations.demoCupertinoPickerTitle,
- description: localizations.demoCupertinoPickerDescription,
- documentationUrl:
- '$_docsBaseUrl/cupertino/CupertinoDatePicker-class.html',
- buildRoute: (_) => CupertinoPickerDemo(),
- code: CodeSegments.cupertinoPickersDemo,
- ),
- ],
- ),
- GalleryDemo(
- title: localizations.demoCupertinoPullToRefreshTitle,
- icon: GalleryIcons.cupertinoPullToRefresh,
- subtitle: localizations.demoCupertinoPullToRefreshSubtitle,
- configurations: [
- GalleryDemoConfiguration(
- title: localizations.demoCupertinoPullToRefreshTitle,
- description: localizations.demoCupertinoPullToRefreshDescription,
- documentationUrl:
- '$_docsBaseUrl/cupertino/CupertinoSliverRefreshControl-class.html',
- buildRoute: (_) => CupertinoRefreshControlDemo(),
- code: CodeSegments.cupertinoRefreshDemo,
- ),
- ],
- ),
- GalleryDemo(
- title: localizations.demoCupertinoSegmentedControlTitle,
- icon: GalleryIcons.tabs,
- subtitle: localizations.demoCupertinoSegmentedControlSubtitle,
- configurations: [
- GalleryDemoConfiguration(
- title: localizations.demoCupertinoSegmentedControlTitle,
- description: localizations.demoCupertinoSegmentedControlDescription,
- documentationUrl:
- '$_docsBaseUrl/cupertino/CupertinoSegmentedControl-class.html',
- buildRoute: (_) => CupertinoSegmentedControlDemo(),
- code: CodeSegments.cupertinoSegmentedControlDemo,
- ),
- ],
- ),
- GalleryDemo(
- title: localizations.demoCupertinoSliderTitle,
- icon: GalleryIcons.sliders,
- subtitle: localizations.demoCupertinoSliderSubtitle,
- configurations: [
- GalleryDemoConfiguration(
- title: localizations.demoCupertinoSliderTitle,
- description: localizations.demoCupertinoSliderDescription,
- documentationUrl:
- '$_docsBaseUrl/cupertino/CupertinoSlider-class.html',
- buildRoute: (_) => CupertinoSliderDemo(),
- code: CodeSegments.cupertinoSliderDemo,
- ),
- ],
- ),
- GalleryDemo(
- title: localizations.demoSelectionControlsSwitchTitle,
- icon: GalleryIcons.cupertinoSwitch,
- subtitle: localizations.demoCupertinoSwitchSubtitle,
- configurations: [
- GalleryDemoConfiguration(
- title: localizations.demoSelectionControlsSwitchTitle,
- description: localizations.demoCupertinoSwitchDescription,
- documentationUrl:
- '$_docsBaseUrl/cupertino/CupertinoSwitch-class.html',
- buildRoute: (_) => CupertinoSwitchDemo(),
- code: CodeSegments.cupertinoSwitchDemo,
- ),
- ],
- ),
- GalleryDemo(
- title: localizations.demoCupertinoTabBarTitle,
- icon: GalleryIcons.bottomNavigation,
- subtitle: localizations.demoCupertinoTabBarSubtitle,
- configurations: [
- GalleryDemoConfiguration(
- title: localizations.demoCupertinoTabBarTitle,
- description: localizations.demoCupertinoTabBarDescription,
- documentationUrl:
- '$_docsBaseUrl/cupertino/CupertinoTabBar-class.html',
- buildRoute: (_) => CupertinoTabBarDemo(),
- code: CodeSegments.cupertinoNavigationDemo,
- ),
- ],
- ),
- GalleryDemo(
- title: localizations.demoCupertinoTextFieldTitle,
- icon: GalleryIcons.textFieldsAlt,
- subtitle: localizations.demoCupertinoTextFieldSubtitle,
- configurations: [
- GalleryDemoConfiguration(
- title: localizations.demoCupertinoTextFieldTitle,
- description: localizations.demoCupertinoTextFieldDescription,
- documentationUrl:
- '$_docsBaseUrl/cupertino/CupertinoTextField-class.html',
- buildRoute: (_) => CupertinoTextFieldDemo(),
- code: CodeSegments.cupertinoTextFieldDemo,
- ),
- ],
- ),
- ];
-}
-
-List referenceDemos(BuildContext context) {
- final localizations = GalleryLocalizations.of(context);
- return [
- GalleryDemo(
- title: localizations.demoColorsTitle,
- icon: GalleryIcons.colors,
- subtitle: localizations.demoColorsSubtitle,
- configurations: [
- GalleryDemoConfiguration(
- title: localizations.demoColorsTitle,
- description: localizations.demoColorsDescription,
- documentationUrl: '$_docsBaseUrl/material/MaterialColor-class.html',
- buildRoute: (_) => ColorsDemo(),
- code: CodeSegments.colorsDemo,
- ),
- ],
- ),
- GalleryDemo(
- title: localizations.demoTypographyTitle,
- icon: GalleryIcons.customTypography,
- subtitle: localizations.demoTypographySubtitle,
- configurations: [
- GalleryDemoConfiguration(
- title: localizations.demoTypographyTitle,
- description: localizations.demoTypographyDescription,
- documentationUrl: '$_docsBaseUrl/material/TextTheme-class.html',
- buildRoute: (_) => TypographyDemo(),
- code: CodeSegments.typographyDemo,
- ),
- ],
- ),
- GalleryDemo(
- title: localizations.demo2dTransformationsTitle,
- icon: GalleryIcons.gridOn,
- subtitle: localizations.demo2dTransformationsSubtitle,
- configurations: [
- GalleryDemoConfiguration(
- title: localizations.demo2dTransformationsTitle,
- description: localizations.demo2dTransformationsDescription,
- documentationUrl: '$_docsBaseUrl/widgets/GestureDetector-class.html',
- buildRoute: (_) => TransformationsDemo(),
- code: CodeSegments.transformationsDemo,
- ),
- ],
- ),
- ];
-}
-
-class DemoWrapper extends StatelessWidget {
- const DemoWrapper({Key key, this.child}) : super(key: key);
-
- final Widget child;
-
- @override
- Widget build(BuildContext context) {
- return Theme(
- data: MaterialDemoThemeData.themeData.copyWith(
- platform: GalleryOptions.of(context).platform,
- ),
- child: ApplyTextOptions(
- child: CupertinoTheme(
- data: CupertinoThemeData().copyWith(brightness: Brightness.light),
- child: child,
- ),
- ),
- );
- }
-}
diff --git a/gallery/lib/data/gallery_options.dart b/gallery/lib/data/gallery_options.dart
deleted file mode 100644
index 7a2fc67c0..000000000
--- a/gallery/lib/data/gallery_options.dart
+++ /dev/null
@@ -1,253 +0,0 @@
-// Copyright 2019 The Flutter team. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-import 'dart:async';
-import 'dart:io' show Platform;
-
-import 'package:flutter/foundation.dart';
-import 'package:flutter/material.dart';
-import 'package:flutter/scheduler.dart' show timeDilation;
-import 'package:gallery/constants.dart';
-
-enum CustomTextDirection {
- localeBased,
- ltr,
- rtl,
-}
-
-// See http://en.wikipedia.org/wiki/Right-to-left
-const List rtlLanguages = [
- 'ar', // Arabic
- 'fa', // Farsi
- 'he', // Hebrew
- 'ps', // Pashto
- 'ur', // Urdu
-];
-
-// Fake locale to represent the system Locale option.
-const systemLocaleOption = Locale('system');
-
-Locale _deviceLocale;
-Locale get deviceLocale => _deviceLocale;
-set deviceLocale(Locale locale) {
- if (_deviceLocale == null) {
- _deviceLocale = locale;
- }
-}
-
-class GalleryOptions {
- const GalleryOptions({
- this.themeMode,
- double textScaleFactor,
- this.customTextDirection,
- Locale locale,
- this.timeDilation,
- this.platform,
- }) : _textScaleFactor = textScaleFactor,
- _locale = locale;
-
- final ThemeMode themeMode;
- final double _textScaleFactor;
- final CustomTextDirection customTextDirection;
- final Locale _locale;
- final double timeDilation;
- final TargetPlatform platform;
-
- // We use a sentinel value to indicate the system text scale option. By
- // default, return the actual text scale factor, otherwise return the
- // sentinel value.
- double textScaleFactor(BuildContext context, {bool useSentinel = false}) {
- if (_textScaleFactor == systemTextScaleFactorOption) {
- return useSentinel
- ? systemTextScaleFactorOption
- : MediaQuery.of(context).textScaleFactor;
- } else {
- return _textScaleFactor;
- }
- }
-
- Locale get locale =>
- _locale ??
- deviceLocale ??
- // TODO: When deviceLocale can be obtained on macOS, this won't be necessary
- // https://github.com/flutter/flutter/issues/45343
- (!kIsWeb && Platform.isMacOS ? Locale('en', 'US') : null);
-
- /// Returns the text direction based on the [CustomTextDirection] setting.
- /// If the locale cannot be determined, returns null.
- TextDirection textDirection() {
- switch (customTextDirection) {
- case CustomTextDirection.localeBased:
- final String language = locale?.languageCode?.toLowerCase();
- if (language == null) return null;
- return rtlLanguages.contains(language)
- ? TextDirection.rtl
- : TextDirection.ltr;
- case CustomTextDirection.rtl:
- return TextDirection.rtl;
- default:
- return TextDirection.ltr;
- }
- }
-
- GalleryOptions copyWith({
- ThemeMode themeMode,
- double textScaleFactor,
- CustomTextDirection customTextDirection,
- Locale locale,
- double timeDilation,
- TargetPlatform platform,
- }) {
- return GalleryOptions(
- themeMode: themeMode ?? this.themeMode,
- textScaleFactor: textScaleFactor ?? this._textScaleFactor,
- customTextDirection: customTextDirection ?? this.customTextDirection,
- locale: locale ?? this.locale,
- timeDilation: timeDilation ?? this.timeDilation,
- platform: platform ?? this.platform,
- );
- }
-
- @override
- bool operator ==(Object other) =>
- other is GalleryOptions &&
- themeMode == other.themeMode &&
- _textScaleFactor == other._textScaleFactor &&
- customTextDirection == other.customTextDirection &&
- locale == other.locale &&
- timeDilation == other.timeDilation &&
- platform == other.platform;
-
- @override
- int get hashCode => hashValues(
- themeMode,
- _textScaleFactor,
- customTextDirection,
- locale,
- timeDilation,
- platform,
- );
-
- static GalleryOptions of(BuildContext context) {
- final _ModelBindingScope scope =
- context.dependOnInheritedWidgetOfExactType<_ModelBindingScope>();
- return scope.modelBindingState.currentModel;
- }
-
- static void update(BuildContext context, GalleryOptions newModel) {
- final _ModelBindingScope scope =
- context.dependOnInheritedWidgetOfExactType<_ModelBindingScope>();
- scope.modelBindingState.updateModel(newModel);
- }
-}
-
-// Applies text GalleryOptions to a widget
-class ApplyTextOptions extends StatelessWidget {
- const ApplyTextOptions({@required this.child});
-
- final Widget child;
-
- @override
- Widget build(BuildContext context) {
- final options = GalleryOptions.of(context);
- final textDirection = options.textDirection();
- final textScaleFactor = options.textScaleFactor(context);
-
- Widget widget = MediaQuery(
- data: MediaQuery.of(context).copyWith(
- textScaleFactor: textScaleFactor,
- ),
- child: child,
- );
- return textDirection == null
- ? widget
- : Directionality(
- textDirection: textDirection,
- child: widget,
- );
- }
-}
-
-// Everything below is boilerplate except code relating to time dilation.
-// See https://medium.com/flutter/managing-flutter-application-state-with-inheritedwidgets-1140452befe1
-
-class _ModelBindingScope extends InheritedWidget {
- _ModelBindingScope({
- Key key,
- @required this.modelBindingState,
- Widget child,
- }) : assert(modelBindingState != null),
- super(key: key, child: child);
-
- final _ModelBindingState modelBindingState;
-
- @override
- bool updateShouldNotify(_ModelBindingScope oldWidget) => true;
-}
-
-class ModelBinding extends StatefulWidget {
- ModelBinding({
- Key key,
- this.initialModel = const GalleryOptions(),
- this.child,
- }) : assert(initialModel != null),
- super(key: key);
-
- final GalleryOptions initialModel;
- final Widget child;
-
- _ModelBindingState createState() => _ModelBindingState();
-}
-
-class _ModelBindingState extends State {
- GalleryOptions currentModel;
- Timer _timeDilationTimer;
-
- @override
- void initState() {
- super.initState();
- currentModel = widget.initialModel;
- }
-
- @override
- void dispose() {
- _timeDilationTimer?.cancel();
- _timeDilationTimer = null;
- super.dispose();
- }
-
- void handleTimeDilation(GalleryOptions newModel) {
- if (currentModel.timeDilation != newModel.timeDilation) {
- _timeDilationTimer?.cancel();
- _timeDilationTimer = null;
- if (newModel.timeDilation > 1) {
- // We delay the time dilation change long enough that the user can see
- // that UI has started reacting and then we slam on the brakes so that
- // they see that the time is in fact now dilated.
- _timeDilationTimer = Timer(const Duration(milliseconds: 150), () {
- timeDilation = newModel.timeDilation;
- });
- } else {
- timeDilation = newModel.timeDilation;
- }
- }
- }
-
- void updateModel(GalleryOptions newModel) {
- if (newModel != currentModel) {
- handleTimeDilation(newModel);
- setState(() {
- currentModel = newModel;
- });
- }
- }
-
- @override
- Widget build(BuildContext context) {
- return _ModelBindingScope(
- modelBindingState: this,
- child: widget.child,
- );
- }
-}
diff --git a/gallery/lib/data/icons.dart b/gallery/lib/data/icons.dart
deleted file mode 100644
index 984ca23ca..000000000
--- a/gallery/lib/data/icons.dart
+++ /dev/null
@@ -1,170 +0,0 @@
-// Copyright 2019 The Flutter team. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-import 'package:flutter/material.dart';
-
-class GalleryIcons {
- GalleryIcons._();
-
- static const IconData tooltip = IconData(
- 0xe900,
- fontFamily: 'GalleryIcons',
- );
- static const IconData textFieldsAlt = IconData(
- 0xe901,
- fontFamily: 'GalleryIcons',
- );
- static const IconData tabs = IconData(
- 0xe902,
- fontFamily: 'GalleryIcons',
- );
- static const IconData switches = IconData(
- 0xe903,
- fontFamily: 'GalleryIcons',
- );
- static const IconData sliders = IconData(
- 0xe904,
- fontFamily: 'GalleryIcons',
- );
- static const IconData shrine = IconData(
- 0xe905,
- fontFamily: 'GalleryIcons',
- );
- static const IconData sentimentVerySatisfied = IconData(
- 0xe906,
- fontFamily: 'GalleryIcons',
- );
- static const IconData refresh = IconData(
- 0xe907,
- fontFamily: 'GalleryIcons',
- );
- static const IconData progressActivity = IconData(
- 0xe908,
- fontFamily: 'GalleryIcons',
- );
- static const IconData phoneIphone = IconData(
- 0xe909,
- fontFamily: 'GalleryIcons',
- );
- static const IconData pageControl = IconData(
- 0xe90a,
- fontFamily: 'GalleryIcons',
- );
- static const IconData moreVert = IconData(
- 0xe90b,
- fontFamily: 'GalleryIcons',
- );
- static const IconData menu = IconData(
- 0xe90c,
- fontFamily: 'GalleryIcons',
- );
- static const IconData listAlt = IconData(
- 0xe90d,
- fontFamily: 'GalleryIcons',
- );
- static const IconData gridOn = IconData(
- 0xe90e,
- fontFamily: 'GalleryIcons',
- );
- static const IconData expandAll = IconData(
- 0xe90f,
- fontFamily: 'GalleryIcons',
- );
- static const IconData event = IconData(
- 0xe910,
- fontFamily: 'GalleryIcons',
- );
- static const IconData driveVideo = IconData(
- 0xe911,
- fontFamily: 'GalleryIcons',
- );
- static const IconData dialogs = IconData(
- 0xe912,
- fontFamily: 'GalleryIcons',
- );
- static const IconData dataTable = IconData(
- 0xe913,
- fontFamily: 'GalleryIcons',
- );
- static const IconData customTypography = IconData(
- 0xe914,
- fontFamily: 'GalleryIcons',
- );
- static const IconData colors = IconData(
- 0xe915,
- fontFamily: 'GalleryIcons',
- );
- static const IconData chips = IconData(
- 0xe916,
- fontFamily: 'GalleryIcons',
- );
- static const IconData checkBox = IconData(
- 0xe917,
- fontFamily: 'GalleryIcons',
- );
- static const IconData cards = IconData(
- 0xe918,
- fontFamily: 'GalleryIcons',
- );
- static const IconData buttons = IconData(
- 0xe919,
- fontFamily: 'GalleryIcons',
- );
- static const IconData bottomSheets = IconData(
- 0xe91a,
- fontFamily: 'GalleryIcons',
- );
- static const IconData bottomNavigation = IconData(
- 0xe91b,
- fontFamily: 'GalleryIcons',
- );
- static const IconData animation = IconData(
- 0xe91c,
- fontFamily: 'GalleryIcons',
- );
- static const IconData accountBox = IconData(
- 0xe91d,
- fontFamily: 'GalleryIcons',
- );
- static const IconData snackbar = IconData(
- 0xe91e,
- fontFamily: 'GalleryIcons',
- );
- static const IconData categoryMdc = IconData(
- 0xe91f,
- fontFamily: 'GalleryIcons',
- );
- static const IconData cupertinoProgress = IconData(
- 0xe920,
- fontFamily: 'GalleryIcons',
- );
- static const IconData cupertinoPullToRefresh = IconData(
- 0xe921,
- fontFamily: 'GalleryIcons',
- );
- static const IconData cupertinoSwitch = IconData(
- 0xe922,
- fontFamily: 'GalleryIcons',
- );
- static const IconData genericButtons = IconData(
- 0xe923,
- fontFamily: 'GalleryIcons',
- );
- static const IconData backdrop = IconData(
- 0xe924,
- fontFamily: 'GalleryIcons',
- );
- static const IconData bottomAppBar = IconData(
- 0xe925,
- fontFamily: 'GalleryIcons',
- );
- static const IconData bottomSheetPersistent = IconData(
- 0xe926,
- fontFamily: 'GalleryIcons',
- );
- static const IconData listsLeaveBehind = IconData(
- 0xe927,
- fontFamily: 'GalleryIcons',
- );
-}
diff --git a/gallery/lib/demos/cupertino/cupertino_activity_indicator_demo.dart b/gallery/lib/demos/cupertino/cupertino_activity_indicator_demo.dart
deleted file mode 100644
index 487d96964..000000000
--- a/gallery/lib/demos/cupertino/cupertino_activity_indicator_demo.dart
+++ /dev/null
@@ -1,27 +0,0 @@
-// Copyright 2019 The Flutter team. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-import 'package:flutter/cupertino.dart';
-import 'package:gallery/l10n/gallery_localizations.dart';
-
-// BEGIN cupertinoActivityIndicatorDemo
-
-class CupertinoProgressIndicatorDemo extends StatelessWidget {
- @override
- Widget build(BuildContext context) {
- return CupertinoPageScaffold(
- navigationBar: CupertinoNavigationBar(
- automaticallyImplyLeading: false,
- middle: Text(
- GalleryLocalizations.of(context).demoCupertinoActivityIndicatorTitle,
- ),
- ),
- child: const Center(
- child: CupertinoActivityIndicator(),
- ),
- );
- }
-}
-
-// END
diff --git a/gallery/lib/demos/cupertino/cupertino_alert_demo.dart b/gallery/lib/demos/cupertino/cupertino_alert_demo.dart
deleted file mode 100644
index 5971a724a..000000000
--- a/gallery/lib/demos/cupertino/cupertino_alert_demo.dart
+++ /dev/null
@@ -1,342 +0,0 @@
-// Copyright 2019 The Flutter team. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-import 'package:flutter/cupertino.dart';
-
-import 'package:gallery/data/gallery_options.dart';
-import 'package:gallery/l10n/gallery_localizations.dart';
-
-// BEGIN cupertinoAlertDemo
-
-enum AlertDemoType {
- alert,
- alertTitle,
- alertButtons,
- alertButtonsOnly,
- actionSheet,
-}
-
-class CupertinoAlertDemo extends StatefulWidget {
- const CupertinoAlertDemo({
- Key key,
- @required this.type,
- }) : super(key: key);
-
- final AlertDemoType type;
-
- @override
- _CupertinoAlertDemoState createState() => _CupertinoAlertDemoState();
-}
-
-class _CupertinoAlertDemoState extends State {
- String lastSelectedValue;
-
- String _title(BuildContext context) {
- switch (widget.type) {
- case AlertDemoType.alert:
- return GalleryLocalizations.of(context).demoCupertinoAlertTitle;
- case AlertDemoType.alertTitle:
- return GalleryLocalizations.of(context)
- .demoCupertinoAlertWithTitleTitle;
- case AlertDemoType.alertButtons:
- return GalleryLocalizations.of(context).demoCupertinoAlertButtonsTitle;
- case AlertDemoType.alertButtonsOnly:
- return GalleryLocalizations.of(context)
- .demoCupertinoAlertButtonsOnlyTitle;
- case AlertDemoType.actionSheet:
- return GalleryLocalizations.of(context).demoCupertinoActionSheetTitle;
- }
- return '';
- }
-
- void _showDemoDialog({BuildContext context, Widget child}) {
- showCupertinoDialog(
- context: context,
- builder: (context) => ApplyTextOptions(child: child),
- ).then((value) {
- if (value != null) {
- setState(() {
- lastSelectedValue = value;
- });
- }
- });
- }
-
- void _showDemoActionSheet({BuildContext context, Widget child}) {
- child = ApplyTextOptions(
- child: CupertinoTheme(
- data: CupertinoTheme.of(context),
- child: child,
- ),
- );
- showCupertinoModalPopup(
- context: context,
- builder: (context) => child,
- ).then((value) {
- if (value != null) {
- setState(() {
- lastSelectedValue = value;
- });
- }
- });
- }
-
- void _onAlertPress(BuildContext context) {
- _showDemoDialog(
- context: context,
- child: CupertinoAlertDialog(
- title: Text(GalleryLocalizations.of(context).dialogDiscardTitle),
- actions: [
- CupertinoDialogAction(
- child: Text(
- GalleryLocalizations.of(context).cupertinoAlertDiscard,
- ),
- isDestructiveAction: true,
- onPressed: () => Navigator.of(context, rootNavigator: true).pop(
- GalleryLocalizations.of(context).cupertinoAlertDiscard,
- ),
- ),
- CupertinoDialogAction(
- child: Text(
- GalleryLocalizations.of(context).cupertinoAlertCancel,
- ),
- isDefaultAction: true,
- onPressed: () => Navigator.of(context, rootNavigator: true).pop(
- GalleryLocalizations.of(context).cupertinoAlertCancel,
- ),
- ),
- ],
- ),
- );
- }
-
- void _onAlertWithTitlePress(BuildContext context) {
- _showDemoDialog(
- context: context,
- child: CupertinoAlertDialog(
- title: Text(
- GalleryLocalizations.of(context).cupertinoAlertLocationTitle,
- ),
- content: Text(
- GalleryLocalizations.of(context).cupertinoAlertLocationDescription,
- ),
- actions: [
- CupertinoDialogAction(
- child: Text(
- GalleryLocalizations.of(context).cupertinoAlertDontAllow,
- ),
- onPressed: () => Navigator.of(context, rootNavigator: true).pop(
- GalleryLocalizations.of(context).cupertinoAlertDontAllow,
- ),
- ),
- CupertinoDialogAction(
- child: Text(
- GalleryLocalizations.of(context).cupertinoAlertAllow,
- ),
- onPressed: () => Navigator.of(context, rootNavigator: true).pop(
- GalleryLocalizations.of(context).cupertinoAlertAllow,
- ),
- ),
- ],
- ),
- );
- }
-
- void _onAlertWithButtonsPress(BuildContext context) {
- _showDemoDialog(
- context: context,
- child: CupertinoDessertDialog(
- title: Text(
- GalleryLocalizations.of(context).cupertinoAlertFavoriteDessert,
- ),
- content: Text(
- GalleryLocalizations.of(context).cupertinoAlertDessertDescription,
- ),
- ),
- );
- }
-
- void _onAlertButtonsOnlyPress(BuildContext context) {
- _showDemoDialog(
- context: context,
- child: const CupertinoDessertDialog(),
- );
- }
-
- void _onActionSheetPress(BuildContext context) {
- _showDemoActionSheet(
- context: context,
- child: CupertinoActionSheet(
- title: Text(
- GalleryLocalizations.of(context).cupertinoAlertFavoriteDessert,
- ),
- message: Text(
- GalleryLocalizations.of(context).cupertinoAlertDessertDescription,
- ),
- actions: [
- CupertinoActionSheetAction(
- child: Text(
- GalleryLocalizations.of(context).cupertinoAlertCheesecake,
- ),
- onPressed: () => Navigator.of(context, rootNavigator: true).pop(
- GalleryLocalizations.of(context).cupertinoAlertCheesecake,
- ),
- ),
- CupertinoActionSheetAction(
- child: Text(
- GalleryLocalizations.of(context).cupertinoAlertTiramisu,
- ),
- onPressed: () => Navigator.of(context, rootNavigator: true).pop(
- GalleryLocalizations.of(context).cupertinoAlertTiramisu,
- ),
- ),
- CupertinoActionSheetAction(
- child: Text(
- GalleryLocalizations.of(context).cupertinoAlertApplePie,
- ),
- onPressed: () => Navigator.of(context, rootNavigator: true).pop(
- GalleryLocalizations.of(context).cupertinoAlertApplePie,
- ),
- ),
- ],
- cancelButton: CupertinoActionSheetAction(
- child: Text(
- GalleryLocalizations.of(context).cupertinoAlertCancel,
- ),
- isDefaultAction: true,
- onPressed: () => Navigator.of(context, rootNavigator: true).pop(
- GalleryLocalizations.of(context).cupertinoAlertCancel,
- ),
- ),
- ),
- );
- }
-
- @override
- Widget build(BuildContext context) {
- return CupertinoPageScaffold(
- navigationBar: CupertinoNavigationBar(
- automaticallyImplyLeading: false,
- middle: Text(_title(context)),
- ),
- child: Builder(
- builder: (context) {
- return Column(
- children: [
- Expanded(
- child: Center(
- child: CupertinoButton.filled(
- child: Text(
- GalleryLocalizations.of(context).cupertinoShowAlert,
- ),
- onPressed: () {
- switch (widget.type) {
- case AlertDemoType.alert:
- _onAlertPress(context);
- break;
- case AlertDemoType.alertTitle:
- _onAlertWithTitlePress(context);
- break;
- case AlertDemoType.alertButtons:
- _onAlertWithButtonsPress(context);
- break;
- case AlertDemoType.alertButtonsOnly:
- _onAlertButtonsOnlyPress(context);
- break;
- case AlertDemoType.actionSheet:
- _onActionSheetPress(context);
- break;
- }
- },
- ),
- ),
- ),
- if (lastSelectedValue != null)
- Padding(
- padding: const EdgeInsets.all(16),
- child: Text(
- GalleryLocalizations.of(context)
- .dialogSelectedOption(lastSelectedValue),
- style: CupertinoTheme.of(context).textTheme.textStyle,
- textAlign: TextAlign.center,
- ),
- ),
- ],
- );
- },
- ),
- );
- }
-}
-
-class CupertinoDessertDialog extends StatelessWidget {
- const CupertinoDessertDialog({Key key, this.title, this.content})
- : super(key: key);
-
- final Widget title;
- final Widget content;
-
- @override
- Widget build(BuildContext context) {
- return CupertinoAlertDialog(
- title: title,
- content: content,
- actions: [
- CupertinoDialogAction(
- child: Text(
- GalleryLocalizations.of(context).cupertinoAlertCheesecake,
- ),
- onPressed: () {
- Navigator.of(context, rootNavigator: true).pop(
- GalleryLocalizations.of(context).cupertinoAlertCheesecake,
- );
- },
- ),
- CupertinoDialogAction(
- child: Text(
- GalleryLocalizations.of(context).cupertinoAlertTiramisu,
- ),
- onPressed: () {
- Navigator.of(context, rootNavigator: true).pop(
- GalleryLocalizations.of(context).cupertinoAlertTiramisu,
- );
- },
- ),
- CupertinoDialogAction(
- child: Text(
- GalleryLocalizations.of(context).cupertinoAlertApplePie,
- ),
- onPressed: () {
- Navigator.of(context, rootNavigator: true).pop(
- GalleryLocalizations.of(context).cupertinoAlertApplePie,
- );
- },
- ),
- CupertinoDialogAction(
- child: Text(
- GalleryLocalizations.of(context).cupertinoAlertChocolateBrownie,
- ),
- onPressed: () {
- Navigator.of(context, rootNavigator: true).pop(
- GalleryLocalizations.of(context).cupertinoAlertChocolateBrownie,
- );
- },
- ),
- CupertinoDialogAction(
- child: Text(
- GalleryLocalizations.of(context).cupertinoAlertCancel,
- ),
- isDestructiveAction: true,
- onPressed: () {
- Navigator.of(context, rootNavigator: true).pop(
- GalleryLocalizations.of(context).cupertinoAlertCancel,
- );
- },
- ),
- ],
- );
- }
-}
-
-// END
diff --git a/gallery/lib/demos/cupertino/cupertino_button_demo.dart b/gallery/lib/demos/cupertino/cupertino_button_demo.dart
deleted file mode 100644
index fd5cbde5a..000000000
--- a/gallery/lib/demos/cupertino/cupertino_button_demo.dart
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright 2019 The Flutter team. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-import 'package:flutter/cupertino.dart';
-
-import 'package:gallery/l10n/gallery_localizations.dart';
-
-// BEGIN cupertinoButtonDemo
-
-class CupertinoButtonDemo extends StatelessWidget {
- @override
- Widget build(BuildContext context) {
- return CupertinoPageScaffold(
- navigationBar: CupertinoNavigationBar(
- automaticallyImplyLeading: false,
- middle:
- Text(GalleryLocalizations.of(context).demoCupertinoButtonsTitle),
- ),
- child: Center(
- child: Column(
- mainAxisAlignment: MainAxisAlignment.center,
- children: [
- CupertinoButton(
- child: Text(
- GalleryLocalizations.of(context).cupertinoButton,
- ),
- onPressed: () {},
- ),
- SizedBox(height: 16),
- CupertinoButton.filled(
- child: Text(
- GalleryLocalizations.of(context).cupertinoButtonWithBackground,
- ),
- onPressed: () {},
- ),
- ],
- ),
- ),
- );
- }
-}
-
-// END
diff --git a/gallery/lib/demos/cupertino/cupertino_navigation_bar_demo.dart b/gallery/lib/demos/cupertino/cupertino_navigation_bar_demo.dart
deleted file mode 100644
index c93990ca7..000000000
--- a/gallery/lib/demos/cupertino/cupertino_navigation_bar_demo.dart
+++ /dev/null
@@ -1,82 +0,0 @@
-// Copyright 2019 The Flutter team. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-import 'package:flutter/cupertino.dart';
-import 'package:flutter/material.dart';
-import 'package:gallery/l10n/gallery_localizations.dart';
-
-// BEGIN cupertinoNavigationBarDemo
-
-class CupertinoNavigationBarDemo extends StatelessWidget {
- @override
- Widget build(BuildContext context) {
- return Navigator(onGenerateRoute: (settings) {
- return _NoAnimationCupertinoPageRoute(
- title: GalleryLocalizations.of(context).demoCupertinoNavigationBarTitle,
- builder: (context) => CupertinoPageScaffold(
- child: CustomScrollView(
- slivers: [
- CupertinoSliverNavigationBar(
- automaticallyImplyLeading: false,
- ),
- SliverPadding(
- padding: MediaQuery.of(context)
- .removePadding(removeTop: true)
- .padding,
- sliver: SliverList(
- delegate: SliverChildBuilderDelegate(
- (context, index) {
- final title = GalleryLocalizations.of(context)
- .starterAppDrawerItem(index + 1);
- return ListTile(
- onTap: () {
- Navigator.of(context).push(CupertinoPageRoute(
- title: title,
- builder: (context) => _SecondPage(),
- ));
- },
- title: Text(title),
- );
- },
- childCount: 20,
- ),
- ),
- ),
- ],
- ),
- ),
- );
- });
- }
-}
-
-class _SecondPage extends StatelessWidget {
- @override
- Widget build(BuildContext context) {
- return CupertinoPageScaffold(
- navigationBar: const CupertinoNavigationBar(),
- child: Container(),
- );
- }
-}
-
-/// A CupertinoPageRoute without any transition animations.
-class _NoAnimationCupertinoPageRoute extends CupertinoPageRoute {
- _NoAnimationCupertinoPageRoute({
- @required WidgetBuilder builder,
- String title,
- }) : super(builder: builder, title: title);
-
- @override
- Widget buildTransitions(
- BuildContext context,
- Animation animation,
- Animation secondaryAnimation,
- Widget child,
- ) {
- return child;
- }
-}
-
-// END
diff --git a/gallery/lib/demos/cupertino/cupertino_picker_demo.dart b/gallery/lib/demos/cupertino/cupertino_picker_demo.dart
deleted file mode 100644
index c91a914ee..000000000
--- a/gallery/lib/demos/cupertino/cupertino_picker_demo.dart
+++ /dev/null
@@ -1,241 +0,0 @@
-// Copyright 2019 The Flutter team. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-import 'package:flutter/cupertino.dart';
-import 'package:gallery/l10n/gallery_localizations.dart';
-import 'package:intl/intl.dart';
-
-// BEGIN cupertinoPickersDemo
-
-class CupertinoPickerDemo extends StatefulWidget {
- @override
- _CupertinoPickerDemoState createState() => _CupertinoPickerDemoState();
-}
-
-class _CupertinoPickerDemoState extends State {
- Duration timer = const Duration();
-
- // Value that is shown in the date picker in date mode.
- DateTime date = DateTime.now();
-
- // Value that is shown in the date picker in time mode.
- DateTime time = DateTime.now();
-
- // Value that is shown in the date picker in dateAndTime mode.
- DateTime dateTime = DateTime.now();
-
- Widget _buildDatePicker(BuildContext context) {
- return GestureDetector(
- onTap: () {
- showCupertinoModalPopup(
- context: context,
- builder: (context) {
- return _BottomPicker(
- child: CupertinoDatePicker(
- backgroundColor:
- CupertinoColors.systemBackground.resolveFrom(context),
- mode: CupertinoDatePickerMode.date,
- initialDateTime: date,
- onDateTimeChanged: (newDateTime) {
- setState(() => date = newDateTime);
- },
- ),
- );
- },
- );
- },
- child: _Menu(children: [
- Text(GalleryLocalizations.of(context).demoCupertinoPickerDate),
- Text(
- DateFormat.yMMMMd().format(date),
- style: TextStyle(color: CupertinoColors.inactiveGray),
- ),
- ]),
- );
- }
-
- Widget _buildTimePicker(BuildContext context) {
- return GestureDetector(
- onTap: () {
- showCupertinoModalPopup(
- context: context,
- builder: (context) {
- return _BottomPicker(
- child: CupertinoDatePicker(
- backgroundColor:
- CupertinoColors.systemBackground.resolveFrom(context),
- mode: CupertinoDatePickerMode.time,
- initialDateTime: time,
- onDateTimeChanged: (newDateTime) {
- setState(() => time = newDateTime);
- },
- ),
- );
- },
- );
- },
- child: _Menu(
- children: [
- Text(GalleryLocalizations.of(context).demoCupertinoPickerTime),
- Text(
- DateFormat.jm().format(time),
- style: TextStyle(color: CupertinoColors.inactiveGray),
- ),
- ],
- ),
- );
- }
-
- Widget _buildDateAndTimePicker(BuildContext context) {
- return GestureDetector(
- onTap: () {
- showCupertinoModalPopup(
- context: context,
- builder: (context) {
- return _BottomPicker(
- child: CupertinoDatePicker(
- backgroundColor:
- CupertinoColors.systemBackground.resolveFrom(context),
- mode: CupertinoDatePickerMode.dateAndTime,
- initialDateTime: dateTime,
- onDateTimeChanged: (newDateTime) {
- setState(() => dateTime = newDateTime);
- },
- ),
- );
- },
- );
- },
- child: _Menu(
- children: [
- Text(GalleryLocalizations.of(context).demoCupertinoPickerDateTime),
- Text(
- DateFormat.yMMMd().add_jm().format(dateTime),
- style: TextStyle(color: CupertinoColors.inactiveGray),
- ),
- ],
- ),
- );
- }
-
- Widget _buildCountdownTimerPicker(BuildContext context) {
- return GestureDetector(
- onTap: () {
- showCupertinoModalPopup(
- context: context,
- builder: (context) {
- return _BottomPicker(
- child: CupertinoTimerPicker(
- backgroundColor:
- CupertinoColors.systemBackground.resolveFrom(context),
- initialTimerDuration: timer,
- onTimerDurationChanged: (newTimer) {
- setState(() => timer = newTimer);
- },
- ),
- );
- },
- );
- },
- child: _Menu(
- children: [
- Text(GalleryLocalizations.of(context).demoCupertinoPickerTimer),
- Text(
- '${timer.inHours}:'
- '${(timer.inMinutes % 60).toString().padLeft(2, '0')}:'
- '${(timer.inSeconds % 60).toString().padLeft(2, '0')}',
- style: TextStyle(color: CupertinoColors.inactiveGray),
- ),
- ],
- ),
- );
- }
-
- @override
- Widget build(BuildContext context) {
- return CupertinoPageScaffold(
- navigationBar: CupertinoNavigationBar(
- automaticallyImplyLeading: false,
- middle: Text(GalleryLocalizations.of(context).demoCupertinoPickerTitle),
- ),
- child: DefaultTextStyle(
- style: CupertinoTheme.of(context).textTheme.textStyle,
- child: ListView(
- children: [
- const SizedBox(height: 32),
- _buildDatePicker(context),
- _buildTimePicker(context),
- _buildDateAndTimePicker(context),
- _buildCountdownTimerPicker(context),
- ],
- ),
- ),
- );
- }
-}
-
-class _BottomPicker extends StatelessWidget {
- const _BottomPicker({
- Key key,
- @required this.child,
- }) : assert(child != null),
- super(key: key);
-
- final Widget child;
-
- @override
- Widget build(BuildContext context) {
- return Container(
- height: 216,
- padding: const EdgeInsets.only(top: 6),
- color: CupertinoColors.systemBackground.resolveFrom(context),
- child: DefaultTextStyle(
- style: TextStyle(
- color: CupertinoColors.label.resolveFrom(context),
- fontSize: 22,
- ),
- child: GestureDetector(
- // Blocks taps from propagating to the modal sheet and popping.
- onTap: () {},
- child: SafeArea(
- top: false,
- child: child,
- ),
- ),
- ),
- );
- }
-}
-
-class _Menu extends StatelessWidget {
- const _Menu({
- Key key,
- @required this.children,
- }) : assert(children != null),
- super(key: key);
-
- final List children;
-
- @override
- Widget build(BuildContext context) {
- return Container(
- decoration: BoxDecoration(
- border: const Border(
- top: BorderSide(color: CupertinoColors.inactiveGray, width: 0),
- bottom: BorderSide(color: CupertinoColors.inactiveGray, width: 0),
- ),
- ),
- height: 44,
- child: Padding(
- padding: const EdgeInsets.symmetric(horizontal: 16),
- child: Row(
- mainAxisAlignment: MainAxisAlignment.spaceBetween,
- children: children,
- ),
- ),
- );
- }
-}
-
-// END
diff --git a/gallery/lib/demos/cupertino/cupertino_refresh_demo.dart b/gallery/lib/demos/cupertino/cupertino_refresh_demo.dart
deleted file mode 100644
index bc79a72ea..000000000
--- a/gallery/lib/demos/cupertino/cupertino_refresh_demo.dart
+++ /dev/null
@@ -1,74 +0,0 @@
-// Copyright 2019 The Flutter team. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-import 'dart:math' show Random;
-
-import 'package:flutter/cupertino.dart';
-import 'package:flutter/material.dart';
-import 'package:gallery/l10n/gallery_localizations.dart';
-
-// BEGIN cupertinoRefreshDemo
-
-class CupertinoRefreshControlDemo extends StatefulWidget {
- @override
- _CupertinoRefreshControlDemoState createState() =>
- _CupertinoRefreshControlDemoState();
-}
-
-class _CupertinoRefreshControlDemoState
- extends State {
- static const listCount = 20;
- var randomList = List.generate(listCount, (i) => i + 1);
-
- void _shuffleList() => randomList.shuffle(Random());
-
- @override
- Widget build(BuildContext context) {
- return CupertinoPageScaffold(
- child: CustomScrollView(
- // If left unspecified, the [CustomScrollView] appends an
- // [AlwaysScrollableScrollPhysics]. Behind the scene, the ScrollableState
- // will attach that [AlwaysScrollableScrollPhysics] to the output of
- // [ScrollConfiguration.of] which will be a [ClampingScrollPhysics]
- // on Android.
- // To demonstrate the iOS behavior in this demo and to ensure that the list
- // always scrolls, we specifically use a [BouncingScrollPhysics] combined
- // with a [AlwaysScrollableScrollPhysics]
- physics: const BouncingScrollPhysics(
- parent: AlwaysScrollableScrollPhysics(),
- ),
- slivers: [
- CupertinoSliverNavigationBar(
- automaticallyImplyLeading: false,
- largeTitle: Text(
- GalleryLocalizations.of(context).demoCupertinoPullToRefreshTitle,
- ),
- ),
- CupertinoSliverRefreshControl(
- onRefresh: () {
- return Future.delayed(const Duration(seconds: 1))
- ..then((_) {
- if (mounted) {
- setState(() => _shuffleList());
- }
- });
- },
- ),
- SliverList(
- delegate: SliverChildBuilderDelegate(
- (context, index) {
- final title = GalleryLocalizations.of(context)
- .starterAppDrawerItem(randomList[index]);
- return ListTile(title: Text(title));
- },
- childCount: listCount,
- ),
- ),
- ],
- ),
- );
- }
-}
-
-// END
diff --git a/gallery/lib/demos/cupertino/cupertino_segmented_control_demo.dart b/gallery/lib/demos/cupertino/cupertino_segmented_control_demo.dart
deleted file mode 100644
index 895633280..000000000
--- a/gallery/lib/demos/cupertino/cupertino_segmented_control_demo.dart
+++ /dev/null
@@ -1,87 +0,0 @@
-// Copyright 2019 The Flutter team. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-import 'package:flutter/cupertino.dart';
-import 'package:flutter/material.dart';
-
-import 'package:gallery/l10n/gallery_localizations.dart';
-
-// BEGIN cupertinoSegmentedControlDemo
-
-class CupertinoSegmentedControlDemo extends StatefulWidget {
- @override
- _CupertinoSegmentedControlDemoState createState() =>
- _CupertinoSegmentedControlDemoState();
-}
-
-class _CupertinoSegmentedControlDemoState
- extends State {
- int currentSegment = 0;
-
- void onValueChanged(int newValue) {
- setState(() {
- currentSegment = newValue;
- });
- }
-
- @override
- Widget build(BuildContext context) {
- final localizations = GalleryLocalizations.of(context);
- final segmentedControlMaxWidth = 500.0;
- final children = {
- 0: Text(localizations.colorsIndigo),
- 1: Text(localizations.colorsTeal),
- 2: Text(localizations.colorsCyan),
- };
-
- return CupertinoPageScaffold(
- navigationBar: CupertinoNavigationBar(
- automaticallyImplyLeading: false,
- middle: Text(
- localizations.demoCupertinoSegmentedControlTitle,
- ),
- ),
- child: DefaultTextStyle(
- style: CupertinoTheme.of(context)
- .textTheme
- .textStyle
- .copyWith(fontSize: 13),
- child: SafeArea(
- child: ListView(
- children: [
- const SizedBox(height: 16),
- SizedBox(
- width: segmentedControlMaxWidth,
- child: CupertinoSegmentedControl(
- children: children,
- onValueChanged: onValueChanged,
- groupValue: currentSegment,
- ),
- ),
- SizedBox(
- width: segmentedControlMaxWidth,
- child: Padding(
- padding: const EdgeInsets.all(16),
- child: CupertinoSlidingSegmentedControl(
- children: children,
- onValueChanged: onValueChanged,
- groupValue: currentSegment,
- ),
- ),
- ),
- Container(
- padding: const EdgeInsets.all(16),
- height: 300,
- alignment: Alignment.center,
- child: children[currentSegment],
- ),
- ],
- ),
- ),
- ),
- );
- }
-}
-
-// END
diff --git a/gallery/lib/demos/cupertino/cupertino_slider_demo.dart b/gallery/lib/demos/cupertino/cupertino_slider_demo.dart
deleted file mode 100644
index ed896ff79..000000000
--- a/gallery/lib/demos/cupertino/cupertino_slider_demo.dart
+++ /dev/null
@@ -1,94 +0,0 @@
-// Copyright 2019 The Flutter team. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-import 'package:flutter/cupertino.dart';
-
-import 'package:gallery/l10n/gallery_localizations.dart';
-
-// BEGIN cupertinoSliderDemo
-
-class CupertinoSliderDemo extends StatefulWidget {
- @override
- _CupertinoSliderDemoState createState() => _CupertinoSliderDemoState();
-}
-
-class _CupertinoSliderDemoState extends State {
- double _value = 25.0;
- double _discreteValue = 20.0;
-
- @override
- Widget build(BuildContext context) {
- return CupertinoPageScaffold(
- navigationBar: CupertinoNavigationBar(
- automaticallyImplyLeading: false,
- middle: Text(GalleryLocalizations.of(context).demoCupertinoSliderTitle),
- ),
- child: DefaultTextStyle(
- style: CupertinoTheme.of(context).textTheme.textStyle,
- child: Center(
- child: Column(
- mainAxisAlignment: MainAxisAlignment.spaceEvenly,
- children: [
- Column(
- mainAxisSize: MainAxisSize.min,
- children: [
- SizedBox(
- width: double.infinity,
- child: CupertinoSlider(
- value: _value,
- min: 0.0,
- max: 100.0,
- onChanged: (value) {
- setState(() {
- _value = value;
- });
- },
- ),
- ),
- MergeSemantics(
- child: Text(
- GalleryLocalizations.of(context)
- .demoCupertinoSliderContinuous(
- _value.toStringAsFixed(1),
- ),
- ),
- ),
- ],
- ),
- Column(
- mainAxisSize: MainAxisSize.min,
- children: [
- SizedBox(
- width: double.infinity,
- child: CupertinoSlider(
- value: _discreteValue,
- min: 0.0,
- max: 100.0,
- divisions: 5,
- onChanged: (value) {
- setState(() {
- _discreteValue = value;
- });
- },
- ),
- ),
- MergeSemantics(
- child: Text(
- GalleryLocalizations.of(context)
- .demoCupertinoSliderDiscrete(
- _discreteValue.toStringAsFixed(1),
- ),
- ),
- ),
- ],
- ),
- ],
- ),
- ),
- ),
- );
- }
-}
-
-// END
diff --git a/gallery/lib/demos/cupertino/cupertino_switch_demo.dart b/gallery/lib/demos/cupertino/cupertino_switch_demo.dart
deleted file mode 100644
index 6e6a16c11..000000000
--- a/gallery/lib/demos/cupertino/cupertino_switch_demo.dart
+++ /dev/null
@@ -1,47 +0,0 @@
-// Copyright 2019 The Flutter team. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-import 'package:flutter/cupertino.dart';
-
-import 'package:gallery/l10n/gallery_localizations.dart';
-
-// BEGIN cupertinoSwitchDemo
-
-class CupertinoSwitchDemo extends StatefulWidget {
- @override
- _CupertinoSwitchDemoState createState() => _CupertinoSwitchDemoState();
-}
-
-class _CupertinoSwitchDemoState extends State {
- bool _switchValue = false;
-
- @override
- Widget build(BuildContext context) {
- return CupertinoPageScaffold(
- navigationBar: CupertinoNavigationBar(
- automaticallyImplyLeading: false,
- middle: Text(
- GalleryLocalizations.of(context).demoSelectionControlsSwitchTitle,
- ),
- ),
- child: Center(
- child: Semantics(
- container: true,
- label:
- GalleryLocalizations.of(context).demoSelectionControlsSwitchTitle,
- child: CupertinoSwitch(
- value: _switchValue,
- onChanged: (value) {
- setState(() {
- _switchValue = value;
- });
- },
- ),
- ),
- ),
- );
- }
-}
-
-// END
diff --git a/gallery/lib/demos/cupertino/cupertino_tab_bar_demo.dart b/gallery/lib/demos/cupertino/cupertino_tab_bar_demo.dart
deleted file mode 100644
index 7eff3d190..000000000
--- a/gallery/lib/demos/cupertino/cupertino_tab_bar_demo.dart
+++ /dev/null
@@ -1,88 +0,0 @@
-// Copyright 2019 The Flutter team. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-import 'package:flutter/cupertino.dart';
-
-import 'package:gallery/l10n/gallery_localizations.dart';
-
-// BEGIN cupertinoNavigationDemo
-
-class _TabInfo {
- const _TabInfo(this.title, this.icon);
-
- final String title;
- final IconData icon;
-}
-
-class CupertinoTabBarDemo extends StatelessWidget {
- @override
- Widget build(BuildContext context) {
- final _tabInfo = [
- _TabInfo(
- GalleryLocalizations.of(context).cupertinoTabBarHomeTab,
- CupertinoIcons.home,
- ),
- _TabInfo(
- GalleryLocalizations.of(context).cupertinoTabBarChatTab,
- CupertinoIcons.conversation_bubble,
- ),
- _TabInfo(
- GalleryLocalizations.of(context).cupertinoTabBarProfileTab,
- CupertinoIcons.profile_circled,
- ),
- ];
-
- return DefaultTextStyle(
- style: CupertinoTheme.of(context).textTheme.textStyle,
- child: CupertinoTabScaffold(
- tabBar: CupertinoTabBar(
- items: [
- for (final tabInfo in _tabInfo)
- BottomNavigationBarItem(
- title: Text(tabInfo.title),
- icon: Icon(tabInfo.icon),
- ),
- ],
- ),
- tabBuilder: (context, index) {
- return CupertinoTabView(
- builder: (context) => _CupertinoDemoTab(
- title: _tabInfo[index].title,
- icon: _tabInfo[index].icon,
- ),
- defaultTitle: _tabInfo[index].title,
- );
- },
- ),
- );
- }
-}
-
-class _CupertinoDemoTab extends StatelessWidget {
- const _CupertinoDemoTab({
- Key key,
- @required this.title,
- @required this.icon,
- }) : super(key: key);
-
- final String title;
- final IconData icon;
-
- @override
- Widget build(BuildContext context) {
- return CupertinoPageScaffold(
- navigationBar: CupertinoNavigationBar(),
- backgroundColor: CupertinoColors.systemBackground,
- child: Center(
- child: Icon(
- icon,
- semanticLabel: title,
- size: 100,
- ),
- ),
- );
- }
-}
-
-// END
diff --git a/gallery/lib/demos/cupertino/cupertino_text_field_demo.dart b/gallery/lib/demos/cupertino/cupertino_text_field_demo.dart
deleted file mode 100644
index f728a85c4..000000000
--- a/gallery/lib/demos/cupertino/cupertino_text_field_demo.dart
+++ /dev/null
@@ -1,66 +0,0 @@
-// Copyright 2019 The Flutter team. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-import 'package:flutter/cupertino.dart';
-import 'package:gallery/l10n/gallery_localizations.dart';
-
-// BEGIN cupertinoTextFieldDemo
-
-class CupertinoTextFieldDemo extends StatelessWidget {
- @override
- Widget build(BuildContext context) {
- final localizations = GalleryLocalizations.of(context);
- return CupertinoPageScaffold(
- navigationBar: CupertinoNavigationBar(
- automaticallyImplyLeading: false,
- middle: Text(localizations.demoCupertinoTextFieldTitle),
- ),
- child: SafeArea(
- child: ListView(
- padding: const EdgeInsets.all(16),
- children: [
- Padding(
- padding: const EdgeInsets.symmetric(vertical: 8),
- child: CupertinoTextField(
- placeholder: localizations.demoTextFieldEmail,
- keyboardType: TextInputType.emailAddress,
- clearButtonMode: OverlayVisibilityMode.editing,
- autocorrect: false,
- ),
- ),
- Padding(
- padding: const EdgeInsets.symmetric(vertical: 8),
- child: CupertinoTextField(
- placeholder: localizations.rallyLoginPassword,
- clearButtonMode: OverlayVisibilityMode.editing,
- obscureText: true,
- autocorrect: false,
- ),
- ),
- CupertinoTextField(
- prefix: Icon(
- CupertinoIcons.padlock_solid,
- size: 28,
- ),
- padding: EdgeInsets.symmetric(horizontal: 6, vertical: 12),
- clearButtonMode: OverlayVisibilityMode.editing,
- keyboardType: TextInputType.number,
- decoration: BoxDecoration(
- border: Border(
- bottom: BorderSide(
- width: 0,
- color: CupertinoColors.inactiveGray,
- ),
- ),
- ),
- placeholder: localizations.demoCupertinoTextFieldPIN,
- ),
- ],
- ),
- ),
- );
- }
-}
-
-// END
diff --git a/gallery/lib/demos/material/banner_demo.dart b/gallery/lib/demos/material/banner_demo.dart
deleted file mode 100644
index 05e9bdd47..000000000
--- a/gallery/lib/demos/material/banner_demo.dart
+++ /dev/null
@@ -1,125 +0,0 @@
-// Copyright 2020 The Flutter team. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-import 'package:flutter/material.dart';
-import 'package:gallery/l10n/gallery_localizations.dart';
-
-// BEGIN bannerDemo
-
-enum BannerDemoAction {
- reset,
- showMultipleActions,
- showLeading,
-}
-
-class BannerDemo extends StatefulWidget {
- @override
- _BannerDemoState createState() => _BannerDemoState();
-}
-
-class _BannerDemoState extends State {
- static const _itemCount = 20;
- var _displayBanner = true;
- var _showMultipleActions = true;
- var _showLeading = true;
-
- void handleDemoAction(BannerDemoAction action) {
- setState(() {
- switch (action) {
- case BannerDemoAction.reset:
- _displayBanner = true;
- _showMultipleActions = true;
- _showLeading = true;
- break;
- case BannerDemoAction.showMultipleActions:
- _showMultipleActions = !_showMultipleActions;
- break;
- case BannerDemoAction.showLeading:
- _showLeading = !_showLeading;
- break;
- }
- });
- }
-
- @override
- Widget build(BuildContext context) {
- final colorScheme = Theme.of(context).colorScheme;
- final banner = MaterialBanner(
- content: Text(GalleryLocalizations.of(context).bannerDemoText),
- leading: _showLeading
- ? CircleAvatar(
- child: Icon(Icons.access_alarm, color: colorScheme.onPrimary),
- backgroundColor: colorScheme.primary,
- )
- : null,
- actions: [
- FlatButton(
- child: Text(GalleryLocalizations.of(context).signIn),
- onPressed: () {
- setState(() {
- _displayBanner = false;
- });
- },
- ),
- if (_showMultipleActions)
- FlatButton(
- child: Text(GalleryLocalizations.of(context).dismiss),
- onPressed: () {
- setState(() {
- _displayBanner = false;
- });
- },
- ),
- ],
- backgroundColor: colorScheme.background,
- );
-
- return Scaffold(
- appBar: AppBar(
- automaticallyImplyLeading: false,
- title: Text(GalleryLocalizations.of(context).demoBannerTitle),
- actions: [
- PopupMenuButton(
- onSelected: handleDemoAction,
- itemBuilder: (context) => >[
- PopupMenuItem(
- value: BannerDemoAction.reset,
- child:
- Text(GalleryLocalizations.of(context).bannerDemoResetText),
- ),
- const PopupMenuDivider(),
- CheckedPopupMenuItem(
- value: BannerDemoAction.showMultipleActions,
- checked: _showMultipleActions,
- child: Text(
- GalleryLocalizations.of(context).bannerDemoMultipleText),
- ),
- CheckedPopupMenuItem(
- value: BannerDemoAction.showLeading,
- checked: _showLeading,
- child: Text(
- GalleryLocalizations.of(context).bannerDemoLeadingText),
- ),
- ],
- ),
- ],
- ),
- body: ListView.builder(
- itemCount: _displayBanner ? _itemCount + 1 : _itemCount,
- itemBuilder: (context, index) {
- if (index == 0 && _displayBanner) {
- return banner;
- }
- return ListTile(
- title: Text(
- GalleryLocalizations.of(context)
- .starterAppDrawerItem(_displayBanner ? index : index + 1),
- ),
- );
- }),
- );
- }
-}
-
-// END
diff --git a/gallery/lib/demos/material/bottom_app_bar_demo.dart b/gallery/lib/demos/material/bottom_app_bar_demo.dart
deleted file mode 100644
index 05b3d3d88..000000000
--- a/gallery/lib/demos/material/bottom_app_bar_demo.dart
+++ /dev/null
@@ -1,169 +0,0 @@
-// Copyright 2019 The Flutter team. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-import 'package:flutter/material.dart';
-import 'package:gallery/l10n/gallery_localizations.dart';
-
-// BEGIN bottomAppBarDemo
-
-class BottomAppBarDemo extends StatefulWidget {
- @override
- State createState() => _BottomAppBarDemoState();
-}
-
-class _BottomAppBarDemoState extends State {
- var _showFab = true;
- var _showNotch = true;
- var _fabLocation = FloatingActionButtonLocation.endDocked;
-
- void _onShowNotchChanged(bool value) {
- setState(() {
- _showNotch = value;
- });
- }
-
- void _onShowFabChanged(bool value) {
- setState(() {
- _showFab = value;
- });
- }
-
- void _onFabLocationChanged(FloatingActionButtonLocation value) {
- setState(() {
- _fabLocation = value;
- });
- }
-
- @override
- Widget build(BuildContext context) {
- return Scaffold(
- appBar: AppBar(
- automaticallyImplyLeading: false,
- title: Text(GalleryLocalizations.of(context).demoBottomAppBarTitle),
- ),
- body: ListView(
- padding: const EdgeInsets.only(bottom: 88),
- children: [
- SwitchListTile(
- title: Text(
- GalleryLocalizations.of(context).demoFloatingButtonTitle,
- ),
- value: _showFab,
- onChanged: _onShowFabChanged,
- ),
- SwitchListTile(
- title: Text(GalleryLocalizations.of(context).bottomAppBarNotch),
- value: _showNotch,
- onChanged: _onShowNotchChanged,
- ),
- Padding(
- padding: const EdgeInsets.all(16),
- child: Text(GalleryLocalizations.of(context).bottomAppBarPosition),
- ),
- RadioListTile(
- title: Text(
- GalleryLocalizations.of(context).bottomAppBarPositionDockedEnd,
- ),
- value: FloatingActionButtonLocation.endDocked,
- groupValue: _fabLocation,
- onChanged: _onFabLocationChanged,
- ),
- RadioListTile(
- title: Text(
- GalleryLocalizations.of(context).bottomAppBarPositionDockedCenter,
- ),
- value: FloatingActionButtonLocation.centerDocked,
- groupValue: _fabLocation,
- onChanged: _onFabLocationChanged,
- ),
- RadioListTile(
- title: Text(
- GalleryLocalizations.of(context).bottomAppBarPositionFloatingEnd,
- ),
- value: FloatingActionButtonLocation.endFloat,
- groupValue: _fabLocation,
- onChanged: _onFabLocationChanged,
- ),
- RadioListTile(
- title: Text(
- GalleryLocalizations.of(context)
- .bottomAppBarPositionFloatingCenter,
- ),
- value: FloatingActionButtonLocation.centerFloat,
- groupValue: _fabLocation,
- onChanged: _onFabLocationChanged,
- ),
- ],
- ),
- floatingActionButton: _showFab
- ? FloatingActionButton(
- onPressed: () {
- print('Floating action button pressed');
- },
- child: Icon(Icons.add),
- tooltip: GalleryLocalizations.of(context).buttonTextCreate,
- )
- : null,
- floatingActionButtonLocation: _fabLocation,
- bottomNavigationBar: _DemoBottomAppBar(
- fabLocation: _fabLocation,
- shape: _showNotch ? CircularNotchedRectangle() : null,
- ),
- );
- }
-}
-
-class _DemoBottomAppBar extends StatelessWidget {
- const _DemoBottomAppBar({
- this.fabLocation,
- this.shape,
- });
-
- final FloatingActionButtonLocation fabLocation;
- final NotchedShape shape;
-
- static final centerLocations = [
- FloatingActionButtonLocation.centerDocked,
- FloatingActionButtonLocation.centerFloat,
- ];
-
- @override
- Widget build(BuildContext context) {
- return BottomAppBar(
- shape: shape,
- child: IconTheme(
- data: IconThemeData(color: Theme.of(context).colorScheme.onPrimary),
- child: Row(
- children: [
- IconButton(
- tooltip: MaterialLocalizations.of(context).openAppDrawerTooltip,
- icon: const Icon(Icons.menu),
- onPressed: () {
- print('Menu button pressed');
- },
- ),
- if (centerLocations.contains(fabLocation)) const Spacer(),
- IconButton(
- tooltip: GalleryLocalizations.of(context).starterAppTooltipSearch,
- icon: const Icon(Icons.search),
- onPressed: () {
- print('Search button pressed');
- },
- ),
- IconButton(
- tooltip:
- GalleryLocalizations.of(context).starterAppTooltipFavorite,
- icon: const Icon(Icons.favorite),
- onPressed: () {
- print('Favorite button pressed');
- },
- ),
- ],
- ),
- ),
- );
- }
-}
-
-// END
diff --git a/gallery/lib/demos/material/bottom_navigation_demo.dart b/gallery/lib/demos/material/bottom_navigation_demo.dart
deleted file mode 100644
index 202749214..000000000
--- a/gallery/lib/demos/material/bottom_navigation_demo.dart
+++ /dev/null
@@ -1,212 +0,0 @@
-// Copyright 2019 The Flutter team. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-import 'package:flutter/material.dart';
-
-import 'package:gallery/l10n/gallery_localizations.dart';
-
-// BEGIN bottomNavigationDemo
-
-enum BottomNavigationDemoType {
- withLabels,
- withoutLabels,
-}
-
-class BottomNavigationDemo extends StatefulWidget {
- BottomNavigationDemo({Key key, @required this.type}) : super(key: key);
-
- final BottomNavigationDemoType type;
-
- @override
- _BottomNavigationDemoState createState() => _BottomNavigationDemoState();
-}
-
-class _BottomNavigationDemoState extends State
- with TickerProviderStateMixin {
- int _currentIndex = 0;
- List<_NavigationIconView> _navigationViews;
-
- String _title(BuildContext context) {
- switch (widget.type) {
- case BottomNavigationDemoType.withLabels:
- return GalleryLocalizations.of(context)
- .demoBottomNavigationPersistentLabels;
- case BottomNavigationDemoType.withoutLabels:
- return GalleryLocalizations.of(context)
- .demoBottomNavigationSelectedLabel;
- }
- return '';
- }
-
- @override
- void didChangeDependencies() {
- super.didChangeDependencies();
- if (_navigationViews == null) {
- _navigationViews = <_NavigationIconView>[
- _NavigationIconView(
- icon: const Icon(Icons.add_comment),
- title: GalleryLocalizations.of(context).bottomNavigationCommentsTab,
- vsync: this,
- ),
- _NavigationIconView(
- icon: const Icon(Icons.calendar_today),
- title: GalleryLocalizations.of(context).bottomNavigationCalendarTab,
- vsync: this,
- ),
- _NavigationIconView(
- icon: const Icon(Icons.account_circle),
- title: GalleryLocalizations.of(context).bottomNavigationAccountTab,
- vsync: this,
- ),
- _NavigationIconView(
- icon: const Icon(Icons.alarm_on),
- title: GalleryLocalizations.of(context).bottomNavigationAlarmTab,
- vsync: this,
- ),
- _NavigationIconView(
- icon: const Icon(Icons.camera_enhance),
- title: GalleryLocalizations.of(context).bottomNavigationCameraTab,
- vsync: this,
- ),
- ];
-
- _navigationViews[_currentIndex].controller.value = 1;
- }
- }
-
- @override
- void dispose() {
- for (_NavigationIconView view in _navigationViews) {
- view.controller.dispose();
- }
- super.dispose();
- }
-
- Widget _buildTransitionsStack() {
- final List transitions = [];
-
- for (_NavigationIconView view in _navigationViews) {
- transitions.add(view.transition(context));
- }
-
- // We want to have the newly animating (fading in) views on top.
- transitions.sort((a, b) {
- final aAnimation = a.opacity;
- final bAnimation = b.opacity;
- final aValue = aAnimation.value;
- final bValue = bAnimation.value;
- return aValue.compareTo(bValue);
- });
-
- return Stack(children: transitions);
- }
-
- @override
- Widget build(BuildContext context) {
- final colorScheme = Theme.of(context).colorScheme;
- final textTheme = Theme.of(context).textTheme;
-
- var bottomNavigationBarItems = _navigationViews
- .map((navigationView) => navigationView.item)
- .toList();
- if (widget.type == BottomNavigationDemoType.withLabels) {
- bottomNavigationBarItems =
- bottomNavigationBarItems.sublist(0, _navigationViews.length - 2);
- _currentIndex =
- _currentIndex.clamp(0, bottomNavigationBarItems.length - 1).toInt();
- }
-
- return Scaffold(
- appBar: AppBar(
- automaticallyImplyLeading: false,
- title: Text(_title(context)),
- ),
- body: Center(
- child: _buildTransitionsStack(),
- ),
- bottomNavigationBar: BottomNavigationBar(
- showUnselectedLabels:
- widget.type == BottomNavigationDemoType.withLabels,
- items: bottomNavigationBarItems,
- currentIndex: _currentIndex,
- type: BottomNavigationBarType.fixed,
- selectedFontSize: textTheme.caption.fontSize,
- unselectedFontSize: textTheme.caption.fontSize,
- onTap: (index) {
- setState(() {
- _navigationViews[_currentIndex].controller.reverse();
- _currentIndex = index;
- _navigationViews[_currentIndex].controller.forward();
- });
- },
- selectedItemColor: colorScheme.onPrimary,
- unselectedItemColor: colorScheme.onPrimary.withOpacity(0.38),
- backgroundColor: colorScheme.primary,
- ),
- );
- }
-}
-
-class _NavigationIconView {
- _NavigationIconView({
- this.title,
- this.icon,
- TickerProvider vsync,
- }) : item = BottomNavigationBarItem(
- icon: icon,
- title: Text(title),
- ),
- controller = AnimationController(
- duration: kThemeAnimationDuration,
- vsync: vsync,
- ) {
- _animation = controller.drive(CurveTween(
- curve: const Interval(0.5, 1.0, curve: Curves.fastOutSlowIn),
- ));
- }
-
- final String title;
- final Widget icon;
- final BottomNavigationBarItem item;
- final AnimationController controller;
- Animation _animation;
-
- FadeTransition transition(BuildContext context) {
- return FadeTransition(
- opacity: _animation,
- child: Stack(
- children: [
- ExcludeSemantics(
- child: Center(
- child: Padding(
- padding: const EdgeInsets.all(16),
- child: ClipRRect(
- borderRadius: BorderRadius.circular(8),
- child: Image.asset(
- 'assets/demos/bottom_navigation_background.png',
- ),
- ),
- ),
- ),
- ),
- Center(
- child: IconTheme(
- data: IconThemeData(
- color: Colors.white,
- size: 80,
- ),
- child: Semantics(
- label: GalleryLocalizations.of(context)
- .bottomNavigationContentPlaceholder(title),
- child: icon,
- ),
- ),
- ),
- ],
- ),
- );
- }
-}
-
-// END
diff --git a/gallery/lib/demos/material/bottom_sheet_demo.dart b/gallery/lib/demos/material/bottom_sheet_demo.dart
deleted file mode 100644
index 0fd208e2a..000000000
--- a/gallery/lib/demos/material/bottom_sheet_demo.dart
+++ /dev/null
@@ -1,192 +0,0 @@
-// Copyright 2019 The Flutter team. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-import 'package:flutter/material.dart';
-
-import 'package:gallery/l10n/gallery_localizations.dart';
-
-enum BottomSheetDemoType {
- persistent,
- modal,
-}
-
-class BottomSheetDemo extends StatelessWidget {
- BottomSheetDemo({Key key, @required this.type}) : super(key: key);
-
- final BottomSheetDemoType type;
-
- String _title(BuildContext context) {
- switch (type) {
- case BottomSheetDemoType.persistent:
- return GalleryLocalizations.of(context).demoBottomSheetPersistentTitle;
- case BottomSheetDemoType.modal:
- return GalleryLocalizations.of(context).demoBottomSheetModalTitle;
- }
- return '';
- }
-
- Widget _bottomSheetDemo(BuildContext context) {
- switch (type) {
- case BottomSheetDemoType.persistent:
- return _PersistentBottomSheetDemo();
- break;
- case BottomSheetDemoType.modal:
- default:
- return _ModalBottomSheetDemo();
- break;
- }
- }
-
- @override
- Widget build(BuildContext context) {
- // We wrap the demo in a [Navigator] to make sure that the modal bottom
- // sheets gets dismissed when changing demo.
- return Navigator(
- // Adding [ValueKey] to make sure that the widget gets rebuilt when
- // changing type.
- key: ValueKey(type),
- onGenerateRoute: (settings) {
- return MaterialPageRoute(
- builder: (context) => Scaffold(
- appBar: AppBar(
- automaticallyImplyLeading: false,
- title: Text(_title(context)),
- ),
- floatingActionButton: FloatingActionButton(
- onPressed: () {},
- backgroundColor: Theme.of(context).colorScheme.secondary,
- child: Icon(
- Icons.add,
- semanticLabel:
- GalleryLocalizations.of(context).demoBottomSheetAddLabel,
- ),
- ),
- body: _bottomSheetDemo(context),
- ),
- settings: settings,
- );
- },
- );
- }
-}
-
-// BEGIN bottomSheetDemoModal#1 bottomSheetDemoPersistent#1
-
-class _BottomSheetContent extends StatelessWidget {
- @override
- Widget build(BuildContext context) {
- return Container(
- height: 300,
- child: Column(
- children: [
- Container(
- height: 70,
- child: Center(
- child: Text(
- GalleryLocalizations.of(context).demoBottomSheetHeader,
- textAlign: TextAlign.center,
- ),
- ),
- ),
- Divider(thickness: 1),
- Expanded(
- child: ListView.builder(
- itemCount: 21,
- itemBuilder: (context, index) {
- return ListTile(
- title: Text(GalleryLocalizations.of(context)
- .demoBottomSheetItem(index)),
- );
- },
- ),
- ),
- ],
- ),
- );
- }
-}
-
-// END bottomSheetDemoModal#1 bottomSheetDemoPersistent#1
-
-// BEGIN bottomSheetDemoModal#2
-
-class _ModalBottomSheetDemo extends StatelessWidget {
- void _showModalBottomSheet(BuildContext context) {
- showModalBottomSheet(
- context: context,
- builder: (context) {
- return _BottomSheetContent();
- },
- );
- }
-
- @override
- Widget build(BuildContext context) {
- return Center(
- child: RaisedButton(
- onPressed: () {
- _showModalBottomSheet(context);
- },
- child: Text(GalleryLocalizations.of(context).demoBottomSheetButtonText),
- ),
- );
- }
-}
-
-// END
-
-// BEGIN bottomSheetDemoPersistent#2
-
-class _PersistentBottomSheetDemo extends StatefulWidget {
- @override
- _PersistentBottomSheetDemoState createState() =>
- _PersistentBottomSheetDemoState();
-}
-
-class _PersistentBottomSheetDemoState
- extends State<_PersistentBottomSheetDemo> {
- VoidCallback _showBottomSheetCallback;
-
- @override
- void initState() {
- super.initState();
- _showBottomSheetCallback = _showPersistentBottomSheet;
- }
-
- void _showPersistentBottomSheet() {
- setState(() {
- // Disable the show bottom sheet button.
- _showBottomSheetCallback = null;
- });
-
- Scaffold.of(context)
- .showBottomSheet(
- (context) {
- return _BottomSheetContent();
- },
- elevation: 25,
- )
- .closed
- .whenComplete(() {
- if (mounted) {
- setState(() {
- // Re-enable the bottom sheet button.
- _showBottomSheetCallback = _showPersistentBottomSheet;
- });
- }
- });
- }
-
- @override
- Widget build(BuildContext context) {
- return Center(
- child: RaisedButton(
- onPressed: _showBottomSheetCallback,
- child: Text(GalleryLocalizations.of(context).demoBottomSheetButtonText),
- ),
- );
- }
-}
-
-// END
diff --git a/gallery/lib/demos/material/button_demo.dart b/gallery/lib/demos/material/button_demo.dart
deleted file mode 100644
index 346d97f4f..000000000
--- a/gallery/lib/demos/material/button_demo.dart
+++ /dev/null
@@ -1,214 +0,0 @@
-// Copyright 2019 The Flutter team. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-import 'package:flutter/material.dart';
-
-import 'package:gallery/l10n/gallery_localizations.dart';
-
-enum ButtonDemoType {
- flat,
- raised,
- outline,
- toggle,
- floating,
-}
-
-class ButtonDemo extends StatelessWidget {
- const ButtonDemo({Key key, this.type}) : super(key: key);
-
- final ButtonDemoType type;
-
- String _title(BuildContext context) {
- switch (type) {
- case ButtonDemoType.flat:
- return GalleryLocalizations.of(context).demoFlatButtonTitle;
- case ButtonDemoType.raised:
- return GalleryLocalizations.of(context).demoRaisedButtonTitle;
- case ButtonDemoType.outline:
- return GalleryLocalizations.of(context).demoOutlineButtonTitle;
- case ButtonDemoType.toggle:
- return GalleryLocalizations.of(context).demoToggleButtonTitle;
- case ButtonDemoType.floating:
- return GalleryLocalizations.of(context).demoFloatingButtonTitle;
- }
- return '';
- }
-
- @override
- Widget build(BuildContext context) {
- Widget buttons;
- switch (type) {
- case ButtonDemoType.flat:
- buttons = _FlatButtonDemo();
- break;
- case ButtonDemoType.raised:
- buttons = _RaisedButtonDemo();
- break;
- case ButtonDemoType.outline:
- buttons = _OutlineButtonDemo();
- break;
- case ButtonDemoType.toggle:
- buttons = _ToggleButtonsDemo();
- break;
- case ButtonDemoType.floating:
- buttons = _FloatingActionButtonDemo();
- break;
- }
-
- return Scaffold(
- appBar: AppBar(
- automaticallyImplyLeading: false,
- title: Text(_title(context)),
- ),
- body: buttons,
- );
- }
-}
-
-// BEGIN buttonDemoFlat
-
-class _FlatButtonDemo extends StatelessWidget {
- @override
- Widget build(BuildContext context) {
- return Center(
- child: Column(
- mainAxisSize: MainAxisSize.min,
- children: [
- FlatButton(
- child: Text(GalleryLocalizations.of(context).buttonText),
- onPressed: () {},
- ),
- SizedBox(height: 12),
- FlatButton.icon(
- icon: const Icon(Icons.add, size: 18),
- label: Text(GalleryLocalizations.of(context).buttonText),
- onPressed: () {},
- ),
- ],
- ),
- );
- }
-}
-
-// END
-
-// BEGIN buttonDemoRaised
-
-class _RaisedButtonDemo extends StatelessWidget {
- @override
- Widget build(BuildContext context) {
- return Center(
- child: Column(
- mainAxisSize: MainAxisSize.min,
- children: [
- RaisedButton(
- child: Text(GalleryLocalizations.of(context).buttonText),
- onPressed: () {},
- ),
- SizedBox(height: 12),
- RaisedButton.icon(
- icon: const Icon(Icons.add, size: 18),
- label: Text(GalleryLocalizations.of(context).buttonText),
- onPressed: () {},
- ),
- ],
- ),
- );
- }
-}
-
-// END
-
-// BEGIN buttonDemoOutline
-
-class _OutlineButtonDemo extends StatelessWidget {
- @override
- Widget build(BuildContext context) {
- return Center(
- child: Column(
- mainAxisSize: MainAxisSize.min,
- children: [
- OutlineButton(
- // TODO: Should update to OutlineButton follow material spec.
- highlightedBorderColor:
- Theme.of(context).colorScheme.onSurface.withOpacity(0.12),
- child: Text(GalleryLocalizations.of(context).buttonText),
- onPressed: () {},
- ),
- SizedBox(height: 12),
- OutlineButton.icon(
- // TODO: Should update to OutlineButton follow material spec.
- highlightedBorderColor:
- Theme.of(context).colorScheme.onSurface.withOpacity(0.12),
- icon: const Icon(Icons.add, size: 18),
- label: Text(GalleryLocalizations.of(context).buttonText),
- onPressed: () {},
- ),
- ],
- ),
- );
- }
-}
-
-// END
-
-// BEGIN buttonDemoToggle
-
-class _ToggleButtonsDemo extends StatefulWidget {
- @override
- _ToggleButtonsDemoState createState() => _ToggleButtonsDemoState();
-}
-
-class _ToggleButtonsDemoState extends State<_ToggleButtonsDemo> {
- final isSelected = [false, false, false];
-
- @override
- Widget build(BuildContext context) {
- return Center(
- child: ToggleButtons(
- children: [
- Icon(Icons.ac_unit),
- Icon(Icons.call),
- Icon(Icons.cake),
- ],
- onPressed: (index) {
- setState(() {
- isSelected[index] = !isSelected[index];
- });
- },
- isSelected: isSelected,
- ),
- );
- }
-}
-
-// END
-
-// BEGIN buttonDemoFloating
-
-class _FloatingActionButtonDemo extends StatelessWidget {
- @override
- Widget build(BuildContext context) {
- return Center(
- child: Column(
- mainAxisSize: MainAxisSize.min,
- children: [
- FloatingActionButton(
- child: const Icon(Icons.add),
- onPressed: () {},
- tooltip: GalleryLocalizations.of(context).buttonTextCreate,
- ),
- SizedBox(height: 20),
- FloatingActionButton.extended(
- icon: const Icon(Icons.add),
- label: Text(GalleryLocalizations.of(context).buttonTextCreate),
- onPressed: () {},
- ),
- ],
- ),
- );
- }
-}
-
-// END
diff --git a/gallery/lib/demos/material/cards_demo.dart b/gallery/lib/demos/material/cards_demo.dart
deleted file mode 100644
index 0a7fa3b96..000000000
--- a/gallery/lib/demos/material/cards_demo.dart
+++ /dev/null
@@ -1,411 +0,0 @@
-// Copyright 2020 The Flutter team. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-import 'package:flutter/foundation.dart';
-import 'package:flutter/material.dart';
-import 'package:gallery/l10n/gallery_localizations.dart';
-
-const String _kGalleryAssetsPackage = 'flutter_gallery_assets';
-
-// BEGIN cardsDemo
-
-enum CardDemoType {
- standard,
- tappable,
- selectable,
-}
-
-class TravelDestination {
- const TravelDestination({
- @required this.assetName,
- @required this.assetPackage,
- @required this.title,
- @required this.description,
- @required this.city,
- @required this.location,
- this.type = CardDemoType.standard,
- }) : assert(assetName != null),
- assert(assetPackage != null),
- assert(title != null),
- assert(description != null),
- assert(city != null),
- assert(location != null);
-
- final String assetName;
- final String assetPackage;
- final String title;
- final String description;
- final String city;
- final String location;
- final CardDemoType type;
-}
-
-List destinations(BuildContext context) => [
- TravelDestination(
- assetName: 'places/india_thanjavur_market.png',
- assetPackage: _kGalleryAssetsPackage,
- title:
- GalleryLocalizations.of(context).cardsDemoTravelDestinationTitle1,
- description: GalleryLocalizations.of(context)
- .cardsDemoTravelDestinationDescription1,
- city: GalleryLocalizations.of(context).cardsDemoTravelDestinationCity1,
- location: GalleryLocalizations.of(context)
- .cardsDemoTravelDestinationLocation1,
- ),
- TravelDestination(
- assetName: 'places/india_chettinad_silk_maker.png',
- assetPackage: _kGalleryAssetsPackage,
- title:
- GalleryLocalizations.of(context).cardsDemoTravelDestinationTitle2,
- description: GalleryLocalizations.of(context)
- .cardsDemoTravelDestinationDescription2,
- city: GalleryLocalizations.of(context).cardsDemoTravelDestinationCity2,
- location: GalleryLocalizations.of(context)
- .cardsDemoTravelDestinationLocation2,
- type: CardDemoType.tappable,
- ),
- TravelDestination(
- assetName: 'places/india_tanjore_thanjavur_temple.png',
- assetPackage: _kGalleryAssetsPackage,
- title:
- GalleryLocalizations.of(context).cardsDemoTravelDestinationTitle3,
- description: GalleryLocalizations.of(context)
- .cardsDemoTravelDestinationDescription3,
- city: GalleryLocalizations.of(context).cardsDemoTravelDestinationCity1,
- location: GalleryLocalizations.of(context)
- .cardsDemoTravelDestinationLocation1,
- type: CardDemoType.selectable,
- ),
- ];
-
-class TravelDestinationItem extends StatelessWidget {
- const TravelDestinationItem({Key key, @required this.destination, this.shape})
- : assert(destination != null),
- super(key: key);
-
- // This height will allow for all the Card's content to fit comfortably within the card.
- static const height = 338.0;
- final TravelDestination destination;
- final ShapeBorder shape;
-
- @override
- Widget build(BuildContext context) {
- return SafeArea(
- top: false,
- bottom: false,
- child: Padding(
- padding: const EdgeInsets.all(8),
- child: Column(
- children: [
- SectionTitle(
- title:
- GalleryLocalizations.of(context).settingsTextScalingNormal),
- SizedBox(
- height: height,
- child: Card(
- // This ensures that the Card's children are clipped correctly.
- clipBehavior: Clip.antiAlias,
- shape: shape,
- child: TravelDestinationContent(destination: destination),
- ),
- ),
- ],
- ),
- ),
- );
- }
-}
-
-class TappableTravelDestinationItem extends StatelessWidget {
- const TappableTravelDestinationItem(
- {Key key, @required this.destination, this.shape})
- : assert(destination != null),
- super(key: key);
-
- // This height will allow for all the Card's content to fit comfortably within the card.
- static const height = 298.0;
- final TravelDestination destination;
- final ShapeBorder shape;
-
- @override
- Widget build(BuildContext context) {
- return SafeArea(
- top: false,
- bottom: false,
- child: Padding(
- padding: const EdgeInsets.all(8),
- child: Column(
- children: [
- SectionTitle(
- title: GalleryLocalizations.of(context).cardsDemoTappable),
- SizedBox(
- height: height,
- child: Card(
- // This ensures that the Card's children (including the ink splash) are clipped correctly.
- clipBehavior: Clip.antiAlias,
- shape: shape,
- child: InkWell(
- onTap: () {
- print('Card was tapped');
- },
- // Generally, material cards use onSurface with 12% opacity for the pressed state.
- splashColor:
- Theme.of(context).colorScheme.onSurface.withOpacity(0.12),
- // Generally, material cards do not have a highlight overlay.
- highlightColor: Colors.transparent,
- child: TravelDestinationContent(destination: destination),
- ),
- ),
- ),
- ],
- ),
- ),
- );
- }
-}
-
-class SelectableTravelDestinationItem extends StatefulWidget {
- const SelectableTravelDestinationItem(
- {Key key, @required this.destination, this.shape})
- : assert(destination != null),
- super(key: key);
-
- final TravelDestination destination;
- final ShapeBorder shape;
-
- @override
- _SelectableTravelDestinationItemState createState() =>
- _SelectableTravelDestinationItemState();
-}
-
-class _SelectableTravelDestinationItemState
- extends State {
- // This height will allow for all the Card's content to fit comfortably within the card.
- static const height = 298.0;
- var _isSelected = false;
-
- @override
- Widget build(BuildContext context) {
- final ColorScheme colorScheme = Theme.of(context).colorScheme;
-
- return SafeArea(
- top: false,
- bottom: false,
- child: Padding(
- padding: const EdgeInsets.all(8),
- child: Column(
- children: [
- SectionTitle(
- title: GalleryLocalizations.of(context).cardsDemoSelectable),
- SizedBox(
- height: height,
- child: Card(
- // This ensures that the Card's children (including the ink splash) are clipped correctly.
- clipBehavior: Clip.antiAlias,
- shape: widget.shape,
- child: InkWell(
- onLongPress: () {
- print('Selectable card state changed');
- setState(() {
- _isSelected = !_isSelected;
- });
- },
- // Generally, material cards use onSurface with 12% opacity for the pressed state.
- splashColor: colorScheme.onSurface.withOpacity(0.12),
- // Generally, material cards do not have a highlight overlay.
- highlightColor: Colors.transparent,
- child: Stack(
- children: [
- Container(
- color: _isSelected
- // Generally, material cards use primary with 8% opacity for the selected state.
- // See: https://material.io/design/interaction/states.html#anatomy
- ? colorScheme.primary.withOpacity(0.08)
- : Colors.transparent,
- ),
- TravelDestinationContent(destination: widget.destination),
- Align(
- alignment: Alignment.topRight,
- child: Padding(
- padding: const EdgeInsets.all(8),
- child: Icon(
- Icons.check_circle,
- color: _isSelected
- ? colorScheme.primary
- : Colors.transparent,
- ),
- ),
- ),
- ],
- ),
- ),
- ),
- ),
- ],
- ),
- ),
- );
- }
-}
-
-class SectionTitle extends StatelessWidget {
- const SectionTitle({
- Key key,
- this.title,
- }) : super(key: key);
-
- final String title;
-
- @override
- Widget build(BuildContext context) {
- return Padding(
- padding: const EdgeInsets.fromLTRB(4, 4, 4, 12),
- child: Align(
- alignment: Alignment.centerLeft,
- child: Text(title, style: Theme.of(context).textTheme.subhead),
- ),
- );
- }
-}
-
-class TravelDestinationContent extends StatelessWidget {
- const TravelDestinationContent({Key key, @required this.destination})
- : assert(destination != null),
- super(key: key);
-
- final TravelDestination destination;
-
- @override
- Widget build(BuildContext context) {
- final ThemeData theme = Theme.of(context);
- final TextStyle titleStyle =
- theme.textTheme.headline.copyWith(color: Colors.white);
- final TextStyle descriptionStyle = theme.textTheme.subhead;
-
- return Column(
- crossAxisAlignment: CrossAxisAlignment.start,
- children: [
- SizedBox(
- height: 184,
- child: Stack(
- children: [
- Positioned.fill(
- // In order to have the ink splash appear above the image, you
- // must use Ink.image. This allows the image to be painted as
- // part of the Material and display ink effects above it. Using
- // a standard Image will obscure the ink splash.
- child: Ink.image(
- image: AssetImage(destination.assetName,
- package: destination.assetPackage),
- fit: BoxFit.cover,
- child: Container(),
- ),
- ),
- Positioned(
- bottom: 16,
- left: 16,
- right: 16,
- child: FittedBox(
- fit: BoxFit.scaleDown,
- alignment: Alignment.centerLeft,
- child: Text(
- destination.title,
- style: titleStyle,
- ),
- ),
- ),
- ],
- ),
- ),
- // Description and share/explore buttons.
- Padding(
- padding: const EdgeInsets.fromLTRB(16, 16, 16, 0),
- child: DefaultTextStyle(
- softWrap: false,
- overflow: TextOverflow.ellipsis,
- style: descriptionStyle,
- child: Column(
- crossAxisAlignment: CrossAxisAlignment.start,
- children: [
- // This array contains the three line description on each card
- // demo.
- Padding(
- padding: const EdgeInsets.only(bottom: 8),
- child: Text(
- destination.description,
- style: descriptionStyle.copyWith(color: Colors.black54),
- ),
- ),
- Text(destination.city),
- Text(destination.location),
- ],
- ),
- ),
- ),
- if (destination.type == CardDemoType.standard)
- // share, explore buttons
- ButtonBar(
- alignment: MainAxisAlignment.start,
- children: [
- FlatButton(
- child: Text(GalleryLocalizations.of(context).demoMenuShare,
- semanticsLabel: GalleryLocalizations.of(context)
- .cardsDemoShareSemantics(destination.title)),
- textColor: Colors.amber.shade500,
- onPressed: () {
- print('pressed');
- },
- ),
- FlatButton(
- child: Text(GalleryLocalizations.of(context).cardsDemoExplore,
- semanticsLabel: GalleryLocalizations.of(context)
- .cardsDemoExploreSemantics(destination.title)),
- textColor: Colors.amber.shade500,
- onPressed: () {
- print('pressed');
- },
- ),
- ],
- ),
- ],
- );
- }
-}
-
-class CardsDemo extends StatefulWidget {
- @override
- _CardsDemoState createState() => _CardsDemoState();
-}
-
-class _CardsDemoState extends State {
- @override
- Widget build(BuildContext context) {
- return Scaffold(
- appBar: AppBar(
- automaticallyImplyLeading: false,
- title: Text(GalleryLocalizations.of(context).demoCardTitle),
- ),
- body: Scrollbar(
- child: ListView(
- padding: const EdgeInsets.only(top: 8, left: 8, right: 8),
- children: [
- for (final destination in destinations(context))
- Container(
- margin: const EdgeInsets.only(bottom: 8),
- child: (destination.type == CardDemoType.standard)
- ? TravelDestinationItem(destination: destination)
- : destination.type == CardDemoType.tappable
- ? TappableTravelDestinationItem(
- destination: destination)
- : SelectableTravelDestinationItem(
- destination: destination),
- ),
- ],
- ),
- ),
- );
- }
-}
-
-// END
diff --git a/gallery/lib/demos/material/chip_demo.dart b/gallery/lib/demos/material/chip_demo.dart
deleted file mode 100644
index 24a9e8495..000000000
--- a/gallery/lib/demos/material/chip_demo.dart
+++ /dev/null
@@ -1,215 +0,0 @@
-// Copyright 2019 The Flutter team. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-import 'package:flutter/material.dart';
-import 'package:gallery/l10n/gallery_localizations.dart';
-
-enum ChipDemoType {
- action,
- choice,
- filter,
- input,
-}
-
-class ChipDemo extends StatelessWidget {
- const ChipDemo({Key key, this.type}) : super(key: key);
-
- final ChipDemoType type;
-
- String _title(BuildContext context) {
- switch (type) {
- case ChipDemoType.action:
- return GalleryLocalizations.of(context).demoActionChipTitle;
- case ChipDemoType.choice:
- return GalleryLocalizations.of(context).demoChoiceChipTitle;
- case ChipDemoType.filter:
- return GalleryLocalizations.of(context).demoFilterChipTitle;
- case ChipDemoType.input:
- return GalleryLocalizations.of(context).demoInputChipTitle;
- }
- return '';
- }
-
- @override
- Widget build(BuildContext context) {
- Widget buttons;
- switch (type) {
- case ChipDemoType.action:
- buttons = _ActionChipDemo();
- break;
- case ChipDemoType.choice:
- buttons = _ChoiceChipDemo();
- break;
- case ChipDemoType.filter:
- buttons = _FilterChipDemo();
- break;
- case ChipDemoType.input:
- buttons = _InputChipDemo();
- break;
- }
-
- return Scaffold(
- appBar: AppBar(
- automaticallyImplyLeading: false,
- title: Text(_title(context)),
- ),
- body: buttons,
- );
- }
-}
-
-// BEGIN chipDemoAction
-
-class _ActionChipDemo extends StatelessWidget {
- @override
- Widget build(BuildContext context) {
- return Center(
- child: ActionChip(
- onPressed: () {},
- avatar: Icon(
- Icons.brightness_5,
- color: Colors.black54,
- ),
- label: Text(GalleryLocalizations.of(context).chipTurnOnLights),
- ),
- );
- }
-}
-
-// END
-
-// BEGIN chipDemoChoice
-
-class _ChoiceChipDemo extends StatefulWidget {
- @override
- _ChoiceChipDemoState createState() => _ChoiceChipDemoState();
-}
-
-class _ChoiceChipDemoState extends State<_ChoiceChipDemo> {
- int indexSelected = -1;
-
- @override
- Widget build(BuildContext context) {
- return Center(
- child: Wrap(
- children: [
- ChoiceChip(
- label: Text(GalleryLocalizations.of(context).chipSmall),
- selected: indexSelected == 0,
- onSelected: (value) {
- setState(() {
- indexSelected = value ? 0 : -1;
- });
- },
- ),
- SizedBox(width: 8),
- ChoiceChip(
- label: Text(GalleryLocalizations.of(context).chipMedium),
- selected: indexSelected == 1,
- onSelected: (value) {
- setState(() {
- indexSelected = value ? 1 : -1;
- });
- },
- ),
- SizedBox(width: 8),
- ChoiceChip(
- label: Text(GalleryLocalizations.of(context).chipLarge),
- selected: indexSelected == 2,
- onSelected: (value) {
- setState(() {
- indexSelected = value ? 2 : -1;
- });
- },
- ),
- ],
- ),
- );
- }
-}
-
-// END
-
-// BEGIN chipDemoFilter
-
-class _FilterChipDemo extends StatefulWidget {
- @override
- _FilterChipDemoState createState() => _FilterChipDemoState();
-}
-
-class _FilterChipDemoState extends State<_FilterChipDemo> {
- bool isSelectedElevator = false;
- bool isSelectedWasher = false;
- bool isSelectedFireplace = false;
-
- @override
- Widget build(BuildContext context) {
- final chips = [
- FilterChip(
- label: Text(GalleryLocalizations.of(context).chipElevator),
- selected: isSelectedElevator,
- onSelected: (value) {
- setState(() {
- isSelectedElevator = !isSelectedElevator;
- });
- },
- ),
- FilterChip(
- label: Text(GalleryLocalizations.of(context).chipWasher),
- selected: isSelectedWasher,
- onSelected: (value) {
- setState(() {
- isSelectedWasher = !isSelectedWasher;
- });
- },
- ),
- FilterChip(
- label: Text(GalleryLocalizations.of(context).chipFireplace),
- selected: isSelectedFireplace,
- onSelected: (value) {
- setState(() {
- isSelectedFireplace = !isSelectedFireplace;
- });
- },
- ),
- ];
-
- return Center(
- child: Wrap(
- children: [
- for (final chip in chips)
- Padding(
- padding: const EdgeInsets.all(4),
- child: chip,
- )
- ],
- ),
- );
- }
-}
-
-// END
-
-// BEGIN chipDemoInput
-
-class _InputChipDemo extends StatelessWidget {
- @override
- Widget build(BuildContext context) {
- return Center(
- child: InputChip(
- onPressed: () {},
- onDeleted: () {},
- avatar: Icon(
- Icons.directions_bike,
- size: 20,
- color: Colors.black54,
- ),
- deleteIconColor: Colors.black54,
- label: Text(GalleryLocalizations.of(context).chipBiking),
- ),
- );
- }
-}
-
-// END
diff --git a/gallery/lib/demos/material/data_table_demo.dart b/gallery/lib/demos/material/data_table_demo.dart
deleted file mode 100644
index 02149ece1..000000000
--- a/gallery/lib/demos/material/data_table_demo.dart
+++ /dev/null
@@ -1,551 +0,0 @@
-// Copyright 2019 The Flutter team. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-import 'package:flutter/material.dart';
-import 'package:flutter/rendering.dart';
-import 'package:gallery/data/gallery_options.dart';
-import 'package:gallery/l10n/gallery_localizations.dart';
-import 'package:intl/intl.dart';
-
-// BEGIN dataTableDemo
-
-class DataTableDemo extends StatefulWidget {
- @override
- _DataTableDemoState createState() => _DataTableDemoState();
-}
-
-class _DataTableDemoState extends State {
- int _rowsPerPage = PaginatedDataTable.defaultRowsPerPage;
- int _sortColumnIndex;
- bool _sortAscending = true;
- _DessertDataSource _dessertsDataSource;
-
- @override
- void didChangeDependencies() {
- super.didChangeDependencies();
- if (_dessertsDataSource == null) {
- _dessertsDataSource = _DessertDataSource(context);
- }
- }
-
- void _sort(
- Comparable getField(_Dessert d), int columnIndex, bool ascending) {
- _dessertsDataSource._sort(getField, ascending);
- setState(() {
- _sortColumnIndex = columnIndex;
- _sortAscending = ascending;
- });
- }
-
- @override
- Widget build(BuildContext context) {
- final localizations = GalleryLocalizations.of(context);
- return Scaffold(
- appBar: AppBar(
- automaticallyImplyLeading: false,
- title: Text(localizations.demoDataTableTitle),
- ),
- body: Scrollbar(
- child: ListView(
- padding: const EdgeInsets.all(16),
- children: [
- PaginatedDataTable(
- header: Text(localizations.dataTableHeader),
- rowsPerPage: _rowsPerPage,
- onRowsPerPageChanged: (value) {
- setState(() {
- _rowsPerPage = value;
- });
- },
- sortColumnIndex: _sortColumnIndex,
- sortAscending: _sortAscending,
- onSelectAll: _dessertsDataSource._selectAll,
- columns: [
- DataColumn(
- label: Text(localizations.dataTableColumnDessert),
- onSort: (columnIndex, ascending) =>
- _sort((d) => d.name, columnIndex, ascending),
- ),
- DataColumn(
- label: Text(localizations.dataTableColumnCalories),
- numeric: true,
- onSort: (columnIndex, ascending) =>
- _sort((d) => d.calories, columnIndex, ascending),
- ),
- DataColumn(
- label: Text(localizations.dataTableColumnFat),
- numeric: true,
- onSort: (columnIndex, ascending) =>
- _sort((d) => d.fat, columnIndex, ascending),
- ),
- DataColumn(
- label: Text(localizations.dataTableColumnCarbs),
- numeric: true,
- onSort: (columnIndex, ascending) =>
- _sort((d) => d.carbs, columnIndex, ascending),
- ),
- DataColumn(
- label: Text(localizations.dataTableColumnProtein),
- numeric: true,
- onSort: (columnIndex, ascending) =>
- _sort((d) => d.protein, columnIndex, ascending),
- ),
- DataColumn(
- label: Text(localizations.dataTableColumnSodium),
- numeric: true,
- onSort: (columnIndex, ascending) =>
- _sort((d) => d.sodium, columnIndex, ascending),
- ),
- DataColumn(
- label: Text(localizations.dataTableColumnCalcium),
- numeric: true,
- onSort: (columnIndex, ascending) =>
- _sort((d) => d.calcium, columnIndex, ascending),
- ),
- DataColumn(
- label: Text(localizations.dataTableColumnIron),
- numeric: true,
- onSort: (columnIndex, ascending) =>
- _sort((d) => d.iron, columnIndex, ascending),
- ),
- ],
- source: _dessertsDataSource,
- ),
- ],
- ),
- ),
- );
- }
-}
-
-class _Dessert {
- _Dessert(this.name, this.calories, this.fat, this.carbs, this.protein,
- this.sodium, this.calcium, this.iron);
- final String name;
- final int calories;
- final double fat;
- final int carbs;
- final double protein;
- final int sodium;
- final int calcium;
- final int iron;
-
- bool selected = false;
-}
-
-class _DessertDataSource extends DataTableSource {
- _DessertDataSource(this.context) {
- final localizations = GalleryLocalizations.of(context);
- _desserts = <_Dessert>[
- _Dessert(
- localizations.dataTableRowFrozenYogurt,
- 159,
- 6.0,
- 24,
- 4.0,
- 87,
- 14,
- 1,
- ),
- _Dessert(
- localizations.dataTableRowIceCreamSandwich,
- 237,
- 9.0,
- 37,
- 4.3,
- 129,
- 8,
- 1,
- ),
- _Dessert(
- localizations.dataTableRowEclair,
- 262,
- 16.0,
- 24,
- 6.0,
- 337,
- 6,
- 7,
- ),
- _Dessert(
- localizations.dataTableRowCupcake,
- 305,
- 3.7,
- 67,
- 4.3,
- 413,
- 3,
- 8,
- ),
- _Dessert(
- localizations.dataTableRowGingerbread,
- 356,
- 16.0,
- 49,
- 3.9,
- 327,
- 7,
- 16,
- ),
- _Dessert(
- localizations.dataTableRowJellyBean,
- 375,
- 0.0,
- 94,
- 0.0,
- 50,
- 0,
- 0,
- ),
- _Dessert(
- localizations.dataTableRowLollipop,
- 392,
- 0.2,
- 98,
- 0.0,
- 38,
- 0,
- 2,
- ),
- _Dessert(
- localizations.dataTableRowHoneycomb,
- 408,
- 3.2,
- 87,
- 6.5,
- 562,
- 0,
- 45,
- ),
- _Dessert(
- localizations.dataTableRowDonut,
- 452,
- 25.0,
- 51,
- 4.9,
- 326,
- 2,
- 22,
- ),
- _Dessert(
- localizations.dataTableRowApplePie,
- 518,
- 26.0,
- 65,
- 7.0,
- 54,
- 12,
- 6,
- ),
- _Dessert(
- localizations.dataTableRowWithSugar(
- localizations.dataTableRowFrozenYogurt,
- ),
- 168,
- 6.0,
- 26,
- 4.0,
- 87,
- 14,
- 1,
- ),
- _Dessert(
- localizations.dataTableRowWithSugar(
- localizations.dataTableRowIceCreamSandwich,
- ),
- 246,
- 9.0,
- 39,
- 4.3,
- 129,
- 8,
- 1,
- ),
- _Dessert(
- localizations.dataTableRowWithSugar(
- localizations.dataTableRowEclair,
- ),
- 271,
- 16.0,
- 26,
- 6.0,
- 337,
- 6,
- 7,
- ),
- _Dessert(
- localizations.dataTableRowWithSugar(
- localizations.dataTableRowCupcake,
- ),
- 314,
- 3.7,
- 69,
- 4.3,
- 413,
- 3,
- 8,
- ),
- _Dessert(
- localizations.dataTableRowWithSugar(
- localizations.dataTableRowGingerbread,
- ),
- 345,
- 16.0,
- 51,
- 3.9,
- 327,
- 7,
- 16,
- ),
- _Dessert(
- localizations.dataTableRowWithSugar(
- localizations.dataTableRowJellyBean,
- ),
- 364,
- 0.0,
- 96,
- 0.0,
- 50,
- 0,
- 0,
- ),
- _Dessert(
- localizations.dataTableRowWithSugar(
- localizations.dataTableRowLollipop,
- ),
- 401,
- 0.2,
- 100,
- 0.0,
- 38,
- 0,
- 2,
- ),
- _Dessert(
- localizations.dataTableRowWithSugar(
- localizations.dataTableRowHoneycomb,
- ),
- 417,
- 3.2,
- 89,
- 6.5,
- 562,
- 0,
- 45,
- ),
- _Dessert(
- localizations.dataTableRowWithSugar(
- localizations.dataTableRowDonut,
- ),
- 461,
- 25.0,
- 53,
- 4.9,
- 326,
- 2,
- 22,
- ),
- _Dessert(
- localizations.dataTableRowWithSugar(
- localizations.dataTableRowApplePie,
- ),
- 527,
- 26.0,
- 67,
- 7.0,
- 54,
- 12,
- 6,
- ),
- _Dessert(
- localizations.dataTableRowWithHoney(
- localizations.dataTableRowFrozenYogurt,
- ),
- 223,
- 6.0,
- 36,
- 4.0,
- 87,
- 14,
- 1,
- ),
- _Dessert(
- localizations.dataTableRowWithHoney(
- localizations.dataTableRowIceCreamSandwich,
- ),
- 301,
- 9.0,
- 49,
- 4.3,
- 129,
- 8,
- 1,
- ),
- _Dessert(
- localizations.dataTableRowWithHoney(
- localizations.dataTableRowEclair,
- ),
- 326,
- 16.0,
- 36,
- 6.0,
- 337,
- 6,
- 7,
- ),
- _Dessert(
- localizations.dataTableRowWithHoney(
- localizations.dataTableRowCupcake,
- ),
- 369,
- 3.7,
- 79,
- 4.3,
- 413,
- 3,
- 8,
- ),
- _Dessert(
- localizations.dataTableRowWithHoney(
- localizations.dataTableRowGingerbread,
- ),
- 420,
- 16.0,
- 61,
- 3.9,
- 327,
- 7,
- 16,
- ),
- _Dessert(
- localizations.dataTableRowWithHoney(
- localizations.dataTableRowJellyBean,
- ),
- 439,
- 0.0,
- 106,
- 0.0,
- 50,
- 0,
- 0,
- ),
- _Dessert(
- localizations.dataTableRowWithHoney(
- localizations.dataTableRowLollipop,
- ),
- 456,
- 0.2,
- 110,
- 0.0,
- 38,
- 0,
- 2,
- ),
- _Dessert(
- localizations.dataTableRowWithHoney(
- localizations.dataTableRowHoneycomb,
- ),
- 472,
- 3.2,
- 99,
- 6.5,
- 562,
- 0,
- 45,
- ),
- _Dessert(
- localizations.dataTableRowWithHoney(
- localizations.dataTableRowDonut,
- ),
- 516,
- 25.0,
- 63,
- 4.9,
- 326,
- 2,
- 22,
- ),
- _Dessert(
- localizations.dataTableRowWithHoney(
- localizations.dataTableRowApplePie,
- ),
- 582,
- 26.0,
- 77,
- 7.0,
- 54,
- 12,
- 6,
- ),
- ];
- }
-
- final BuildContext context;
- List<_Dessert> _desserts;
-
- void _sort(Comparable getField(_Dessert d), bool ascending) {
- _desserts.sort((a, b) {
- final Comparable aValue = getField(a);
- final Comparable bValue = getField(b);
- return ascending
- ? Comparable.compare(aValue, bValue)
- : Comparable.compare(bValue, aValue);
- });
- notifyListeners();
- }
-
- int _selectedCount = 0;
-
- @override
- DataRow getRow(int index) {
- final format = NumberFormat.decimalPercentPattern(
- locale: GalleryOptions.of(context).locale.toString(),
- decimalDigits: 0,
- );
- assert(index >= 0);
- if (index >= _desserts.length) return null;
- final _Dessert dessert = _desserts[index];
- return DataRow.byIndex(
- index: index,
- selected: dessert.selected,
- onSelectChanged: (value) {
- if (dessert.selected != value) {
- _selectedCount += value ? 1 : -1;
- assert(_selectedCount >= 0);
- dessert.selected = value;
- notifyListeners();
- }
- },
- cells: [
- DataCell(Text(dessert.name)),
- DataCell(Text('${dessert.calories}')),
- DataCell(Text(dessert.fat.toStringAsFixed(1))),
- DataCell(Text('${dessert.carbs}')),
- DataCell(Text(dessert.protein.toStringAsFixed(1))),
- DataCell(Text('${dessert.sodium}')),
- DataCell(Text('${format.format(dessert.calcium / 100)}')),
- DataCell(Text('${format.format(dessert.iron / 100)}')),
- ],
- );
- }
-
- @override
- int get rowCount => _desserts.length;
-
- @override
- bool get isRowCountApproximate => false;
-
- @override
- int get selectedRowCount => _selectedCount;
-
- void _selectAll(bool checked) {
- for (final _Dessert dessert in _desserts) {
- dessert.selected = checked;
- }
- _selectedCount = checked ? _desserts.length : 0;
- notifyListeners();
- }
-}
-
-// END
diff --git a/gallery/lib/demos/material/dialog_demo.dart b/gallery/lib/demos/material/dialog_demo.dart
deleted file mode 100644
index 0c92649b3..000000000
--- a/gallery/lib/demos/material/dialog_demo.dart
+++ /dev/null
@@ -1,285 +0,0 @@
-// Copyright 2019 The Flutter team. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-import 'package:flutter/material.dart';
-
-import 'package:gallery/data/gallery_options.dart';
-import 'package:gallery/l10n/gallery_localizations.dart';
-
-// BEGIN dialogDemo
-
-enum DialogDemoType {
- alert,
- alertTitle,
- simple,
- fullscreen,
-}
-
-class DialogDemo extends StatelessWidget {
- DialogDemo({Key key, @required this.type}) : super(key: key);
-
- final GlobalKey _scaffoldKey = GlobalKey();
- final DialogDemoType type;
-
- String _title(BuildContext context) {
- switch (type) {
- case DialogDemoType.alert:
- return GalleryLocalizations.of(context).demoAlertDialogTitle;
- case DialogDemoType.alertTitle:
- return GalleryLocalizations.of(context).demoAlertTitleDialogTitle;
- case DialogDemoType.simple:
- return GalleryLocalizations.of(context).demoSimpleDialogTitle;
- case DialogDemoType.fullscreen:
- return GalleryLocalizations.of(context).demoFullscreenDialogTitle;
- }
- return '';
- }
-
- Future _showDemoDialog({BuildContext context, Widget child}) async {
- child = ApplyTextOptions(
- child: Theme(
- data: Theme.of(context),
- child: child,
- ),
- );
- T value = await showDialog(
- context: context,
- builder: (context) => child,
- );
- // The value passed to Navigator.pop() or null.
- if (value != null && value is String) {
- _scaffoldKey.currentState.hideCurrentSnackBar();
- _scaffoldKey.currentState.showSnackBar(SnackBar(
- content:
- Text(GalleryLocalizations.of(context).dialogSelectedOption(value)),
- ));
- }
- }
-
- void _showAlertDialog(BuildContext context) {
- final ThemeData theme = Theme.of(context);
- final TextStyle dialogTextStyle =
- theme.textTheme.subhead.copyWith(color: theme.textTheme.caption.color);
- _showDemoDialog(
- context: context,
- child: AlertDialog(
- content: Text(
- GalleryLocalizations.of(context).dialogDiscardTitle,
- style: dialogTextStyle,
- ),
- actions: [
- _DialogButton(text: GalleryLocalizations.of(context).dialogCancel),
- _DialogButton(text: GalleryLocalizations.of(context).dialogDiscard),
- ],
- ),
- );
- }
-
- void _showAlertDialogWithTitle(BuildContext context) {
- final ThemeData theme = Theme.of(context);
- final TextStyle dialogTextStyle =
- theme.textTheme.subhead.copyWith(color: theme.textTheme.caption.color);
- _showDemoDialog(
- context: context,
- child: AlertDialog(
- title: Text(GalleryLocalizations.of(context).dialogLocationTitle),
- content: Text(
- GalleryLocalizations.of(context).dialogLocationDescription,
- style: dialogTextStyle,
- ),
- actions: [
- _DialogButton(text: GalleryLocalizations.of(context).dialogDisagree),
- _DialogButton(text: GalleryLocalizations.of(context).dialogAgree),
- ],
- ),
- );
- }
-
- void _showSimpleDialog(BuildContext context) {
- final ThemeData theme = Theme.of(context);
- _showDemoDialog(
- context: context,
- child: SimpleDialog(
- title: Text(GalleryLocalizations.of(context).dialogSetBackup),
- children: [
- _DialogDemoItem(
- icon: Icons.account_circle,
- color: theme.colorScheme.primary,
- text: 'username@gmail.com',
- ),
- _DialogDemoItem(
- icon: Icons.account_circle,
- color: theme.colorScheme.secondary,
- text: 'user02@gmail.com',
- ),
- _DialogDemoItem(
- icon: Icons.add_circle,
- text: GalleryLocalizations.of(context).dialogAddAccount,
- color: theme.disabledColor,
- ),
- ],
- ),
- );
- }
-
- @override
- Widget build(BuildContext context) {
- return Navigator(
- // Adding [ValueKey] to make sure that the widget gets rebuilt when
- // changing type.
- key: ValueKey(type),
- onGenerateRoute: (settings) {
- return _NoAnimationMaterialPageRoute(
- builder: (context) => Scaffold(
- key: _scaffoldKey,
- appBar: AppBar(
- automaticallyImplyLeading: false,
- title: Text(_title(context)),
- ),
- body: Center(
- child: RaisedButton(
- child: Text(GalleryLocalizations.of(context).dialogShow),
- onPressed: () {
- switch (type) {
- case DialogDemoType.alert:
- _showAlertDialog(context);
- break;
- case DialogDemoType.alertTitle:
- _showAlertDialogWithTitle(context);
- break;
- case DialogDemoType.simple:
- _showSimpleDialog(context);
- break;
- case DialogDemoType.fullscreen:
- Navigator.push(
- context,
- MaterialPageRoute(
- builder: (context) => _FullScreenDialogDemo(),
- fullscreenDialog: true,
- ),
- );
- break;
- }
- },
- ),
- ),
- ),
- );
- },
- );
- }
-}
-
-/// A MaterialPageRoute without any transition animations.
-class _NoAnimationMaterialPageRoute extends MaterialPageRoute {
- _NoAnimationMaterialPageRoute({
- @required WidgetBuilder builder,
- RouteSettings settings,
- bool maintainState = true,
- bool fullscreenDialog = false,
- }) : super(
- builder: builder,
- maintainState: maintainState,
- settings: settings,
- fullscreenDialog: fullscreenDialog);
-
- @override
- Widget buildTransitions(BuildContext context, Animation animation,
- Animation secondaryAnimation, Widget child) {
- return child;
- }
-}
-
-class _DialogButton extends StatelessWidget {
- const _DialogButton({Key key, this.text}) : super(key: key);
-
- final String text;
-
- @override
- Widget build(BuildContext context) {
- return FlatButton(
- child: Text(text),
- onPressed: () {
- Navigator.of(context, rootNavigator: true).pop(text);
- },
- );
- }
-}
-
-class _DialogDemoItem extends StatelessWidget {
- const _DialogDemoItem({
- Key key,
- this.icon,
- this.color,
- this.text,
- }) : super(key: key);
-
- final IconData icon;
- final Color color;
- final String text;
-
- @override
- Widget build(BuildContext context) {
- return SimpleDialogOption(
- onPressed: () {
- Navigator.of(context, rootNavigator: true).pop(text);
- },
- child: Row(
- mainAxisAlignment: MainAxisAlignment.start,
- crossAxisAlignment: CrossAxisAlignment.center,
- children: [
- Icon(icon, size: 36, color: color),
- Flexible(
- child: Padding(
- padding: const EdgeInsetsDirectional.only(start: 16),
- child: Text(text),
- ),
- ),
- ],
- ),
- );
- }
-}
-
-class _FullScreenDialogDemo extends StatelessWidget {
- @override
- Widget build(BuildContext context) {
- final ThemeData theme = Theme.of(context);
-
- // Remove the MediaQuery padding because the demo is rendered inside of a
- // different page that already accounts for this padding.
- return MediaQuery.removePadding(
- context: context,
- removeTop: true,
- removeBottom: true,
- child: ApplyTextOptions(
- child: Scaffold(
- appBar: AppBar(
- title: Text(GalleryLocalizations.of(context).dialogFullscreenTitle),
- actions: [
- FlatButton(
- child: Text(
- GalleryLocalizations.of(context).dialogFullscreenSave,
- style: theme.textTheme.body1.copyWith(
- color: theme.colorScheme.onPrimary,
- ),
- ),
- onPressed: () {
- Navigator.pop(context);
- },
- ),
- ],
- ),
- body: Center(
- child: Text(
- GalleryLocalizations.of(context).dialogFullscreenDescription,
- ),
- ),
- ),
- ),
- );
- }
-}
-
-// END
diff --git a/gallery/lib/demos/material/grid_list_demo.dart b/gallery/lib/demos/material/grid_list_demo.dart
deleted file mode 100644
index 99b95de62..000000000
--- a/gallery/lib/demos/material/grid_list_demo.dart
+++ /dev/null
@@ -1,199 +0,0 @@
-// Copyright 2019 The Flutter team. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-import 'package:flutter/material.dart';
-import 'package:gallery/l10n/gallery_localizations.dart';
-
-// BEGIN gridListsDemo
-
-enum GridListDemoType {
- imageOnly,
- header,
- footer,
-}
-
-class GridListDemo extends StatelessWidget {
- const GridListDemo({Key key, this.type}) : super(key: key);
-
- final GridListDemoType type;
-
- List<_Photo> _photos(BuildContext context) {
- return [
- _Photo(
- assetName: 'places/india_chennai_flower_market.png',
- title: GalleryLocalizations.of(context).placeChennai,
- subtitle: GalleryLocalizations.of(context).placeFlowerMarket,
- ),
- _Photo(
- assetName: 'places/india_tanjore_bronze_works.png',
- title: GalleryLocalizations.of(context).placeTanjore,
- subtitle: GalleryLocalizations.of(context).placeBronzeWorks,
- ),
- _Photo(
- assetName: 'places/india_tanjore_market_merchant.png',
- title: GalleryLocalizations.of(context).placeTanjore,
- subtitle: GalleryLocalizations.of(context).placeMarket,
- ),
- _Photo(
- assetName: 'places/india_tanjore_thanjavur_temple.png',
- title: GalleryLocalizations.of(context).placeTanjore,
- subtitle: GalleryLocalizations.of(context).placeThanjavurTemple,
- ),
- _Photo(
- assetName: 'places/india_tanjore_thanjavur_temple_carvings.png',
- title: GalleryLocalizations.of(context).placeTanjore,
- subtitle: GalleryLocalizations.of(context).placeThanjavurTemple,
- ),
- _Photo(
- assetName: 'places/india_pondicherry_salt_farm.png',
- title: GalleryLocalizations.of(context).placePondicherry,
- subtitle: GalleryLocalizations.of(context).placeSaltFarm,
- ),
- _Photo(
- assetName: 'places/india_chennai_highway.png',
- title: GalleryLocalizations.of(context).placeChennai,
- subtitle: GalleryLocalizations.of(context).placeScooters,
- ),
- _Photo(
- assetName: 'places/india_chettinad_silk_maker.png',
- title: GalleryLocalizations.of(context).placeChettinad,
- subtitle: GalleryLocalizations.of(context).placeSilkMaker,
- ),
- _Photo(
- assetName: 'places/india_chettinad_produce.png',
- title: GalleryLocalizations.of(context).placeChettinad,
- subtitle: GalleryLocalizations.of(context).placeLunchPrep,
- ),
- _Photo(
- assetName: 'places/india_tanjore_market_technology.png',
- title: GalleryLocalizations.of(context).placeTanjore,
- subtitle: GalleryLocalizations.of(context).placeMarket,
- ),
- _Photo(
- assetName: 'places/india_pondicherry_beach.png',
- title: GalleryLocalizations.of(context).placePondicherry,
- subtitle: GalleryLocalizations.of(context).placeBeach,
- ),
- _Photo(
- assetName: 'places/india_pondicherry_fisherman.png',
- title: GalleryLocalizations.of(context).placePondicherry,
- subtitle: GalleryLocalizations.of(context).placeFisherman,
- ),
- ];
- }
-
- @override
- Widget build(BuildContext context) {
- return Scaffold(
- appBar: AppBar(
- automaticallyImplyLeading: false,
- title: Text(GalleryLocalizations.of(context).demoGridListsTitle),
- ),
- body: GridView.count(
- crossAxisCount: 2,
- mainAxisSpacing: 8,
- crossAxisSpacing: 8,
- padding: const EdgeInsets.all(8),
- childAspectRatio: 1,
- children: _photos(context).map((photo) {
- return _GridDemoPhotoItem(
- photo: photo,
- tileStyle: type,
- );
- }).toList(),
- ),
- );
- }
-}
-
-class _Photo {
- _Photo({
- this.assetName,
- this.title,
- this.subtitle,
- });
-
- final String assetName;
- final String title;
- final String subtitle;
-}
-
-/// Allow the text size to shrink to fit in the space
-class _GridTitleText extends StatelessWidget {
- const _GridTitleText(this.text);
-
- final String text;
-
- @override
- Widget build(BuildContext context) {
- return FittedBox(
- fit: BoxFit.scaleDown,
- alignment: AlignmentDirectional.centerStart,
- child: Text(text),
- );
- }
-}
-
-class _GridDemoPhotoItem extends StatelessWidget {
- _GridDemoPhotoItem({
- Key key,
- @required this.photo,
- @required this.tileStyle,
- }) : super(key: key);
-
- final _Photo photo;
- final GridListDemoType tileStyle;
-
- @override
- Widget build(BuildContext context) {
- final Widget image = Material(
- shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(4)),
- clipBehavior: Clip.antiAlias,
- child: Image.asset(
- photo.assetName,
- package: 'flutter_gallery_assets',
- fit: BoxFit.cover,
- ),
- );
-
- switch (tileStyle) {
- case GridListDemoType.imageOnly:
- return image;
- case GridListDemoType.header:
- return GridTile(
- header: Material(
- color: Colors.transparent,
- shape: RoundedRectangleBorder(
- borderRadius: BorderRadius.vertical(top: Radius.circular(4)),
- ),
- clipBehavior: Clip.antiAlias,
- child: GridTileBar(
- title: _GridTitleText(photo.title),
- backgroundColor: Colors.black45,
- ),
- ),
- child: image,
- );
- case GridListDemoType.footer:
- return GridTile(
- footer: Material(
- color: Colors.transparent,
- shape: RoundedRectangleBorder(
- borderRadius: BorderRadius.vertical(bottom: Radius.circular(4)),
- ),
- clipBehavior: Clip.antiAlias,
- child: GridTileBar(
- backgroundColor: Colors.black45,
- title: _GridTitleText(photo.title),
- subtitle: _GridTitleText(photo.subtitle),
- ),
- ),
- child: image,
- );
- }
- return null;
- }
-}
-
-// END
diff --git a/gallery/lib/demos/material/list_demo.dart b/gallery/lib/demos/material/list_demo.dart
deleted file mode 100644
index 8a30d28b5..000000000
--- a/gallery/lib/demos/material/list_demo.dart
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright 2019 The Flutter team. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-import 'package:flutter/material.dart';
-
-import 'package:gallery/l10n/gallery_localizations.dart';
-
-// BEGIN listDemo
-
-enum ListDemoType {
- oneLine,
- twoLine,
-}
-
-class ListDemo extends StatelessWidget {
- const ListDemo({Key key, this.type}) : super(key: key);
-
- final ListDemoType type;
-
- @override
- Widget build(BuildContext context) {
- return Scaffold(
- appBar: AppBar(
- automaticallyImplyLeading: false,
- title: Text(GalleryLocalizations.of(context).demoListsTitle),
- ),
- body: Scrollbar(
- child: ListView(
- padding: EdgeInsets.symmetric(vertical: 8),
- children: [
- for (int index = 1; index < 21; index++)
- ListTile(
- leading: ExcludeSemantics(
- child: CircleAvatar(child: Text('$index')),
- ),
- title: Text(
- GalleryLocalizations.of(context).demoBottomSheetItem(index),
- ),
- subtitle: type == ListDemoType.twoLine
- ? Text(GalleryLocalizations.of(context).demoListsSecondary)
- : null,
- ),
- ],
- ),
- ),
- );
- }
-}
-
-// END
diff --git a/gallery/lib/demos/material/menu_demo.dart b/gallery/lib/demos/material/menu_demo.dart
deleted file mode 100644
index a1f4814bd..000000000
--- a/gallery/lib/demos/material/menu_demo.dart
+++ /dev/null
@@ -1,368 +0,0 @@
-// Copyright 2019 The Flutter team. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-import 'package:flutter/material.dart';
-
-import 'package:gallery/l10n/gallery_localizations.dart';
-
-enum MenuDemoType {
- contextMenu,
- sectionedMenu,
- simpleMenu,
- checklistMenu,
-}
-
-enum SimpleValue {
- one,
- two,
- three,
-}
-
-enum CheckedValue {
- one,
- two,
- three,
- four,
-}
-
-class MenuDemo extends StatefulWidget {
- const MenuDemo({Key key, this.type}) : super(key: key);
-
- final MenuDemoType type;
-
- @override
- _MenuDemoState createState() => _MenuDemoState();
-}
-
-class _MenuDemoState extends State {
- final GlobalKey _scaffoldKey = GlobalKey();
-
- void showInSnackBar(String value) {
- _scaffoldKey.currentState.hideCurrentSnackBar();
- _scaffoldKey.currentState.showSnackBar(SnackBar(
- content: Text(value),
- ));
- }
-
- @override
- Widget build(BuildContext context) {
- Widget demo;
- switch (widget.type) {
- case MenuDemoType.contextMenu:
- demo = _ContextMenuDemo(showInSnackBar: showInSnackBar);
- break;
- case MenuDemoType.sectionedMenu:
- demo = _SectionedMenuDemo(showInSnackBar: showInSnackBar);
- break;
- case MenuDemoType.simpleMenu:
- demo = _SimpleMenuDemo(showInSnackBar: showInSnackBar);
- break;
- case MenuDemoType.checklistMenu:
- demo = _ChecklistMenuDemo(showInSnackBar: showInSnackBar);
- break;
- }
-
- return Scaffold(
- key: _scaffoldKey,
- appBar: AppBar(
- title: Text(GalleryLocalizations.of(context).demoMenuTitle),
- automaticallyImplyLeading: false,
- ),
- body: Padding(
- padding: EdgeInsets.symmetric(horizontal: 20),
- child: Center(
- child: demo,
- ),
- ),
- );
- }
-}
-
-// BEGIN menuDemoContext
-
-// Pressing the PopupMenuButton on the right of this item shows
-// a simple menu with one disabled item. Typically the contents
-// of this "contextual menu" would reflect the app's state.
-class _ContextMenuDemo extends StatelessWidget {
- const _ContextMenuDemo({Key key, this.showInSnackBar}) : super(key: key);
-
- final void Function(String value) showInSnackBar;
-
- @override
- Widget build(BuildContext context) {
- return ListTile(
- title: Text(GalleryLocalizations.of(context)
- .demoMenuAnItemWithAContextMenuButton),
- trailing: PopupMenuButton(
- padding: EdgeInsets.zero,
- onSelected: (value) => showInSnackBar(
- GalleryLocalizations.of(context).demoMenuSelected(value),
- ),
- itemBuilder: (context) => >[
- PopupMenuItem(
- value: GalleryLocalizations.of(context).demoMenuContextMenuItemOne,
- child: Text(
- GalleryLocalizations.of(context).demoMenuContextMenuItemOne,
- ),
- ),
- PopupMenuItem(
- enabled: false,
- child: Text(
- GalleryLocalizations.of(context).demoMenuADisabledMenuItem,
- ),
- ),
- PopupMenuItem(
- value:
- GalleryLocalizations.of(context).demoMenuContextMenuItemThree,
- child: Text(
- GalleryLocalizations.of(context).demoMenuContextMenuItemThree,
- ),
- ),
- ],
- ),
- );
- }
-}
-
-// END
-
-// BEGIN menuDemoSectioned
-
-// Pressing the PopupMenuButton on the right of this item shows
-// a menu whose items have text labels and icons and a divider
-// That separates the first three items from the last one.
-class _SectionedMenuDemo extends StatelessWidget {
- const _SectionedMenuDemo({Key key, this.showInSnackBar}) : super(key: key);
-
- final void Function(String value) showInSnackBar;
-
- @override
- Widget build(BuildContext context) {
- return ListTile(
- title: Text(
- GalleryLocalizations.of(context).demoMenuAnItemWithASectionedMenu),
- trailing: PopupMenuButton(
- padding: EdgeInsets.zero,
- onSelected: (value) => showInSnackBar(
- GalleryLocalizations.of(context).demoMenuSelected(value)),
- itemBuilder: (context) => >[
- PopupMenuItem(
- value: GalleryLocalizations.of(context).demoMenuPreview,
- child: ListTile(
- leading: Icon(Icons.visibility),
- title: Text(
- GalleryLocalizations.of(context).demoMenuPreview,
- ),
- ),
- ),
- PopupMenuItem(
- value: GalleryLocalizations.of(context).demoMenuShare,
- child: ListTile(
- leading: Icon(Icons.person_add),
- title: Text(
- GalleryLocalizations.of(context).demoMenuShare,
- ),
- ),
- ),
- PopupMenuItem(
- value: GalleryLocalizations.of(context).demoMenuGetLink,
- child: ListTile(
- leading: Icon(Icons.link),
- title: Text(
- GalleryLocalizations.of(context).demoMenuGetLink,
- ),
- ),
- ),
- const PopupMenuDivider(),
- PopupMenuItem(
- value: GalleryLocalizations.of(context).demoMenuRemove,
- child: ListTile(
- leading: Icon(Icons.delete),
- title: Text(
- GalleryLocalizations.of(context).demoMenuRemove,
- ),
- ),
- ),
- ],
- ),
- );
- }
-}
-
-// END
-
-// BEGIN menuDemoSimple
-
-// This entire list item is a PopupMenuButton. Tapping anywhere shows
-// a menu whose current value is highlighted and aligned over the
-// list item's center line.
-class _SimpleMenuDemo extends StatefulWidget {
- const _SimpleMenuDemo({Key key, this.showInSnackBar}) : super(key: key);
-
- final void Function(String value) showInSnackBar;
-
- @override
- _SimpleMenuDemoState createState() => _SimpleMenuDemoState();
-}
-
-class _SimpleMenuDemoState extends State<_SimpleMenuDemo> {
- SimpleValue _simpleValue;
-
- void showAndSetMenuSelection(BuildContext context, SimpleValue value) {
- setState(() {
- _simpleValue = value;
- });
- widget.showInSnackBar(
- GalleryLocalizations.of(context)
- .demoMenuSelected(simpleValueToString(context, value)),
- );
- }
-
- String simpleValueToString(BuildContext context, SimpleValue value) => {
- SimpleValue.one: GalleryLocalizations.of(context).demoMenuItemValueOne,
- SimpleValue.two: GalleryLocalizations.of(context).demoMenuItemValueTwo,
- SimpleValue.three:
- GalleryLocalizations.of(context).demoMenuItemValueThree,
- }[value];
-
- @override
- void initState() {
- super.initState();
- _simpleValue = SimpleValue.two;
- }
-
- @override
- Widget build(BuildContext context) {
- return PopupMenuButton(
- padding: EdgeInsets.zero,
- initialValue: _simpleValue,
- onSelected: (value) => showAndSetMenuSelection(context, value),
- child: ListTile(
- title: Text(
- GalleryLocalizations.of(context).demoMenuAnItemWithASimpleMenu),
- subtitle: Text(simpleValueToString(context, _simpleValue)),
- ),
- itemBuilder: (context) => >[
- PopupMenuItem(
- value: SimpleValue.one,
- child: Text(simpleValueToString(
- context,
- SimpleValue.one,
- )),
- ),
- PopupMenuItem(
- value: SimpleValue.two,
- child: Text(simpleValueToString(
- context,
- SimpleValue.two,
- )),
- ),
- PopupMenuItem(
- value: SimpleValue.three,
- child: Text(simpleValueToString(
- context,
- SimpleValue.three,
- )),
- ),
- ],
- );
- }
-}
-
-// END
-
-// BEGIN menuDemoChecklist
-
-// Pressing the PopupMenuButton on the right of this item shows a menu
-// whose items have checked icons that reflect this app's state.
-class _ChecklistMenuDemo extends StatefulWidget {
- const _ChecklistMenuDemo({Key key, this.showInSnackBar}) : super(key: key);
-
- final void Function(String value) showInSnackBar;
-
- @override
- _ChecklistMenuDemoState createState() => _ChecklistMenuDemoState();
-}
-
-class _ChecklistMenuDemoState extends State<_ChecklistMenuDemo> {
- List _checkedValues;
-
- @override
- void initState() {
- super.initState();
- _checkedValues = [CheckedValue.three];
- }
-
- void showCheckedMenuSelections(BuildContext context, CheckedValue value) {
- if (_checkedValues.contains(value)) {
- setState(() {
- _checkedValues.remove(value);
- });
- } else {
- setState(() {
- _checkedValues.add(value);
- });
- }
-
- widget.showInSnackBar(
- GalleryLocalizations.of(context).demoMenuChecked(
- _checkedValues.map((value) => checkedValueToString(context, value)),
- ),
- );
- }
-
- String checkedValueToString(BuildContext context, CheckedValue value) => {
- CheckedValue.one: GalleryLocalizations.of(context).demoMenuOne,
- CheckedValue.two: GalleryLocalizations.of(context).demoMenuTwo,
- CheckedValue.three: GalleryLocalizations.of(context).demoMenuThree,
- CheckedValue.four: GalleryLocalizations.of(context).demoMenuFour,
- }[value];
-
- bool isChecked(CheckedValue value) => _checkedValues.contains(value);
-
- @override
- Widget build(BuildContext context) {
- return ListTile(
- title: Text(
- GalleryLocalizations.of(context).demoMenuAnItemWithAChecklistMenu),
- trailing: PopupMenuButton(
- padding: EdgeInsets.zero,
- onSelected: (value) => showCheckedMenuSelections(context, value),
- itemBuilder: (context) => >[
- CheckedPopupMenuItem(
- value: CheckedValue.one,
- checked: isChecked(CheckedValue.one),
- child: Text(
- checkedValueToString(context, CheckedValue.one),
- ),
- ),
- CheckedPopupMenuItem(
- value: CheckedValue.two,
- enabled: false,
- checked: isChecked(CheckedValue.two),
- child: Text(
- checkedValueToString(context, CheckedValue.two),
- ),
- ),
- CheckedPopupMenuItem(
- value: CheckedValue.three,
- checked: isChecked(CheckedValue.three),
- child: Text(
- checkedValueToString(context, CheckedValue.three),
- ),
- ),
- CheckedPopupMenuItem(
- value: CheckedValue.four,
- checked: isChecked(CheckedValue.four),
- child: Text(
- checkedValueToString(context, CheckedValue.four),
- ),
- ),
- ],
- ),
- );
- }
-}
-
-// END
diff --git a/gallery/lib/demos/material/picker_demo.dart b/gallery/lib/demos/material/picker_demo.dart
deleted file mode 100644
index 5436675ab..000000000
--- a/gallery/lib/demos/material/picker_demo.dart
+++ /dev/null
@@ -1,112 +0,0 @@
-// Copyright 2019 The Flutter team. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-import 'dart:async';
-
-import 'package:flutter/material.dart';
-import 'package:gallery/l10n/gallery_localizations.dart';
-import 'package:intl/intl.dart';
-
-// BEGIN pickerDemo
-
-enum PickerDemoType {
- date,
- time,
-}
-
-class PickerDemo extends StatefulWidget {
- const PickerDemo({Key key, this.type}) : super(key: key);
-
- final PickerDemoType type;
-
- @override
- _PickerDemoState createState() => _PickerDemoState();
-}
-
-class _PickerDemoState extends State {
- DateTime _fromDate = DateTime.now();
- TimeOfDay _fromTime = TimeOfDay.fromDateTime(DateTime.now());
-
- String get _title {
- switch (widget.type) {
- case PickerDemoType.date:
- return GalleryLocalizations.of(context).demoDatePickerTitle;
- case PickerDemoType.time:
- return GalleryLocalizations.of(context).demoTimePickerTitle;
- }
- return '';
- }
-
- String get _labelText {
- switch (widget.type) {
- case PickerDemoType.date:
- return DateFormat.yMMMd().format(_fromDate);
- case PickerDemoType.time:
- return _fromTime.format(context);
- }
- return '';
- }
-
- Future _showDatePicker() async {
- final picked = await showDatePicker(
- context: context,
- initialDate: _fromDate,
- firstDate: DateTime(2015, 1),
- lastDate: DateTime(2100),
- );
- if (picked != null && picked != _fromDate) {
- setState(() {
- _fromDate = picked;
- });
- }
- }
-
- Future _showTimePicker() async {
- final TimeOfDay picked = await showTimePicker(
- context: context,
- initialTime: _fromTime,
- );
- if (picked != null && picked != _fromTime) {
- setState(() {
- _fromTime = picked;
- });
- }
- }
-
- @override
- Widget build(BuildContext context) {
- return Scaffold(
- appBar: AppBar(
- automaticallyImplyLeading: false,
- title: Text(_title),
- ),
- body: Center(
- child: Column(
- mainAxisSize: MainAxisSize.min,
- children: [
- Text(_labelText),
- SizedBox(height: 16),
- RaisedButton(
- child: Text(
- GalleryLocalizations.of(context).demoPickersShowPicker,
- ),
- onPressed: () {
- switch (widget.type) {
- case PickerDemoType.date:
- _showDatePicker();
- break;
- case PickerDemoType.time:
- _showTimePicker();
- break;
- }
- },
- )
- ],
- ),
- ),
- );
- }
-}
-
-// END
diff --git a/gallery/lib/demos/material/progress_indicator_demo.dart b/gallery/lib/demos/material/progress_indicator_demo.dart
deleted file mode 100644
index 9d88f4cc3..000000000
--- a/gallery/lib/demos/material/progress_indicator_demo.dart
+++ /dev/null
@@ -1,114 +0,0 @@
-// Copyright 2019 The Flutter team. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-import 'package:flutter/material.dart';
-import 'package:gallery/l10n/gallery_localizations.dart';
-
-// BEGIN progressIndicatorsDemo
-
-enum ProgressIndicatorDemoType {
- circular,
- linear,
-}
-
-class ProgressIndicatorDemo extends StatefulWidget {
- const ProgressIndicatorDemo({Key key, this.type}) : super(key: key);
-
- final ProgressIndicatorDemoType type;
-
- @override
- _ProgressIndicatorDemoState createState() => _ProgressIndicatorDemoState();
-}
-
-class _ProgressIndicatorDemoState extends State
- with SingleTickerProviderStateMixin {
- AnimationController _controller;
- Animation _animation;
-
- @override
- void initState() {
- super.initState();
- _controller = AnimationController(
- duration: const Duration(milliseconds: 1500),
- vsync: this,
- animationBehavior: AnimationBehavior.preserve,
- )..forward();
-
- _animation = CurvedAnimation(
- parent: _controller,
- curve: const Interval(0.0, 0.9, curve: Curves.fastOutSlowIn),
- reverseCurve: Curves.fastOutSlowIn,
- )..addStatusListener((status) {
- if (status == AnimationStatus.dismissed) {
- _controller.forward();
- } else if (status == AnimationStatus.completed) {
- _controller.reverse();
- }
- });
- }
-
- @override
- void dispose() {
- _controller.stop();
- super.dispose();
- }
-
- String get _title {
- switch (widget.type) {
- case ProgressIndicatorDemoType.circular:
- return GalleryLocalizations.of(context)
- .demoCircularProgressIndicatorTitle;
- case ProgressIndicatorDemoType.linear:
- return GalleryLocalizations.of(context)
- .demoLinearProgressIndicatorTitle;
- }
- return '';
- }
-
- Widget _buildIndicators(BuildContext context, Widget child) {
- switch (widget.type) {
- case ProgressIndicatorDemoType.circular:
- return Column(
- children: [
- const CircularProgressIndicator(),
- SizedBox(height: 32),
- CircularProgressIndicator(value: _animation.value),
- ],
- );
- case ProgressIndicatorDemoType.linear:
- return Column(
- children: [
- const LinearProgressIndicator(),
- SizedBox(height: 32),
- LinearProgressIndicator(value: _animation.value),
- ],
- );
- default:
- return Container();
- }
- }
-
- @override
- Widget build(BuildContext context) {
- return Scaffold(
- appBar: AppBar(
- automaticallyImplyLeading: false,
- title: Text(_title),
- ),
- body: Center(
- child: SingleChildScrollView(
- child: Container(
- padding: const EdgeInsets.all(8),
- child: AnimatedBuilder(
- animation: _animation,
- builder: _buildIndicators,
- ),
- ),
- ),
- ),
- );
- }
-}
-
-// END
diff --git a/gallery/lib/demos/material/selection_controls_demo.dart b/gallery/lib/demos/material/selection_controls_demo.dart
deleted file mode 100644
index 3e620610c..000000000
--- a/gallery/lib/demos/material/selection_controls_demo.dart
+++ /dev/null
@@ -1,176 +0,0 @@
-// Copyright 2019 The Flutter team. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-import 'package:flutter/material.dart';
-
-import 'package:gallery/l10n/gallery_localizations.dart';
-
-enum SelectionControlsDemoType {
- checkbox,
- radio,
- switches,
-}
-
-class SelectionControlsDemo extends StatelessWidget {
- SelectionControlsDemo({Key key, @required this.type}) : super(key: key);
-
- final SelectionControlsDemoType type;
-
- String _title(BuildContext context) {
- switch (type) {
- case SelectionControlsDemoType.checkbox:
- return GalleryLocalizations.of(context)
- .demoSelectionControlsCheckboxTitle;
- case SelectionControlsDemoType.radio:
- return GalleryLocalizations.of(context).demoSelectionControlsRadioTitle;
- case SelectionControlsDemoType.switches:
- return GalleryLocalizations.of(context)
- .demoSelectionControlsSwitchTitle;
- }
- return '';
- }
-
- @override
- Widget build(BuildContext context) {
- Widget controls;
- switch (type) {
- case SelectionControlsDemoType.checkbox:
- controls = _CheckboxDemo();
- break;
- case SelectionControlsDemoType.radio:
- controls = _RadioDemo();
- break;
- case SelectionControlsDemoType.switches:
- controls = _SwitchDemo();
- break;
- }
-
- return Scaffold(
- appBar: AppBar(
- automaticallyImplyLeading: false,
- title: Text(_title(context)),
- ),
- body: controls,
- );
- }
-}
-
-// BEGIN selectionControlsDemoCheckbox
-
-class _CheckboxDemo extends StatefulWidget {
- @override
- _CheckboxDemoState createState() => _CheckboxDemoState();
-}
-
-class _CheckboxDemoState extends State<_CheckboxDemo> {
- bool checkboxValueA = true;
- bool checkboxValueB = false;
- bool checkboxValueC;
-
- @override
- Widget build(BuildContext context) {
- return Center(
- child: Row(
- mainAxisSize: MainAxisSize.min,
- children: [
- Checkbox(
- value: checkboxValueA,
- onChanged: (value) {
- setState(() {
- checkboxValueA = value;
- });
- },
- ),
- Checkbox(
- value: checkboxValueB,
- onChanged: (value) {
- setState(() {
- checkboxValueB = value;
- });
- },
- ),
- Checkbox(
- value: checkboxValueC,
- tristate: true,
- onChanged: (value) {
- setState(() {
- checkboxValueC = value;
- });
- },
- ),
- ],
- ),
- );
- }
-}
-
-// END
-
-// BEGIN selectionControlsDemoRadio
-
-class _RadioDemo extends StatefulWidget {
- @override
- _RadioDemoState createState() => _RadioDemoState();
-}
-
-class _RadioDemoState extends State<_RadioDemo> {
- int radioValue = 0;
-
- void handleRadioValueChanged(int value) {
- setState(() {
- radioValue = value;
- });
- }
-
- @override
- Widget build(BuildContext context) {
- return Center(
- child: Row(
- mainAxisSize: MainAxisSize.min,
- children: [
- for (int index = 0; index < 3; ++index)
- Radio(
- value: index,
- groupValue: radioValue,
- onChanged: handleRadioValueChanged,
- ),
- ],
- ),
- );
- }
-}
-
-// END
-
-// BEGIN selectionControlsDemoSwitches
-
-class _SwitchDemo extends StatefulWidget {
- @override
- _SwitchDemoState createState() => _SwitchDemoState();
-}
-
-class _SwitchDemoState extends State<_SwitchDemo> {
- bool switchValue = false;
-
- @override
- Widget build(BuildContext context) {
- return Center(
- child: Semantics(
- container: true,
- label:
- GalleryLocalizations.of(context).demoSelectionControlsSwitchTitle,
- child: Switch(
- value: switchValue,
- onChanged: (value) {
- setState(() {
- switchValue = value;
- });
- },
- ),
- ),
- );
- }
-}
-
-// END
diff --git a/gallery/lib/demos/material/sliders_demo.dart b/gallery/lib/demos/material/sliders_demo.dart
deleted file mode 100644
index 0dc7adb72..000000000
--- a/gallery/lib/demos/material/sliders_demo.dart
+++ /dev/null
@@ -1,503 +0,0 @@
-// Copyright 2019 The Flutter team. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-import 'dart:math' as math;
-
-import 'package:flutter/material.dart';
-import 'package:gallery/l10n/gallery_localizations.dart';
-
-enum SlidersDemoType {
- sliders,
- rangeSliders,
- customSliders,
-}
-
-class SlidersDemo extends StatelessWidget {
- const SlidersDemo({Key key, this.type}) : super(key: key);
-
- final SlidersDemoType type;
-
- String _title(BuildContext context) {
- switch (type) {
- case SlidersDemoType.sliders:
- return GalleryLocalizations.of(context).demoSlidersTitle;
- case SlidersDemoType.rangeSliders:
- return GalleryLocalizations.of(context).demoRangeSlidersTitle;
- case SlidersDemoType.customSliders:
- return GalleryLocalizations.of(context).demoCustomSlidersTitle;
- }
- return '';
- }
-
- @override
- Widget build(BuildContext context) {
- Widget sliders;
- switch (type) {
- case SlidersDemoType.sliders:
- sliders = _Sliders();
- break;
- case SlidersDemoType.rangeSliders:
- sliders = _RangeSliders();
- break;
- case SlidersDemoType.customSliders:
- sliders = _CustomSliders();
- }
- return Scaffold(
- appBar: AppBar(
- automaticallyImplyLeading: false,
- title: Text(_title(context)),
- ),
- body: sliders,
- );
- }
-}
-// BEGIN slidersDemo
-
-class _Sliders extends StatefulWidget {
- @override
- _SlidersState createState() => _SlidersState();
-}
-
-class _SlidersState extends State<_Sliders> {
- double _continuousValue = 25;
- double _discreteValue = 20;
-
- @override
- Widget build(BuildContext context) {
- return Padding(
- padding: const EdgeInsets.symmetric(horizontal: 40),
- child: Column(
- mainAxisAlignment: MainAxisAlignment.center,
- children: [
- Column(
- mainAxisSize: MainAxisSize.min,
- children: [
- Semantics(
- label: GalleryLocalizations.of(context)
- .demoSlidersEditableNumericalValue,
- child: SizedBox(
- width: 64,
- height: 48,
- child: TextField(
- textAlign: TextAlign.center,
- onSubmitted: (value) {
- final double newValue = double.tryParse(value);
- if (newValue != null && newValue != _continuousValue) {
- setState(() {
- _continuousValue = newValue.clamp(0, 100) as double;
- });
- }
- },
- keyboardType: TextInputType.number,
- controller: TextEditingController(
- text: _continuousValue.toStringAsFixed(0),
- ),
- ),
- ),
- ),
- Slider(
- value: _continuousValue,
- min: 0,
- max: 100,
- onChanged: (value) {
- setState(() {
- _continuousValue = value;
- });
- },
- ),
- Text(GalleryLocalizations.of(context)
- .demoSlidersContinuousWithEditableNumericalValue),
- ],
- ),
- const SizedBox(height: 80),
- Column(
- mainAxisSize: MainAxisSize.min,
- children: [
- Slider(
- value: _discreteValue,
- min: 0,
- max: 200,
- divisions: 5,
- label: _discreteValue.round().toString(),
- onChanged: (value) {
- setState(() {
- _discreteValue = value;
- });
- },
- ),
- Text(GalleryLocalizations.of(context).demoSlidersDiscrete),
- ],
- ),
- ],
- ),
- );
- }
-}
-
-// END
-
-// BEGIN rangeSlidersDemo
-
-class _RangeSliders extends StatefulWidget {
- @override
- _RangeSlidersState createState() => _RangeSlidersState();
-}
-
-class _RangeSlidersState extends State<_RangeSliders> {
- RangeValues _continuousValues = const RangeValues(25, 75);
- RangeValues _discreteValues = const RangeValues(40, 120);
-
- @override
- Widget build(BuildContext context) {
- return Padding(
- padding: const EdgeInsets.symmetric(horizontal: 40),
- child: Column(
- mainAxisAlignment: MainAxisAlignment.center,
- children: [
- Column(
- mainAxisSize: MainAxisSize.min,
- children: [
- RangeSlider(
- values: _continuousValues,
- min: 0,
- max: 100,
- onChanged: (values) {
- setState(() {
- _continuousValues = values;
- });
- },
- ),
- Text(GalleryLocalizations.of(context).demoSlidersContinuous),
- ],
- ),
- const SizedBox(height: 80),
- Column(
- mainAxisSize: MainAxisSize.min,
- children: [
- RangeSlider(
- values: _discreteValues,
- min: 0,
- max: 200,
- divisions: 5,
- labels: RangeLabels(
- _discreteValues.start.round().toString(),
- _discreteValues.end.round().toString(),
- ),
- onChanged: (values) {
- setState(() {
- _discreteValues = values;
- });
- },
- ),
- Text(GalleryLocalizations.of(context).demoSlidersDiscrete),
- ],
- ),
- ],
- ),
- );
- }
-}
-
-// END
-
-// BEGIN customSlidersDemo
-
-Path _downTriangle(double size, Offset thumbCenter, {bool invert = false}) {
- final thumbPath = Path();
- final height = math.sqrt(3) / 2;
- final centerHeight = size * height / 3;
- final halfSize = size / 2;
- final sign = invert ? -1 : 1;
- thumbPath.moveTo(
- thumbCenter.dx - halfSize, thumbCenter.dy + sign * centerHeight);
- thumbPath.lineTo(thumbCenter.dx, thumbCenter.dy - 2 * sign * centerHeight);
- thumbPath.lineTo(
- thumbCenter.dx + halfSize, thumbCenter.dy + sign * centerHeight);
- thumbPath.close();
- return thumbPath;
-}
-
-Path _rightTriangle(double size, Offset thumbCenter, {bool invert = false}) {
- final thumbPath = Path();
- final halfSize = size / 2;
- final sign = invert ? -1 : 1;
- thumbPath.moveTo(thumbCenter.dx + halfSize * sign, thumbCenter.dy);
- thumbPath.lineTo(thumbCenter.dx - halfSize * sign, thumbCenter.dy - size);
- thumbPath.lineTo(thumbCenter.dx - halfSize * sign, thumbCenter.dy + size);
- thumbPath.close();
- return thumbPath;
-}
-
-Path _upTriangle(double size, Offset thumbCenter) =>
- _downTriangle(size, thumbCenter, invert: true);
-
-Path _leftTriangle(double size, Offset thumbCenter) =>
- _rightTriangle(size, thumbCenter, invert: true);
-
-class _CustomRangeThumbShape extends RangeSliderThumbShape {
- static const double _thumbSize = 4;
- static const double _disabledThumbSize = 3;
-
- @override
- Size getPreferredSize(bool isEnabled, bool isDiscrete) {
- return isEnabled
- ? const Size.fromRadius(_thumbSize)
- : const Size.fromRadius(_disabledThumbSize);
- }
-
- static final Animatable sizeTween = Tween(
- begin: _disabledThumbSize,
- end: _thumbSize,
- );
-
- @override
- void paint(
- PaintingContext context,
- Offset center, {
- @required Animation activationAnimation,
- @required Animation enableAnimation,
- bool isDiscrete = false,
- bool isEnabled = false,
- bool isOnTop,
- @required SliderThemeData sliderTheme,
- TextDirection textDirection,
- Thumb thumb,
- }) {
- final canvas = context.canvas;
- final colorTween = ColorTween(
- begin: sliderTheme.disabledThumbColor,
- end: sliderTheme.thumbColor,
- );
-
- final size = _thumbSize * sizeTween.evaluate(enableAnimation);
- Path thumbPath;
- switch (textDirection) {
- case TextDirection.rtl:
- switch (thumb) {
- case Thumb.start:
- thumbPath = _rightTriangle(size, center);
- break;
- case Thumb.end:
- thumbPath = _leftTriangle(size, center);
- break;
- }
- break;
- case TextDirection.ltr:
- switch (thumb) {
- case Thumb.start:
- thumbPath = _leftTriangle(size, center);
- break;
- case Thumb.end:
- thumbPath = _rightTriangle(size, center);
- break;
- }
- break;
- }
- canvas.drawPath(
- thumbPath,
- Paint()..color = colorTween.evaluate(enableAnimation),
- );
- }
-}
-
-class _CustomThumbShape extends SliderComponentShape {
- static const double _thumbSize = 4;
- static const double _disabledThumbSize = 3;
-
- @override
- Size getPreferredSize(bool isEnabled, bool isDiscrete) {
- return isEnabled
- ? const Size.fromRadius(_thumbSize)
- : const Size.fromRadius(_disabledThumbSize);
- }
-
- static final Animatable sizeTween = Tween(
- begin: _disabledThumbSize,
- end: _thumbSize,
- );
-
- @override
- void paint(
- PaintingContext context,
- Offset thumbCenter, {
- Animation activationAnimation,
- Animation enableAnimation,
- bool isDiscrete,
- TextPainter labelPainter,
- RenderBox parentBox,
- SliderThemeData sliderTheme,
- TextDirection textDirection,
- double value,
- }) {
- final canvas = context.canvas;
- final colorTween = ColorTween(
- begin: sliderTheme.disabledThumbColor,
- end: sliderTheme.thumbColor,
- );
- final size = _thumbSize * sizeTween.evaluate(enableAnimation);
- final thumbPath = _downTriangle(size, thumbCenter);
- canvas.drawPath(
- thumbPath,
- Paint()..color = colorTween.evaluate(enableAnimation),
- );
- }
-}
-
-class _CustomValueIndicatorShape extends SliderComponentShape {
- static const double _indicatorSize = 4;
- static const double _disabledIndicatorSize = 3;
- static const double _slideUpHeight = 40;
-
- @override
- Size getPreferredSize(bool isEnabled, bool isDiscrete) {
- return Size.fromRadius(isEnabled ? _indicatorSize : _disabledIndicatorSize);
- }
-
- static final Animatable sizeTween = Tween(
- begin: _disabledIndicatorSize,
- end: _indicatorSize,
- );
-
- @override
- void paint(
- PaintingContext context,
- Offset thumbCenter, {
- Animation activationAnimation,
- Animation enableAnimation,
- bool isDiscrete,
- TextPainter labelPainter,
- RenderBox parentBox,
- SliderThemeData sliderTheme,
- TextDirection textDirection,
- double value,
- }) {
- final canvas = context.canvas;
- final enableColor = ColorTween(
- begin: sliderTheme.disabledThumbColor,
- end: sliderTheme.valueIndicatorColor,
- );
- final slideUpTween = Tween(
- begin: 0,
- end: _slideUpHeight,
- );
- final size = _indicatorSize * sizeTween.evaluate(enableAnimation);
- final slideUpOffset =
- Offset(0, -slideUpTween.evaluate(activationAnimation));
- final thumbPath = _upTriangle(size, thumbCenter + slideUpOffset);
- final paintColor = enableColor
- .evaluate(enableAnimation)
- .withAlpha((255 * activationAnimation.value).round());
- canvas.drawPath(
- thumbPath,
- Paint()..color = paintColor,
- );
- canvas.drawLine(
- thumbCenter,
- thumbCenter + slideUpOffset,
- Paint()
- ..color = paintColor
- ..style = PaintingStyle.stroke
- ..strokeWidth = 2);
- labelPainter.paint(
- canvas,
- thumbCenter +
- slideUpOffset +
- Offset(-labelPainter.width / 2, -labelPainter.height - 4),
- );
- }
-}
-
-class _CustomSliders extends StatefulWidget {
- @override
- _CustomSlidersState createState() => _CustomSlidersState();
-}
-
-class _CustomSlidersState extends State<_CustomSliders> {
- double _discreteCustomValue = 25;
- RangeValues _continuousCustomValues = const RangeValues(40, 160);
-
- @override
- Widget build(BuildContext context) {
- final theme = Theme.of(context);
- return Padding(
- padding: const EdgeInsets.symmetric(horizontal: 40),
- child: Column(
- mainAxisAlignment: MainAxisAlignment.center,
- children: [
- Column(
- mainAxisSize: MainAxisSize.min,
- children: [
- SliderTheme(
- data: theme.sliderTheme.copyWith(
- activeTrackColor: Colors.deepPurple,
- inactiveTrackColor:
- theme.colorScheme.onSurface.withOpacity(0.5),
- activeTickMarkColor:
- theme.colorScheme.onSurface.withOpacity(0.7),
- inactiveTickMarkColor:
- theme.colorScheme.surface.withOpacity(0.7),
- overlayColor: theme.colorScheme.onSurface.withOpacity(0.12),
- thumbColor: Colors.deepPurple,
- valueIndicatorColor: Colors.deepPurpleAccent,
- thumbShape: _CustomThumbShape(),
- valueIndicatorShape: _CustomValueIndicatorShape(),
- valueIndicatorTextStyle: theme.accentTextTheme.body2
- .copyWith(color: theme.colorScheme.onSurface),
- ),
- child: Slider(
- value: _discreteCustomValue,
- min: 0,
- max: 200,
- divisions: 5,
- semanticFormatterCallback: (value) =>
- value.round().toString(),
- label: '${_discreteCustomValue.round()}',
- onChanged: (value) {
- setState(() {
- _discreteCustomValue = value;
- });
- },
- ),
- ),
- Text(GalleryLocalizations.of(context)
- .demoSlidersDiscreteSliderWithCustomTheme),
- ],
- ),
- const SizedBox(height: 80),
- Column(
- mainAxisSize: MainAxisSize.min,
- children: [
- SliderTheme(
- data: SliderThemeData(
- activeTrackColor: Colors.deepPurple,
- inactiveTrackColor: Colors.black26,
- activeTickMarkColor: Colors.white70,
- inactiveTickMarkColor: Colors.black,
- overlayColor: Colors.black12,
- thumbColor: Colors.deepPurple,
- rangeThumbShape: _CustomRangeThumbShape(),
- showValueIndicator: ShowValueIndicator.never,
- ),
- child: RangeSlider(
- values: _continuousCustomValues,
- min: 0,
- max: 200,
- onChanged: (values) {
- setState(() {
- _continuousCustomValues = values;
- });
- },
- ),
- ),
- Text(GalleryLocalizations.of(context)
- .demoSlidersContinuousRangeSliderWithCustomTheme),
- ],
- ),
- ],
- ),
- );
- }
-}
-
-// END
diff --git a/gallery/lib/demos/material/snackbar_demo.dart b/gallery/lib/demos/material/snackbar_demo.dart
deleted file mode 100644
index 0d83d0940..000000000
--- a/gallery/lib/demos/material/snackbar_demo.dart
+++ /dev/null
@@ -1,54 +0,0 @@
-// Copyright 2019 The Flutter team. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-import 'package:flutter/material.dart';
-import 'package:gallery/l10n/gallery_localizations.dart';
-
-// BEGIN snackbarsDemo
-
-class SnackbarsDemo extends StatelessWidget {
- @override
- Widget build(BuildContext context) {
- return Scaffold(
- appBar: AppBar(
- automaticallyImplyLeading: false,
- title: Text(GalleryLocalizations.of(context).demoSnackbarsTitle),
- ),
- body: Builder(
- // Create an inner BuildContext so that the snackBar onPressed methods
- // can refer to the Scaffold with Scaffold.of().
- builder: (context) {
- return Center(
- child: RaisedButton(
- child: Text(
- GalleryLocalizations.of(context).demoSnackbarsButtonLabel),
- onPressed: () {
- Scaffold.of(context).hideCurrentSnackBar();
- Scaffold.of(context).showSnackBar(SnackBar(
- content: Text(
- GalleryLocalizations.of(context).demoSnackbarsText,
- ),
- action: SnackBarAction(
- label: GalleryLocalizations.of(context)
- .demoSnackbarsActionButtonLabel,
- onPressed: () {
- Scaffold.of(context).hideCurrentSnackBar();
- Scaffold.of(context).showSnackBar(SnackBar(
- content: Text(
- GalleryLocalizations.of(context).demoSnackbarsAction,
- ),
- ));
- },
- ),
- ));
- },
- ),
- );
- },
- ),
- );
- }
-}
-
-// END
diff --git a/gallery/lib/demos/material/tabs_demo.dart b/gallery/lib/demos/material/tabs_demo.dart
deleted file mode 100644
index a72bdec14..000000000
--- a/gallery/lib/demos/material/tabs_demo.dart
+++ /dev/null
@@ -1,118 +0,0 @@
-// Copyright 2019 The Flutter team. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-import 'package:flutter/material.dart';
-import 'package:gallery/l10n/gallery_localizations.dart';
-
-enum TabsDemoType {
- scrollable,
- nonScrollable,
-}
-
-class TabsDemo extends StatelessWidget {
- const TabsDemo({Key key, this.type}) : super(key: key);
-
- final TabsDemoType type;
-
- @override
- Widget build(BuildContext context) {
- Widget tabs;
- switch (type) {
- case TabsDemoType.scrollable:
- tabs = _TabsScrollableDemo();
- break;
- case TabsDemoType.nonScrollable:
- tabs = _TabsNonScrollableDemo();
- }
- return tabs;
- }
-}
-
-// BEGIN tabsScrollableDemo
-
-class _TabsScrollableDemo extends StatelessWidget {
- @override
- Widget build(BuildContext context) {
- List tabs = [
- GalleryLocalizations.of(context).colorsRed,
- GalleryLocalizations.of(context).colorsOrange,
- GalleryLocalizations.of(context).colorsGreen,
- GalleryLocalizations.of(context).colorsBlue,
- GalleryLocalizations.of(context).colorsIndigo,
- GalleryLocalizations.of(context).colorsPurple,
- GalleryLocalizations.of(context).colorsRed,
- GalleryLocalizations.of(context).colorsOrange,
- GalleryLocalizations.of(context).colorsGreen,
- GalleryLocalizations.of(context).colorsBlue,
- GalleryLocalizations.of(context).colorsIndigo,
- GalleryLocalizations.of(context).colorsPurple,
- ];
-
- return DefaultTabController(
- length: tabs.length,
- child: Scaffold(
- appBar: AppBar(
- automaticallyImplyLeading: false,
- title: Text(GalleryLocalizations.of(context).demoTabsScrollingTitle),
- bottom: TabBar(
- isScrollable: true,
- tabs: [
- for (final tab in tabs) Tab(text: tab),
- ],
- ),
- ),
- body: TabBarView(
- children: [
- for (final tab in tabs)
- Center(
- child: Text(tab),
- ),
- ],
- ),
- ),
- );
- }
-}
-
-// END
-
-// BEGIN tabsNonScrollableDemo
-
-class _TabsNonScrollableDemo extends StatelessWidget {
- @override
- Widget build(BuildContext context) {
- List tabs = [
- GalleryLocalizations.of(context).colorsRed,
- GalleryLocalizations.of(context).colorsOrange,
- GalleryLocalizations.of(context).colorsGreen,
- ];
-
- return DefaultTabController(
- length: tabs.length,
- child: Scaffold(
- appBar: AppBar(
- automaticallyImplyLeading: false,
- title:
- Text(GalleryLocalizations.of(context).demoTabsNonScrollingTitle),
- bottom: TabBar(
- isScrollable: false,
- tabs: [
- for (final tab in tabs) Tab(text: tab),
- ],
- ),
- ),
- body: TabBarView(
- children: [
- for (final tab in tabs)
- Center(
- child: Text(tab),
- ),
- ],
- ),
- ),
- );
- }
-}
-
-// END
diff --git a/gallery/lib/demos/material/text_field_demo.dart b/gallery/lib/demos/material/text_field_demo.dart
deleted file mode 100644
index cc102cf86..000000000
--- a/gallery/lib/demos/material/text_field_demo.dart
+++ /dev/null
@@ -1,357 +0,0 @@
-// Copyright 2019 The Flutter team. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-import 'package:flutter/material.dart';
-
-import 'package:flutter/services.dart';
-import 'package:flutter/gestures.dart' show DragStartBehavior;
-
-import 'package:gallery/l10n/gallery_localizations.dart';
-
-// BEGIN textFieldDemo
-
-class TextFieldDemo extends StatelessWidget {
- @override
- Widget build(BuildContext context) {
- return Scaffold(
- appBar: AppBar(
- automaticallyImplyLeading: false,
- title: Text(GalleryLocalizations.of(context).demoTextFieldTitle),
- ),
- body: TextFormFieldDemo(),
- );
- }
-}
-
-class TextFormFieldDemo extends StatefulWidget {
- const TextFormFieldDemo({Key key}) : super(key: key);
-
- @override
- TextFormFieldDemoState createState() => TextFormFieldDemoState();
-}
-
-class PersonData {
- String name = '';
- String phoneNumber = '';
- String email = '';
- String password = '';
-}
-
-class PasswordField extends StatefulWidget {
- const PasswordField({
- this.fieldKey,
- this.hintText,
- this.labelText,
- this.helperText,
- this.onSaved,
- this.validator,
- this.onFieldSubmitted,
- });
-
- final Key fieldKey;
- final String hintText;
- final String labelText;
- final String helperText;
- final FormFieldSetter onSaved;
- final FormFieldValidator validator;
- final ValueChanged onFieldSubmitted;
-
- @override
- _PasswordFieldState createState() => _PasswordFieldState();
-}
-
-class _PasswordFieldState extends State {
- bool _obscureText = true;
-
- @override
- Widget build(BuildContext context) {
- return TextFormField(
- key: widget.fieldKey,
- obscureText: _obscureText,
- cursorColor: Theme.of(context).cursorColor,
- maxLength: 8,
- onSaved: widget.onSaved,
- validator: widget.validator,
- onFieldSubmitted: widget.onFieldSubmitted,
- decoration: InputDecoration(
- filled: true,
- hintText: widget.hintText,
- labelText: widget.labelText,
- helperText: widget.helperText,
- suffixIcon: GestureDetector(
- dragStartBehavior: DragStartBehavior.down,
- onTap: () {
- setState(() {
- _obscureText = !_obscureText;
- });
- },
- child: Icon(
- _obscureText ? Icons.visibility : Icons.visibility_off,
- semanticLabel: _obscureText
- ? GalleryLocalizations.of(context)
- .demoTextFieldShowPasswordLabel
- : GalleryLocalizations.of(context)
- .demoTextFieldHidePasswordLabel,
- ),
- ),
- ),
- );
- }
-}
-
-class TextFormFieldDemoState extends State {
- final GlobalKey _scaffoldKey = GlobalKey();
-
- PersonData person = PersonData();
-
- void showInSnackBar(String value) {
- _scaffoldKey.currentState.hideCurrentSnackBar();
- _scaffoldKey.currentState.showSnackBar(SnackBar(
- content: Text(value),
- ));
- }
-
- bool _autoValidate = false;
-
- final GlobalKey _formKey = GlobalKey();
- final GlobalKey> _passwordFieldKey =
- GlobalKey>();
- final _UsNumberTextInputFormatter _phoneNumberFormatter =
- _UsNumberTextInputFormatter();
-
- void _handleSubmitted() {
- final form = _formKey.currentState;
- if (!form.validate()) {
- _autoValidate = true; // Start validating on every change.
- showInSnackBar(
- GalleryLocalizations.of(context).demoTextFieldFormErrors,
- );
- } else {
- form.save();
- showInSnackBar(GalleryLocalizations.of(context)
- .demoTextFieldNameHasPhoneNumber(person.name, person.phoneNumber));
- }
- }
-
- String _validateName(String value) {
- if (value.isEmpty) {
- return GalleryLocalizations.of(context).demoTextFieldNameRequired;
- }
- final nameExp = RegExp(r'^[A-Za-z ]+$');
- if (!nameExp.hasMatch(value)) {
- return GalleryLocalizations.of(context)
- .demoTextFieldOnlyAlphabeticalChars;
- }
- return null;
- }
-
- String _validatePhoneNumber(String value) {
- final phoneExp = RegExp(r'^\(\d\d\d\) \d\d\d\-\d\d\d\d$');
- if (!phoneExp.hasMatch(value)) {
- return GalleryLocalizations.of(context).demoTextFieldEnterUSPhoneNumber;
- }
- return null;
- }
-
- String _validatePassword(String value) {
- final passwordField = _passwordFieldKey.currentState;
- if (passwordField.value == null || passwordField.value.isEmpty) {
- return GalleryLocalizations.of(context).demoTextFieldEnterPassword;
- }
- if (passwordField.value != value) {
- return GalleryLocalizations.of(context).demoTextFieldPasswordsDoNotMatch;
- }
- return null;
- }
-
- @override
- Widget build(BuildContext context) {
- final cursorColor = Theme.of(context).cursorColor;
- const sizedBoxSpace = SizedBox(height: 24);
-
- return Scaffold(
- key: _scaffoldKey,
- body: Form(
- key: _formKey,
- autovalidate: _autoValidate,
- child: Scrollbar(
- child: SingleChildScrollView(
- dragStartBehavior: DragStartBehavior.down,
- padding: const EdgeInsets.symmetric(horizontal: 16),
- child: Column(
- crossAxisAlignment: CrossAxisAlignment.stretch,
- children: [
- sizedBoxSpace,
- TextFormField(
- textCapitalization: TextCapitalization.words,
- cursorColor: cursorColor,
- decoration: InputDecoration(
- filled: true,
- icon: Icon(Icons.person),
- hintText: GalleryLocalizations.of(context)
- .demoTextFieldWhatDoPeopleCallYou,
- labelText:
- GalleryLocalizations.of(context).demoTextFieldNameField,
- ),
- onSaved: (value) {
- person.name = value;
- },
- validator: _validateName,
- ),
- sizedBoxSpace,
- TextFormField(
- cursorColor: cursorColor,
- decoration: InputDecoration(
- filled: true,
- icon: Icon(Icons.phone),
- hintText: GalleryLocalizations.of(context)
- .demoTextFieldWhereCanWeReachYou,
- labelText: GalleryLocalizations.of(context)
- .demoTextFieldPhoneNumber,
- prefixText: '+1 ',
- ),
- keyboardType: TextInputType.phone,
- onSaved: (value) {
- person.phoneNumber = value;
- },
- maxLength: 14,
- maxLengthEnforced: false,
- validator: _validatePhoneNumber,
- // TextInputFormatters are applied in sequence.
- inputFormatters: [
- WhitelistingTextInputFormatter.digitsOnly,
- // Fit the validating format.
- _phoneNumberFormatter,
- ],
- ),
- sizedBoxSpace,
- TextFormField(
- cursorColor: cursorColor,
- decoration: InputDecoration(
- filled: true,
- icon: Icon(Icons.email),
- hintText: GalleryLocalizations.of(context)
- .demoTextFieldYourEmailAddress,
- labelText:
- GalleryLocalizations.of(context).demoTextFieldEmail,
- ),
- keyboardType: TextInputType.emailAddress,
- onSaved: (value) {
- person.email = value;
- },
- ),
- sizedBoxSpace,
- TextFormField(
- cursorColor: cursorColor,
- decoration: InputDecoration(
- border: OutlineInputBorder(),
- hintText: GalleryLocalizations.of(context)
- .demoTextFieldTellUsAboutYourself,
- helperText: GalleryLocalizations.of(context)
- .demoTextFieldKeepItShort,
- labelText:
- GalleryLocalizations.of(context).demoTextFieldLifeStory,
- ),
- maxLines: 3,
- ),
- sizedBoxSpace,
- TextFormField(
- cursorColor: cursorColor,
- keyboardType: TextInputType.number,
- decoration: InputDecoration(
- border: OutlineInputBorder(),
- labelText:
- GalleryLocalizations.of(context).demoTextFieldSalary,
- suffixText:
- GalleryLocalizations.of(context).demoTextFieldUSD,
- ),
- maxLines: 1,
- ),
- sizedBoxSpace,
- PasswordField(
- fieldKey: _passwordFieldKey,
- helperText:
- GalleryLocalizations.of(context).demoTextFieldNoMoreThan,
- labelText:
- GalleryLocalizations.of(context).demoTextFieldPassword,
- onFieldSubmitted: (value) {
- setState(() {
- person.password = value;
- });
- },
- ),
- sizedBoxSpace,
- TextFormField(
- cursorColor: cursorColor,
- decoration: InputDecoration(
- filled: true,
- labelText: GalleryLocalizations.of(context)
- .demoTextFieldRetypePassword,
- ),
- maxLength: 8,
- obscureText: true,
- validator: _validatePassword,
- ),
- sizedBoxSpace,
- Center(
- child: RaisedButton(
- child: Text(
- GalleryLocalizations.of(context).demoTextFieldSubmit),
- onPressed: _handleSubmitted,
- ),
- ),
- sizedBoxSpace,
- Text(
- GalleryLocalizations.of(context).demoTextFieldRequiredField,
- style: Theme.of(context).textTheme.caption,
- ),
- sizedBoxSpace,
- ],
- ),
- ),
- ),
- ),
- );
- }
-}
-
-/// Format incoming numeric text to fit the format of (###) ###-#### ##
-class _UsNumberTextInputFormatter extends TextInputFormatter {
- @override
- TextEditingValue formatEditUpdate(
- TextEditingValue oldValue,
- TextEditingValue newValue,
- ) {
- final newTextLength = newValue.text.length;
- final newText = StringBuffer();
- int selectionIndex = newValue.selection.end;
- int usedSubstringIndex = 0;
- if (newTextLength >= 1) {
- newText.write('(');
- if (newValue.selection.end >= 1) selectionIndex++;
- }
- if (newTextLength >= 4) {
- newText.write(newValue.text.substring(0, usedSubstringIndex = 3) + ') ');
- if (newValue.selection.end >= 3) selectionIndex += 2;
- }
- if (newTextLength >= 7) {
- newText.write(newValue.text.substring(3, usedSubstringIndex = 6) + '-');
- if (newValue.selection.end >= 6) selectionIndex++;
- }
- if (newTextLength >= 11) {
- newText.write(newValue.text.substring(6, usedSubstringIndex = 10) + ' ');
- if (newValue.selection.end >= 10) selectionIndex++;
- }
- // Dump the rest.
- if (newTextLength >= usedSubstringIndex) {
- newText.write(newValue.text.substring(usedSubstringIndex));
- }
- return TextEditingValue(
- text: newText.toString(),
- selection: TextSelection.collapsed(offset: selectionIndex),
- );
- }
-}
-
-// END
diff --git a/gallery/lib/demos/material/tooltip_demo.dart b/gallery/lib/demos/material/tooltip_demo.dart
deleted file mode 100644
index 43251feec..000000000
--- a/gallery/lib/demos/material/tooltip_demo.dart
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright 2019 The Flutter team. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-import 'package:flutter/material.dart';
-import 'package:gallery/l10n/gallery_localizations.dart';
-
-// BEGIN tooltipDemo
-
-class TooltipDemo extends StatelessWidget {
- @override
- Widget build(BuildContext context) {
- return Scaffold(
- appBar: AppBar(
- automaticallyImplyLeading: false,
- title: Text(GalleryLocalizations.of(context).demoTooltipTitle),
- ),
- body: Center(
- child: Padding(
- padding: const EdgeInsets.all(8),
- child: Column(
- mainAxisAlignment: MainAxisAlignment.center,
- children: [
- Text(
- GalleryLocalizations.of(context).demoTooltipInstructions,
- textAlign: TextAlign.center,
- ),
- SizedBox(height: 16),
- Tooltip(
- message:
- GalleryLocalizations.of(context).starterAppTooltipSearch,
- child: IconButton(
- color: Theme.of(context).colorScheme.primary,
- onPressed: () {},
- icon: Icon(Icons.search),
- ),
- ),
- ],
- ),
- ),
- ),
- );
- }
-}
-
-// END
diff --git a/gallery/lib/demos/reference/colors_demo.dart b/gallery/lib/demos/reference/colors_demo.dart
deleted file mode 100644
index ac668d6b2..000000000
--- a/gallery/lib/demos/reference/colors_demo.dart
+++ /dev/null
@@ -1,265 +0,0 @@
-// Copyright 2019 The Flutter team. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-import 'package:flutter/material.dart';
-
-import 'package:gallery/l10n/gallery_localizations.dart';
-
-// BEGIN colorsDemo
-
-const double kColorItemHeight = 48;
-
-class _Palette {
- _Palette({
- this.name,
- this.primary,
- this.accent,
- this.threshold = 900,
- }) : assert(name != null),
- assert(primary != null),
- assert(threshold != null);
-
- final String name;
- final MaterialColor primary;
- final MaterialAccentColor accent;
- // Titles for indices > threshold are white, otherwise black.
- final int threshold;
-}
-
-List<_Palette> _allPalettes(BuildContext context) {
- return [
- _Palette(
- name: GalleryLocalizations.of(context).colorsRed,
- primary: Colors.red,
- accent: Colors.redAccent,
- threshold: 300,
- ),
- _Palette(
- name: GalleryLocalizations.of(context).colorsPink,
- primary: Colors.pink,
- accent: Colors.pinkAccent,
- threshold: 200,
- ),
- _Palette(
- name: GalleryLocalizations.of(context).colorsPurple,
- primary: Colors.purple,
- accent: Colors.purpleAccent,
- threshold: 200,
- ),
- _Palette(
- name: GalleryLocalizations.of(context).colorsDeepPurple,
- primary: Colors.deepPurple,
- accent: Colors.deepPurpleAccent,
- threshold: 200,
- ),
- _Palette(
- name: GalleryLocalizations.of(context).colorsIndigo,
- primary: Colors.indigo,
- accent: Colors.indigoAccent,
- threshold: 200,
- ),
- _Palette(
- name: GalleryLocalizations.of(context).colorsBlue,
- primary: Colors.blue,
- accent: Colors.blueAccent,
- threshold: 400,
- ),
- _Palette(
- name: GalleryLocalizations.of(context).colorsLightBlue,
- primary: Colors.lightBlue,
- accent: Colors.lightBlueAccent,
- threshold: 500,
- ),
- _Palette(
- name: GalleryLocalizations.of(context).colorsCyan,
- primary: Colors.cyan,
- accent: Colors.cyanAccent,
- threshold: 600,
- ),
- _Palette(
- name: GalleryLocalizations.of(context).colorsTeal,
- primary: Colors.teal,
- accent: Colors.tealAccent,
- threshold: 400,
- ),
- _Palette(
- name: GalleryLocalizations.of(context).colorsGreen,
- primary: Colors.green,
- accent: Colors.greenAccent,
- threshold: 500),
- _Palette(
- name: GalleryLocalizations.of(context).colorsLightGreen,
- primary: Colors.lightGreen,
- accent: Colors.lightGreenAccent,
- threshold: 600,
- ),
- _Palette(
- name: GalleryLocalizations.of(context).colorsLime,
- primary: Colors.lime,
- accent: Colors.limeAccent,
- threshold: 800,
- ),
- _Palette(
- name: GalleryLocalizations.of(context).colorsYellow,
- primary: Colors.yellow,
- accent: Colors.yellowAccent,
- ),
- _Palette(
- name: GalleryLocalizations.of(context).colorsAmber,
- primary: Colors.amber,
- accent: Colors.amberAccent,
- ),
- _Palette(
- name: GalleryLocalizations.of(context).colorsOrange,
- primary: Colors.orange,
- accent: Colors.orangeAccent,
- threshold: 700,
- ),
- _Palette(
- name: GalleryLocalizations.of(context).colorsDeepOrange,
- primary: Colors.deepOrange,
- accent: Colors.deepOrangeAccent,
- threshold: 400,
- ),
- _Palette(
- name: GalleryLocalizations.of(context).colorsBrown,
- primary: Colors.brown,
- threshold: 200,
- ),
- _Palette(
- name: GalleryLocalizations.of(context).colorsGrey,
- primary: Colors.grey,
- threshold: 500,
- ),
- _Palette(
- name: GalleryLocalizations.of(context).colorsBlueGrey,
- primary: Colors.blueGrey,
- threshold: 500,
- ),
- ];
-}
-
-class _ColorItem extends StatelessWidget {
- const _ColorItem({
- Key key,
- @required this.index,
- @required this.color,
- this.prefix = '',
- }) : assert(index != null),
- assert(color != null),
- assert(prefix != null),
- super(key: key);
-
- final int index;
- final Color color;
- final String prefix;
-
- String get _colorString =>
- "#${color.value.toRadixString(16).padLeft(8, '0').toUpperCase()}";
-
- @override
- Widget build(BuildContext context) {
- return Semantics(
- container: true,
- child: Container(
- height: kColorItemHeight,
- padding: const EdgeInsets.symmetric(horizontal: 16),
- color: color,
- child: Row(
- mainAxisAlignment: MainAxisAlignment.spaceBetween,
- crossAxisAlignment: CrossAxisAlignment.center,
- children: [
- Text('$prefix$index'),
- Flexible(child: Text(_colorString)),
- ],
- ),
- ),
- );
- }
-}
-
-class PaletteTabView extends StatelessWidget {
- PaletteTabView({
- Key key,
- @required this.colors,
- }) : assert(colors != null),
- super(key: key);
-
- final _Palette colors;
- static const primaryKeys = [
- 50,
- 100,
- 200,
- 300,
- 400,
- 500,
- 600,
- 700,
- 800,
- 900
- ];
- static const accentKeys = [100, 200, 400, 700];
-
- @override
- Widget build(BuildContext context) {
- final TextTheme textTheme = Theme.of(context).textTheme;
- final TextStyle whiteTextStyle = textTheme.body1.copyWith(
- color: Colors.white,
- );
- final TextStyle blackTextStyle = textTheme.body1.copyWith(
- color: Colors.black,
- );
- return Scrollbar(
- child: ListView(
- itemExtent: kColorItemHeight,
- children: [
- for (final key in primaryKeys)
- DefaultTextStyle(
- style: key > colors.threshold ? whiteTextStyle : blackTextStyle,
- child: _ColorItem(index: key, color: colors.primary[key]),
- ),
- if (colors.accent != null)
- for (final key in accentKeys)
- DefaultTextStyle(
- style: key > colors.threshold ? whiteTextStyle : blackTextStyle,
- child: _ColorItem(
- index: key,
- color: colors.accent[key],
- prefix: 'A',
- ),
- ),
- ],
- ),
- );
- }
-}
-
-class ColorsDemo extends StatelessWidget {
- @override
- Widget build(BuildContext context) {
- final palettes = _allPalettes(context);
- return DefaultTabController(
- length: palettes.length,
- child: Scaffold(
- appBar: AppBar(
- automaticallyImplyLeading: false,
- title: Text(GalleryLocalizations.of(context).demoColorsTitle),
- bottom: TabBar(
- isScrollable: true,
- tabs: [
- for (final palette in palettes) Tab(text: palette.name),
- ],
- ),
- ),
- body: TabBarView(
- children: [
- for (final palette in palettes) PaletteTabView(colors: palette),
- ],
- ),
- ),
- );
- }
-}
-
-// END
diff --git a/gallery/lib/demos/reference/transformations_demo.dart b/gallery/lib/demos/reference/transformations_demo.dart
deleted file mode 100644
index bf03dc889..000000000
--- a/gallery/lib/demos/reference/transformations_demo.dart
+++ /dev/null
@@ -1,175 +0,0 @@
-// Copyright 2019 The Flutter team. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-import 'dart:ui' show Vertices;
-import 'package:flutter/material.dart';
-import 'package:gallery/l10n/gallery_localizations.dart';
-import 'transformations_demo_board.dart';
-import 'transformations_demo_edit_board_point.dart';
-import 'transformations_demo_gesture_transformable.dart';
-
-// BEGIN transformationsDemo#1
-
-class TransformationsDemo extends StatefulWidget {
- const TransformationsDemo({Key key}) : super(key: key);
-
- @override
- _TransformationsDemoState createState() => _TransformationsDemoState();
-}
-
-class _TransformationsDemoState extends State {
- // The radius of a hexagon tile in pixels.
- static const _kHexagonRadius = 32.0;
- // The margin between hexagons.
- static const _kHexagonMargin = 1.0;
- // The radius of the entire board in hexagons, not including the center.
- static const _kBoardRadius = 12;
-
- bool _reset = false;
- Board _board = Board(
- boardRadius: _kBoardRadius,
- hexagonRadius: _kHexagonRadius,
- hexagonMargin: _kHexagonMargin,
- );
-
- @override
- Widget build(BuildContext context) {
- final BoardPainter painter = BoardPainter(
- board: _board,
- );
-
- // The scene is drawn by a CustomPaint, but user interaction is handled by
- // the GestureTransformable parent widget.
- return Scaffold(
- backgroundColor: Theme.of(context).colorScheme.primary,
- appBar: AppBar(
- automaticallyImplyLeading: false,
- title:
- Text(GalleryLocalizations.of(context).demo2dTransformationsTitle),
- ),
- body: Container(
- color: backgroundColor,
- child: LayoutBuilder(
- builder: (context, constraints) {
- // Draw the scene as big as is available, but allow the user to
- // translate beyond that to a visibleSize that's a bit bigger.
- final Size size = Size(constraints.maxWidth, constraints.maxHeight);
- final Size visibleSize = Size(size.width * 3, size.height * 2);
- return GestureTransformable(
- reset: _reset,
- onResetEnd: () {
- setState(() {
- _reset = false;
- });
- },
- child: CustomPaint(
- painter: painter,
- ),
- boundaryRect: Rect.fromLTWH(
- -visibleSize.width / 2,
- -visibleSize.height / 2,
- visibleSize.width,
- visibleSize.height,
- ),
- // Center the board in the middle of the screen. It's drawn centered
- // at the origin, which is the top left corner of the
- // GestureTransformable.
- initialTranslation: Offset(size.width / 2, size.height / 2),
- onTapUp: _onTapUp,
- size: size,
- );
- },
- ),
- ),
- persistentFooterButtons: [resetButton, editButton],
- );
- }
-
- IconButton get resetButton {
- return IconButton(
- onPressed: () {
- setState(() {
- _reset = true;
- });
- },
- tooltip:
- GalleryLocalizations.of(context).demo2dTransformationsResetTooltip,
- color: Theme.of(context).colorScheme.surface,
- icon: const Icon(Icons.replay),
- );
- }
-
- IconButton get editButton {
- return IconButton(
- onPressed: () {
- if (_board.selected == null) {
- return;
- }
- showModalBottomSheet(
- context: context,
- builder: (context) {
- return Container(
- width: double.infinity,
- height: 150,
- padding: const EdgeInsets.all(12),
- child: EditBoardPoint(
- boardPoint: _board.selected,
- onColorSelection: (color) {
- setState(() {
- _board = _board.copyWithBoardPointColor(
- _board.selected, color);
- Navigator.pop(context);
- });
- },
- ),
- );
- });
- },
- tooltip:
- GalleryLocalizations.of(context).demo2dTransformationsEditTooltip,
- color: Theme.of(context).colorScheme.surface,
- icon: const Icon(Icons.edit),
- );
- }
-
- void _onTapUp(TapUpDetails details) {
- final Offset scenePoint = details.globalPosition;
- final BoardPoint boardPoint = _board.pointToBoardPoint(scenePoint);
- setState(() {
- _board = _board.copyWithSelected(boardPoint);
- });
- }
-}
-
-// CustomPainter is what is passed to CustomPaint and actually draws the scene
-// when its `paint` method is called.
-class BoardPainter extends CustomPainter {
- const BoardPainter({
- this.board,
- });
-
- final Board board;
-
- @override
- void paint(Canvas canvas, Size size) {
- void drawBoardPoint(BoardPoint boardPoint) {
- final Color color = boardPoint.color.withOpacity(
- board.selected == boardPoint ? 0.7 : 1,
- );
- final Vertices vertices =
- board.getVerticesForBoardPoint(boardPoint, color);
- canvas.drawVertices(vertices, BlendMode.color, Paint());
- }
-
- board.forEach(drawBoardPoint);
- }
-
- // We should repaint whenever the board changes, such as board.selected.
- @override
- bool shouldRepaint(BoardPainter oldDelegate) {
- return oldDelegate.board != board;
- }
-}
-
-// END
diff --git a/gallery/lib/demos/reference/transformations_demo_board.dart b/gallery/lib/demos/reference/transformations_demo_board.dart
deleted file mode 100644
index e10da5ac2..000000000
--- a/gallery/lib/demos/reference/transformations_demo_board.dart
+++ /dev/null
@@ -1,289 +0,0 @@
-// Copyright 2019 The Flutter team. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-import 'dart:collection' show IterableMixin;
-import 'dart:math';
-import 'dart:ui' show Vertices;
-import 'package:flutter/material.dart' hide Gradient;
-import 'package:vector_math/vector_math_64.dart' show Vector3;
-
-// BEGIN transformationsDemo#2
-
-// The entire state of the hex board and abstraction to get information about
-// it. Iterable so that all BoardPoints on the board can be iterated over.
-@immutable
-class Board extends Object with IterableMixin {
- Board({
- @required this.boardRadius,
- @required this.hexagonRadius,
- @required this.hexagonMargin,
- this.selected,
- List boardPoints,
- }) : assert(boardRadius > 0),
- assert(hexagonRadius > 0),
- assert(hexagonMargin >= 0) {
- // Set up the positions for the center hexagon where the entire board is
- // centered on the origin.
- // Start point of hexagon (top vertex).
- final Point hexStart = Point(0, -hexagonRadius);
- final double hexagonRadiusPadded = hexagonRadius - hexagonMargin;
- final double centerToFlat = sqrt(3) / 2 * hexagonRadiusPadded;
- positionsForHexagonAtOrigin.addAll([
- Offset(hexStart.x, hexStart.y),
- Offset(hexStart.x + centerToFlat, hexStart.y + 0.5 * hexagonRadiusPadded),
- Offset(hexStart.x + centerToFlat, hexStart.y + 1.5 * hexagonRadiusPadded),
- Offset(hexStart.x + centerToFlat, hexStart.y + 1.5 * hexagonRadiusPadded),
- Offset(hexStart.x, hexStart.y + 2 * hexagonRadiusPadded),
- Offset(hexStart.x, hexStart.y + 2 * hexagonRadiusPadded),
- Offset(hexStart.x - centerToFlat, hexStart.y + 1.5 * hexagonRadiusPadded),
- Offset(hexStart.x - centerToFlat, hexStart.y + 1.5 * hexagonRadiusPadded),
- Offset(hexStart.x - centerToFlat, hexStart.y + 0.5 * hexagonRadiusPadded),
- ]);
-
- if (boardPoints != null) {
- _boardPoints.addAll(boardPoints);
- } else {
- // Generate boardPoints for a fresh board.
- BoardPoint boardPoint = _getNextBoardPoint(null);
- while (boardPoint != null) {
- _boardPoints.add(boardPoint);
- boardPoint = _getNextBoardPoint(boardPoint);
- }
- }
- }
-
- final int boardRadius; // Number of hexagons from center to edge.
- final double hexagonRadius; // Pixel radius of a hexagon (center to vertex).
- final double hexagonMargin; // Margin between hexagons.
- final List positionsForHexagonAtOrigin = [];
- final BoardPoint selected;
- final List _boardPoints = [];
-
- @override
- Iterator get iterator => _BoardIterator(_boardPoints);
-
- // For a given q axial coordinate, get the range of possible r values
- // See the definition of BoardPoint for more information about hex grids and
- // axial coordinates.
- _Range _getRRangeForQ(int q) {
- int rStart;
- int rEnd;
- if (q <= 0) {
- rStart = -boardRadius - q;
- rEnd = boardRadius;
- } else {
- rEnd = boardRadius - q;
- rStart = -boardRadius;
- }
-
- return _Range(rStart, rEnd);
- }
-
- // Get the BoardPoint that comes after the given BoardPoint. If given null,
- // returns the origin BoardPoint. If given BoardPoint is the last, returns
- // null.
- BoardPoint _getNextBoardPoint(BoardPoint boardPoint) {
- // If before the first element.
- if (boardPoint == null) {
- return BoardPoint(-boardRadius, 0);
- }
-
- final _Range rRange = _getRRangeForQ(boardPoint.q);
-
- // If at or after the last element.
- if (boardPoint.q >= boardRadius && boardPoint.r >= rRange.max) {
- return null;
- }
-
- // If wrapping from one q to the next.
- if (boardPoint.r >= rRange.max) {
- return BoardPoint(boardPoint.q + 1, _getRRangeForQ(boardPoint.q + 1).min);
- }
-
- // Otherwise we're just incrementing r.
- return BoardPoint(boardPoint.q, boardPoint.r + 1);
- }
-
- // Check if the board point is actually on the board.
- bool _validateBoardPoint(BoardPoint boardPoint) {
- const BoardPoint center = BoardPoint(0, 0);
- final int distanceFromCenter = getDistance(center, boardPoint);
- return distanceFromCenter <= boardRadius;
- }
-
- // Get the distance between two BoardPoins.
- static int getDistance(BoardPoint a, BoardPoint b) {
- final Vector3 a3 = a.cubeCoordinates;
- final Vector3 b3 = b.cubeCoordinates;
- return ((a3.x - b3.x).abs() + (a3.y - b3.y).abs() + (a3.z - b3.z).abs()) ~/
- 2;
- }
-
- // Return the q,r BoardPoint for a point in the scene, where the origin is in
- // the center of the board in both coordinate systems. If no BoardPoint at the
- // location, return null.
- BoardPoint pointToBoardPoint(Offset point) {
- final BoardPoint boardPoint = BoardPoint(
- ((sqrt(3) / 3 * point.dx - 1 / 3 * point.dy) / hexagonRadius).round(),
- ((2 / 3 * point.dy) / hexagonRadius).round(),
- );
-
- if (!_validateBoardPoint(boardPoint)) {
- return null;
- }
-
- return _boardPoints.firstWhere((boardPointI) {
- return boardPointI.q == boardPoint.q && boardPointI.r == boardPoint.r;
- });
- }
-
- // Return a scene point for the center of a hexagon given its q,r point.
- Point boardPointToPoint(BoardPoint boardPoint) {
- return Point(
- sqrt(3) * hexagonRadius * boardPoint.q +
- sqrt(3) / 2 * hexagonRadius * boardPoint.r,
- 1.5 * hexagonRadius * boardPoint.r,
- );
- }
-
- // Get Vertices that can be drawn to a Canvas for the given BoardPoint.
- Vertices getVerticesForBoardPoint(BoardPoint boardPoint, Color color) {
- final Point centerOfHexZeroCenter = boardPointToPoint(boardPoint);
-
- final List positions = positionsForHexagonAtOrigin.map((offset) {
- return offset.translate(centerOfHexZeroCenter.x, centerOfHexZeroCenter.y);
- }).toList();
-
- return Vertices(
- VertexMode.triangleFan,
- positions,
- colors: List.filled(positions.length, color),
- );
- }
-
- // Return a new board with the given BoardPoint selected.
- Board copyWithSelected(BoardPoint boardPoint) {
- if (selected == boardPoint) {
- return this;
- }
- final Board nextBoard = Board(
- boardRadius: boardRadius,
- hexagonRadius: hexagonRadius,
- hexagonMargin: hexagonMargin,
- selected: boardPoint,
- boardPoints: _boardPoints,
- );
- return nextBoard;
- }
-
- // Return a new board where boardPoint has the given color.
- Board copyWithBoardPointColor(BoardPoint boardPoint, Color color) {
- final BoardPoint nextBoardPoint = boardPoint.copyWithColor(color);
- final int boardPointIndex = _boardPoints.indexWhere((boardPointI) =>
- boardPointI.q == boardPoint.q && boardPointI.r == boardPoint.r);
-
- if (elementAt(boardPointIndex) == boardPoint && boardPoint.color == color) {
- return this;
- }
-
- final List nextBoardPoints =
- List.from(_boardPoints);
- nextBoardPoints[boardPointIndex] = nextBoardPoint;
- final BoardPoint selectedBoardPoint =
- boardPoint == selected ? nextBoardPoint : selected;
- return Board(
- boardRadius: boardRadius,
- hexagonRadius: hexagonRadius,
- hexagonMargin: hexagonMargin,
- selected: selectedBoardPoint,
- boardPoints: nextBoardPoints,
- );
- }
-}
-
-class _BoardIterator extends Iterator {
- _BoardIterator(this.boardPoints);
-
- final List boardPoints;
- int currentIndex;
-
- @override
- BoardPoint current;
-
- @override
- bool moveNext() {
- if (currentIndex == null) {
- currentIndex = 0;
- } else {
- currentIndex++;
- }
-
- if (currentIndex >= boardPoints.length) {
- current = null;
- return false;
- }
-
- current = boardPoints[currentIndex];
- return true;
- }
-}
-
-// A range of q/r board coordinate values.
-@immutable
-class _Range {
- const _Range(this.min, this.max)
- : assert(min != null),
- assert(max != null),
- assert(min <= max);
-
- final int min;
- final int max;
-}
-
-// A location on the board in axial coordinates.
-// Axial coordinates use two integers, q and r, to locate a hexagon on a grid.
-// https://www.redblobgames.com/grids/hexagons/#coordinates-axial
-@immutable
-class BoardPoint {
- const BoardPoint(
- this.q,
- this.r, {
- this.color = const Color(0xFFCDCDCD),
- });
-
- final int q;
- final int r;
- final Color color;
-
- @override
- String toString() {
- return 'BoardPoint($q, $r, $color)';
- }
-
- // Only compares by location.
- @override
- bool operator ==(Object other) {
- if (other.runtimeType != runtimeType) {
- return false;
- }
- return other is BoardPoint && other.q == q && other.r == r;
- }
-
- @override
- int get hashCode => hashValues(q, r);
-
- BoardPoint copyWithColor(Color nextColor) =>
- BoardPoint(q, r, color: nextColor);
-
- // Convert from q,r axial coords to x,y,z cube coords.
- Vector3 get cubeCoordinates {
- return Vector3(
- q.toDouble(),
- r.toDouble(),
- (-q - r).toDouble(),
- );
- }
-}
-
-// END
diff --git a/gallery/lib/demos/reference/transformations_demo_color_picker.dart b/gallery/lib/demos/reference/transformations_demo_color_picker.dart
deleted file mode 100644
index 709236e70..000000000
--- a/gallery/lib/demos/reference/transformations_demo_color_picker.dart
+++ /dev/null
@@ -1,76 +0,0 @@
-// Copyright 2019 The Flutter team. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-import 'package:flutter/material.dart';
-
-// A generic widget for a list of selectable colors.
-@immutable
-class ColorPicker extends StatelessWidget {
- const ColorPicker({
- @required this.colors,
- @required this.selectedColor,
- this.onColorSelection,
- }) : assert(colors != null),
- assert(selectedColor != null);
-
- final Set colors;
- final Color selectedColor;
- final ValueChanged onColorSelection;
-
- @override
- Widget build(BuildContext context) {
- return Row(
- mainAxisAlignment: MainAxisAlignment.center,
- children: colors.map((color) {
- return _ColorPickerSwatch(
- color: color,
- selected: color == selectedColor,
- onTap: () {
- if (onColorSelection != null) {
- onColorSelection(color);
- }
- },
- );
- }).toList(),
- );
- }
-}
-
-// A single selectable color widget in the ColorPicker.
-@immutable
-class _ColorPickerSwatch extends StatelessWidget {
- const _ColorPickerSwatch({
- @required this.color,
- @required this.selected,
- this.onTap,
- }) : assert(color != null),
- assert(selected != null);
-
- final Color color;
- final bool selected;
- final Function onTap;
-
- @override
- Widget build(BuildContext context) {
- return Container(
- width: 60,
- height: 60,
- padding: const EdgeInsets.fromLTRB(2, 0, 2, 0),
- child: RawMaterialButton(
- fillColor: color,
- onPressed: () {
- if (onTap != null) {
- onTap();
- }
- },
- child: !selected
- ? null
- : const Icon(
- Icons.check,
- color: Colors.white,
- ),
- ),
- );
- }
-}
diff --git a/gallery/lib/demos/reference/transformations_demo_edit_board_point.dart b/gallery/lib/demos/reference/transformations_demo_edit_board_point.dart
deleted file mode 100644
index 2350079f5..000000000
--- a/gallery/lib/demos/reference/transformations_demo_edit_board_point.dart
+++ /dev/null
@@ -1,53 +0,0 @@
-// Copyright 2019 The Flutter team. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-import 'package:flutter/material.dart';
-import 'package:gallery/themes/gallery_theme_data.dart';
-import 'transformations_demo_board.dart';
-import 'transformations_demo_color_picker.dart';
-
-final backgroundColor = Color(0xFF272727);
-
-// The panel for editing a board point.
-@immutable
-class EditBoardPoint extends StatelessWidget {
- const EditBoardPoint({
- Key key,
- @required this.boardPoint,
- this.onColorSelection,
- }) : assert(boardPoint != null),
- super(key: key);
-
- final BoardPoint boardPoint;
- final ValueChanged onColorSelection;
-
- @override
- Widget build(BuildContext context) {
- print(GalleryThemeData.darkColorScheme);
-
- final boardPointColors = {
- Colors.white,
- GalleryThemeData.darkColorScheme.primary,
- GalleryThemeData.darkColorScheme.primaryVariant,
- GalleryThemeData.darkColorScheme.secondary,
- backgroundColor,
- };
-
- return Column(
- crossAxisAlignment: CrossAxisAlignment.stretch,
- children: [
- Text(
- '${boardPoint.q}, ${boardPoint.r}',
- textAlign: TextAlign.right,
- style: const TextStyle(fontWeight: FontWeight.bold),
- ),
- ColorPicker(
- colors: boardPointColors,
- selectedColor: boardPoint.color,
- onColorSelection: onColorSelection,
- ),
- ],
- );
- }
-}
diff --git a/gallery/lib/demos/reference/transformations_demo_gesture_transformable.dart b/gallery/lib/demos/reference/transformations_demo_gesture_transformable.dart
deleted file mode 100644
index 3b2f21d2a..000000000
--- a/gallery/lib/demos/reference/transformations_demo_gesture_transformable.dart
+++ /dev/null
@@ -1,620 +0,0 @@
-// Copyright 2019 The Flutter team. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-import 'package:flutter/material.dart';
-import 'package:vector_math/vector_math_64.dart' show Vector3;
-import 'transformations_demo_inertial_motion.dart';
-
-// BEGIN transformationsDemo#3
-
-// This widget allows 2D transform interactions on its child in relation to its
-// parent. The user can transform the child by dragging to pan or pinching to
-// zoom and rotate. All event callbacks for GestureDetector are supported, and
-// the coordinates that are given are untransformed and in relation to the
-// original position of the child.
-@immutable
-class GestureTransformable extends StatefulWidget {
- const GestureTransformable({
- Key key,
- // The child to perform the transformations on.
- @required this.child,
- // The desired visible size of the widget and the area that is receptive to
- // gestures. If a widget that's as big as possible is desired, then wrap
- // this in a LayoutBuilder and pass
- // `Size(constraints.maxWidth, constraints.maxHeight)`.
- @required this.size,
- // The scale will be clamped to between these values. A maxScale of null has
- // no bounds. minScale must be greater than zero.
- this.maxScale = 2.5,
- this.minScale = 0.8,
- // Transforms will be limited so that the viewport can not view beyond this
- // Rect. The Rect does not rotate with the rest of the scene, so it is
- // always aligned with the viewport. A null boundaryRect results in no
- // limits to the distance that the viewport can be transformed to see.
- this.boundaryRect,
- // Initial values for the transform can be provided.
- this.initialTranslation,
- this.initialScale,
- this.initialRotation,
- // Any and all of the possible transformations can be disabled.
- this.disableTranslation = false,
- this.disableScale = false,
- this.disableRotation = false,
- // If set to true, this widget will animate back to its initial transform
- // and call onResetEnd when done. When utilizing reset, onResetEnd should
- // also be implemented, and it should set reset to false when called.
- this.reset = false,
- // Access to event callbacks from GestureDetector. Called with untransformed
- // coordinates in an Offset.
- this.onTapDown,
- this.onTapUp,
- this.onTap,
- this.onTapCancel,
- this.onDoubleTap,
- this.onLongPress,
- this.onLongPressUp,
- this.onVerticalDragDown,
- this.onVerticalDragStart,
- this.onVerticalDragUpdate,
- this.onVerticalDragEnd,
- this.onVerticalDragCancel,
- this.onHorizontalDragDown,
- this.onHorizontalDragStart,
- this.onHorizontalDragUpdate,
- this.onHorizontalDragEnd,
- this.onHorizontalDragCancel,
- this.onPanDown,
- this.onPanStart,
- this.onPanUpdate,
- this.onPanEnd,
- this.onPanCancel,
- this.onResetEnd,
- this.onScaleStart,
- this.onScaleUpdate,
- this.onScaleEnd,
- }) : assert(child != null),
- assert(size != null),
- assert(minScale != null),
- assert(minScale > 0),
- assert(disableTranslation != null),
- assert(disableScale != null),
- assert(disableRotation != null),
- assert(reset != null),
- assert(
- !reset || onResetEnd != null,
- 'Must implement onResetEnd to use reset.',
- ),
- super(key: key);
-
- final Widget child;
- final Size size;
- final bool reset;
- final GestureTapDownCallback onTapDown;
- final GestureTapUpCallback onTapUp;
- final GestureTapCallback onTap;
- final GestureTapCancelCallback onTapCancel;
- final GestureTapCallback onDoubleTap;
- final GestureLongPressCallback onLongPress;
- final GestureLongPressUpCallback onLongPressUp;
- final GestureDragDownCallback onVerticalDragDown;
- final GestureDragStartCallback onVerticalDragStart;
- final GestureDragUpdateCallback onVerticalDragUpdate;
- final GestureDragEndCallback onVerticalDragEnd;
- final GestureDragCancelCallback onVerticalDragCancel;
- final GestureDragDownCallback onHorizontalDragDown;
- final GestureDragStartCallback onHorizontalDragStart;
- final GestureDragUpdateCallback onHorizontalDragUpdate;
- final GestureDragEndCallback onHorizontalDragEnd;
- final GestureDragCancelCallback onHorizontalDragCancel;
- final GestureDragDownCallback onPanDown;
- final GestureDragStartCallback onPanStart;
- final GestureDragUpdateCallback onPanUpdate;
- final GestureDragEndCallback onPanEnd;
- final GestureDragCancelCallback onPanCancel;
- final VoidCallback onResetEnd;
- final GestureScaleStartCallback onScaleStart;
- final GestureScaleUpdateCallback onScaleUpdate;
- final GestureScaleEndCallback onScaleEnd;
- final double maxScale;
- final double minScale;
- final Rect boundaryRect;
- final bool disableTranslation;
- final bool disableScale;
- final bool disableRotation;
- final Offset initialTranslation;
- final double initialScale;
- final double initialRotation;
-
- @override
- _GestureTransformableState createState() => _GestureTransformableState();
-}
-
-// A single user event can only represent one of these gestures. The user can't
-// do multiple at the same time, which results in more precise transformations.
-enum _GestureType {
- translate,
- scale,
- rotate,
-}
-
-// This is public only for access from a unit test.
-class _GestureTransformableState extends State
- with TickerProviderStateMixin {
- Animation _animation;
- AnimationController _controller;
- Animation _animationReset;
- AnimationController _controllerReset;
- // The translation that will be applied to the scene (not viewport).
- // A positive x offset moves the scene right, viewport left.
- // A positive y offset moves the scene down, viewport up.
- Offset _translateFromScene; // Point where a single translation began.
- double _scaleStart; // Scale value at start of scaling gesture.
- double _rotationStart = 0; // Rotation at start of rotation gesture.
- Rect _boundaryRect;
- Matrix4 _transform = Matrix4.identity();
- double _currentRotation = 0;
- _GestureType gestureType;
-
- // The transformation matrix that gives the initial home position.
- Matrix4 get _initialTransform {
- Matrix4 matrix = Matrix4.identity();
- if (widget.initialTranslation != null) {
- matrix = matrixTranslate(matrix, widget.initialTranslation);
- }
- if (widget.initialScale != null) {
- matrix = matrixScale(matrix, widget.initialScale);
- }
- if (widget.initialRotation != null) {
- matrix = matrixRotate(matrix, widget.initialRotation, Offset.zero);
- }
- return matrix;
- }
-
- // Return the scene point at the given viewport point.
- static Offset fromViewport(Offset viewportPoint, Matrix4 transform) {
- // On viewportPoint, perform the inverse transformation of the scene to get
- // where the point would be in the scene before the transformation.
- final Matrix4 inverseMatrix = Matrix4.inverted(transform);
- final Vector3 untransformed = inverseMatrix.transform3(Vector3(
- viewportPoint.dx,
- viewportPoint.dy,
- 0,
- ));
- return Offset(untransformed.x, untransformed.y);
- }
-
- // Get the offset of the current widget from the global screen coordinates.
- // TODO(justinmc): Protect against calling this during first build.
- static Offset getOffset(BuildContext context) {
- final RenderBox renderObject = context.findRenderObject() as RenderBox;
- return renderObject.localToGlobal(Offset.zero);
- }
-
- @override
- void initState() {
- super.initState();
- _boundaryRect = widget.boundaryRect ?? Offset.zero & widget.size;
- _transform = _initialTransform;
- _controller = AnimationController(
- vsync: this,
- );
- _controllerReset = AnimationController(
- vsync: this,
- );
- if (widget.reset) {
- _animateResetInitialize();
- }
- }
-
- @override
- void didUpdateWidget(GestureTransformable oldWidget) {
- super.didUpdateWidget(oldWidget);
- if (widget.reset && !oldWidget.reset && _animationReset == null) {
- _animateResetInitialize();
- } else if (!widget.reset && oldWidget.reset && _animationReset != null) {
- _animateResetStop();
- }
- }
-
- @override
- Widget build(BuildContext context) {
- // A GestureDetector allows the detection of panning and zooming gestures on
- // its child, which is the CustomPaint.
- return GestureDetector(
- behavior: HitTestBehavior.opaque, // Necessary when translating off screen
- onTapDown: widget.onTapDown == null
- ? null
- : (details) {
- widget.onTapDown(TapDownDetails(
- globalPosition: fromViewport(
- details.globalPosition - getOffset(context), _transform),
- ));
- },
- onTapUp: widget.onTapUp == null
- ? null
- : (details) {
- widget.onTapUp(TapUpDetails(
- globalPosition: fromViewport(
- details.globalPosition - getOffset(context), _transform),
- ));
- },
- onTap: widget.onTap,
- onTapCancel: widget.onTapCancel,
- onDoubleTap: widget.onDoubleTap,
- onLongPress: widget.onLongPress,
- onLongPressUp: widget.onLongPressUp,
- onVerticalDragDown: widget.onVerticalDragDown == null
- ? null
- : (details) {
- widget.onVerticalDragDown(DragDownDetails(
- globalPosition: fromViewport(
- details.globalPosition - getOffset(context), _transform),
- ));
- },
- onVerticalDragStart: widget.onVerticalDragStart == null
- ? null
- : (details) {
- widget.onVerticalDragStart(DragStartDetails(
- globalPosition: fromViewport(
- details.globalPosition - getOffset(context), _transform),
- ));
- },
- onVerticalDragUpdate: widget.onVerticalDragUpdate == null
- ? null
- : (details) {
- widget.onVerticalDragUpdate(DragUpdateDetails(
- globalPosition: fromViewport(
- details.globalPosition - getOffset(context), _transform),
- ));
- },
- onVerticalDragEnd: widget.onVerticalDragEnd,
- onVerticalDragCancel: widget.onVerticalDragCancel,
- onHorizontalDragDown: widget.onHorizontalDragDown == null
- ? null
- : (details) {
- widget.onHorizontalDragDown(DragDownDetails(
- globalPosition: fromViewport(
- details.globalPosition - getOffset(context), _transform),
- ));
- },
- onHorizontalDragStart: widget.onHorizontalDragStart == null
- ? null
- : (details) {
- widget.onHorizontalDragStart(DragStartDetails(
- globalPosition: fromViewport(
- details.globalPosition - getOffset(context), _transform),
- ));
- },
- onHorizontalDragUpdate: widget.onHorizontalDragUpdate == null
- ? null
- : (details) {
- widget.onHorizontalDragUpdate(DragUpdateDetails(
- globalPosition: fromViewport(
- details.globalPosition - getOffset(context), _transform),
- ));
- },
- onHorizontalDragEnd: widget.onHorizontalDragEnd,
- onHorizontalDragCancel: widget.onHorizontalDragCancel,
- onPanDown: widget.onPanDown == null
- ? null
- : (details) {
- widget.onPanDown(DragDownDetails(
- globalPosition: fromViewport(
- details.globalPosition - getOffset(context), _transform),
- ));
- },
- onPanStart: widget.onPanStart == null
- ? null
- : (details) {
- widget.onPanStart(DragStartDetails(
- globalPosition: fromViewport(
- details.globalPosition - getOffset(context), _transform),
- ));
- },
- onPanUpdate: widget.onPanUpdate == null
- ? null
- : (details) {
- widget.onPanUpdate(DragUpdateDetails(
- globalPosition: fromViewport(
- details.globalPosition - getOffset(context), _transform),
- ));
- },
- onPanEnd: widget.onPanEnd,
- onPanCancel: widget.onPanCancel,
- onScaleEnd: _onScaleEnd,
- onScaleStart: _onScaleStart,
- onScaleUpdate: _onScaleUpdate,
- child: ClipRect(
- // The scene is panned/zoomed/rotated using this Transform widget.
- child: Transform(
- transform: _transform,
- child: Container(
- child: widget.child,
- height: widget.size.height,
- width: widget.size.width,
- ),
- ),
- ),
- );
- }
-
- // Return a new matrix representing the given matrix after applying the given
- // translation.
- Matrix4 matrixTranslate(Matrix4 matrix, Offset translation) {
- if (widget.disableTranslation || translation == Offset.zero) {
- return matrix;
- }
-
- // Clamp translation so the viewport remains inside _boundaryRect.
- final double scale = _transform.getMaxScaleOnAxis();
- final Size scaledSize = widget.size / scale;
- final Rect viewportBoundaries = Rect.fromLTRB(
- _boundaryRect.left,
- _boundaryRect.top,
- _boundaryRect.right - scaledSize.width,
- _boundaryRect.bottom - scaledSize.height,
- );
- // Translation is reversed (a positive translation moves the scene to the
- // right, viewport to the left).
- final Rect translationBoundaries = Rect.fromLTRB(
- -scale * viewportBoundaries.right,
- -scale * viewportBoundaries.bottom,
- -scale * viewportBoundaries.left,
- -scale * viewportBoundaries.top,
- );
- final Matrix4 nextMatrix = matrix.clone()
- ..translate(
- translation.dx,
- translation.dy,
- );
- final Vector3 nextTranslationVector = nextMatrix.getTranslation();
- final Offset nextTranslation = Offset(
- nextTranslationVector.x,
- nextTranslationVector.y,
- );
- final bool inBoundaries = translationBoundaries.contains(
- Offset(nextTranslation.dx, nextTranslation.dy),
- );
- if (!inBoundaries) {
- // TODO(justinmc): Instead of canceling translation when it goes out of
- // bounds, stop translation at boundary.
- return matrix;
- }
-
- return nextMatrix;
- }
-
- // Return a new matrix representing the given matrix after applying the given
- // scale transform.
- Matrix4 matrixScale(Matrix4 matrix, double scale) {
- if (widget.disableScale || scale == 1) {
- return matrix;
- }
- assert(scale != 0);
-
- // Don't allow a scale that moves the viewport outside of _boundaryRect.
- final Offset tl = fromViewport(const Offset(0, 0), _transform);
- final Offset tr = fromViewport(Offset(widget.size.width, 0), _transform);
- final Offset bl = fromViewport(Offset(0, widget.size.height), _transform);
- final Offset br = fromViewport(
- Offset(widget.size.width, widget.size.height),
- _transform,
- );
- if (!_boundaryRect.contains(tl) ||
- !_boundaryRect.contains(tr) ||
- !_boundaryRect.contains(bl) ||
- !_boundaryRect.contains(br)) {
- return matrix;
- }
-
- // Don't allow a scale that results in an overall scale beyond min/max
- // scale.
- final double currentScale = _transform.getMaxScaleOnAxis();
- final double totalScale = currentScale * scale;
- final double clampedTotalScale = totalScale.clamp(
- widget.minScale,
- widget.maxScale,
- ) as double;
- final double clampedScale = clampedTotalScale / currentScale;
- return matrix..scale(clampedScale);
- }
-
- // Return a new matrix representing the given matrix after applying the given
- // rotation transform.
- // Rotating the scene cannot cause the viewport to view beyond _boundaryRect.
- Matrix4 matrixRotate(Matrix4 matrix, double rotation, Offset focalPoint) {
- if (widget.disableRotation || rotation == 0) {
- return matrix;
- }
- final Offset focalPointScene = fromViewport(focalPoint, matrix);
- return matrix
- ..translate(focalPointScene.dx, focalPointScene.dy)
- ..rotateZ(-rotation)
- ..translate(-focalPointScene.dx, -focalPointScene.dy);
- }
-
- // Handle the start of a gesture of _GestureType.
- void _onScaleStart(ScaleStartDetails details) {
- if (widget.onScaleStart != null) {
- widget.onScaleStart(details);
- }
-
- if (_controller.isAnimating) {
- _controller.stop();
- _controller.reset();
- _animation?.removeListener(_onAnimate);
- _animation = null;
- }
- if (_controllerReset.isAnimating) {
- _animateResetStop();
- }
-
- gestureType = null;
- setState(() {
- _scaleStart = _transform.getMaxScaleOnAxis();
- _translateFromScene = fromViewport(details.focalPoint, _transform);
- _rotationStart = _currentRotation;
- });
- }
-
- // Handle an update to an ongoing gesture of _GestureType.
- void _onScaleUpdate(ScaleUpdateDetails details) {
- double scale = _transform.getMaxScaleOnAxis();
- if (widget.onScaleUpdate != null) {
- widget.onScaleUpdate(ScaleUpdateDetails(
- focalPoint: fromViewport(details.focalPoint, _transform),
- scale: details.scale,
- rotation: details.rotation,
- ));
- }
- final Offset focalPointScene = fromViewport(
- details.focalPoint,
- _transform,
- );
- if (gestureType == null) {
- // Decide which type of gesture this is by comparing the amount of scale
- // and rotation in the gesture, if any. Scale starts at 1 and rotation
- // starts at 0. Translate will have 0 scale and 0 rotation because it uses
- // only one finger.
- if ((details.scale - 1).abs() > details.rotation.abs()) {
- gestureType = _GestureType.scale;
- } else if (details.rotation != 0) {
- gestureType = _GestureType.rotate;
- } else {
- gestureType = _GestureType.translate;
- }
- }
- setState(() {
- if (gestureType == _GestureType.scale && _scaleStart != null) {
- // details.scale gives us the amount to change the scale as of the
- // start of this gesture, so calculate the amount to scale as of the
- // previous call to _onScaleUpdate.
- final double desiredScale = _scaleStart * details.scale;
- final double scaleChange = desiredScale / scale;
- _transform = matrixScale(_transform, scaleChange);
- scale = _transform.getMaxScaleOnAxis();
-
- // While scaling, translate such that the user's two fingers stay on the
- // same places in the scene. That means that the focal point of the
- // scale should be on the same place in the scene before and after the
- // scale.
- final Offset focalPointSceneNext = fromViewport(
- details.focalPoint,
- _transform,
- );
- _transform =
- matrixTranslate(_transform, focalPointSceneNext - focalPointScene);
- } else if (gestureType == _GestureType.rotate && details.rotation != 0) {
- final double desiredRotation = _rotationStart + details.rotation;
- _transform = matrixRotate(
- _transform, _currentRotation - desiredRotation, details.focalPoint);
- _currentRotation = desiredRotation;
- } else if (_translateFromScene != null && details.scale == 1) {
- // Translate so that the same point in the scene is underneath the
- // focal point before and after the movement.
- final Offset translationChange = focalPointScene - _translateFromScene;
- _transform = matrixTranslate(_transform, translationChange);
- _translateFromScene = fromViewport(details.focalPoint, _transform);
- }
- });
- }
-
- // Handle the end of a gesture of _GestureType.
- void _onScaleEnd(ScaleEndDetails details) {
- if (widget.onScaleEnd != null) {
- widget.onScaleEnd(details);
- }
- setState(() {
- _scaleStart = null;
- _rotationStart = null;
- _translateFromScene = null;
- });
-
- _animation?.removeListener(_onAnimate);
- _controller.reset();
-
- // If the scale ended with velocity, animate inertial movement
- final double velocityTotal = details.velocity.pixelsPerSecond.dx.abs() +
- details.velocity.pixelsPerSecond.dy.abs();
- if (velocityTotal == 0) {
- return;
- }
-
- final Vector3 translationVector = _transform.getTranslation();
- final Offset translation = Offset(translationVector.x, translationVector.y);
- final InertialMotion inertialMotion =
- InertialMotion(details.velocity, translation);
- _animation = Tween(
- begin: translation,
- end: inertialMotion.finalPosition,
- ).animate(_controller);
- _controller.duration =
- Duration(milliseconds: inertialMotion.duration.toInt());
- _animation.addListener(_onAnimate);
- _controller.fling();
- }
-
- // Handle inertia drag animation.
- void _onAnimate() {
- setState(() {
- // Translate _transform such that the resulting translation is
- // _animation.value.
- final Vector3 translationVector = _transform.getTranslation();
- final Offset translation =
- Offset(translationVector.x, translationVector.y);
- final Offset translationScene = fromViewport(translation, _transform);
- final Offset animationScene = fromViewport(_animation.value, _transform);
- final Offset translationChangeScene = animationScene - translationScene;
- _transform = matrixTranslate(_transform, translationChangeScene);
- });
- if (!_controller.isAnimating) {
- _animation?.removeListener(_onAnimate);
- _animation = null;
- _controller.reset();
- }
- }
-
- // Handle reset to home transform animation.
- void _onAnimateReset() {
- setState(() {
- _transform = _animationReset.value;
- });
- if (!_controllerReset.isAnimating) {
- _animationReset?.removeListener(_onAnimateReset);
- _animationReset = null;
- _controllerReset.reset();
- widget.onResetEnd();
- }
- }
-
- // Initialize the reset to home transform animation.
- void _animateResetInitialize() {
- _controllerReset.reset();
- _animationReset = Matrix4Tween(
- begin: _transform,
- end: _initialTransform,
- ).animate(_controllerReset);
- _controllerReset.duration = const Duration(milliseconds: 400);
- _animationReset.addListener(_onAnimateReset);
- _controllerReset.forward();
- }
-
- // Stop a running reset to home transform animation.
- void _animateResetStop() {
- _controllerReset.stop();
- _animationReset?.removeListener(_onAnimateReset);
- _animationReset = null;
- _controllerReset.reset();
- widget.onResetEnd();
- }
-
- @override
- void dispose() {
- _controller.dispose();
- _controllerReset.dispose();
- super.dispose();
- }
-}
-
-// END
diff --git a/gallery/lib/demos/reference/transformations_demo_inertial_motion.dart b/gallery/lib/demos/reference/transformations_demo_inertial_motion.dart
deleted file mode 100644
index 82bfb5b5c..000000000
--- a/gallery/lib/demos/reference/transformations_demo_inertial_motion.dart
+++ /dev/null
@@ -1,72 +0,0 @@
-// Copyright 2019 The Flutter team. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-import 'dart:math';
-import 'package:flutter/material.dart';
-import 'package:vector_math/vector_math.dart' show Vector2;
-
-// Provides calculations for an object moving with inertia and friction using
-// the equation of motion from physics.
-// https://en.wikipedia.org/wiki/Equations_of_motion#Constant_translational_acceleration_in_a_straight_line
-// TODO(justinmc): Can this be replaced with friction_simulation.dart?
-@immutable
-class InertialMotion {
- const InertialMotion(this._initialVelocity, this._initialPosition);
-
- static const double _kFrictionalAcceleration = 0.01; // How quickly to stop
- final Velocity _initialVelocity;
- final Offset _initialPosition;
-
- // The position when the motion stops.
- Offset get finalPosition {
- return _getPositionAt(Duration(milliseconds: duration.toInt()));
- }
-
- // The total time that the animation takes start to stop in milliseconds.
- double get duration {
- return (_initialVelocity.pixelsPerSecond.dx / 1000 / _acceleration.x).abs();
- }
-
- // The acceleration opposing the initial velocity in x and y components.
- Vector2 get _acceleration {
- // TODO(justinmc): Find actual velocity instead of summing?
- final velocityTotal = _initialVelocity.pixelsPerSecond.dx.abs() +
- _initialVelocity.pixelsPerSecond.dy.abs();
- final vRatioX = _initialVelocity.pixelsPerSecond.dx / velocityTotal;
- final vRatioY = _initialVelocity.pixelsPerSecond.dy / velocityTotal;
- return Vector2(
- _kFrictionalAcceleration * vRatioX,
- _kFrictionalAcceleration * vRatioY,
- );
- }
-
- // The position at a given time.
- Offset _getPositionAt(Duration time) {
- final xf = _getPosition(
- r0: _initialPosition.dx,
- v0: _initialVelocity.pixelsPerSecond.dx / 1000,
- t: time.inMilliseconds,
- a: _acceleration.x,
- );
- final yf = _getPosition(
- r0: _initialPosition.dy,
- v0: _initialVelocity.pixelsPerSecond.dy / 1000,
- t: time.inMilliseconds,
- a: _acceleration.y,
- );
- return Offset(xf, yf);
- }
-
- // Solve the equation of motion to find the position at a given point in time
- // in one dimension.
- double _getPosition({double r0, double v0, int t, double a}) {
- // Stop movement when it would otherwise reverse direction.
- final stopTime = (v0 / a).abs();
- if (t > stopTime) {
- t = stopTime.toInt();
- }
-
- return r0 + v0 * t + 0.5 * a * pow(t, 2);
- }
-}
diff --git a/gallery/lib/demos/reference/typography_demo.dart b/gallery/lib/demos/reference/typography_demo.dart
deleted file mode 100644
index 4160bf333..000000000
--- a/gallery/lib/demos/reference/typography_demo.dart
+++ /dev/null
@@ -1,128 +0,0 @@
-// Copyright 2019 The Flutter team. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-import 'package:flutter/material.dart';
-
-import 'package:gallery/l10n/gallery_localizations.dart';
-
-// BEGIN typographyDemo
-
-class _TextStyleItem extends StatelessWidget {
- const _TextStyleItem({
- Key key,
- @required this.name,
- @required this.style,
- @required this.text,
- }) : assert(name != null),
- assert(style != null),
- assert(text != null),
- super(key: key);
-
- final String name;
- final TextStyle style;
- final String text;
-
- @override
- Widget build(BuildContext context) {
- return Padding(
- padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 16),
- child: Row(
- crossAxisAlignment: CrossAxisAlignment.center,
- children: [
- SizedBox(
- width: 72,
- child: Text(name, style: Theme.of(context).textTheme.caption),
- ),
- Expanded(
- child: Text(text, style: style),
- ),
- ],
- ),
- );
- }
-}
-
-class TypographyDemo extends StatelessWidget {
- @override
- Widget build(BuildContext context) {
- final textTheme = Theme.of(context).textTheme;
- final styleItems = [
- _TextStyleItem(
- name: 'Display 4',
- style: textTheme.display4,
- text: 'Light 96sp',
- ),
- _TextStyleItem(
- name: 'Display 3',
- style: textTheme.display3,
- text: 'Light 60sp',
- ),
- _TextStyleItem(
- name: 'Display 2',
- style: textTheme.display2,
- text: 'Regular 48sp',
- ),
- _TextStyleItem(
- name: 'Display 1',
- style: textTheme.display1,
- text: 'Regular 34sp',
- ),
- _TextStyleItem(
- name: 'Headline',
- style: textTheme.headline,
- text: 'Regular 24sp',
- ),
- _TextStyleItem(
- name: 'Title',
- style: textTheme.title,
- text: 'Medium 20sp',
- ),
- _TextStyleItem(
- name: 'Subhead',
- style: textTheme.subhead,
- text: 'Regular 16sp',
- ),
- _TextStyleItem(
- name: 'Subtitle',
- style: textTheme.subtitle,
- text: 'Medium 14sp',
- ),
- _TextStyleItem(
- name: 'Body 1',
- style: textTheme.body1,
- text: 'Regular 16sp',
- ),
- _TextStyleItem(
- name: 'Body 2',
- style: textTheme.body2,
- text: 'Regular 14sp',
- ),
- _TextStyleItem(
- name: 'Button',
- style: textTheme.button,
- text: 'MEDIUM (ALL CAPS) 14sp',
- ),
- _TextStyleItem(
- name: 'Caption',
- style: textTheme.caption,
- text: 'Regular 12sp',
- ),
- _TextStyleItem(
- name: 'Overline',
- style: textTheme.overline,
- text: 'REGULAR (ALL CAPS) 10sp',
- ),
- ];
-
- return Scaffold(
- appBar: AppBar(
- automaticallyImplyLeading: false,
- title: Text(GalleryLocalizations.of(context).demoTypographyTitle),
- ),
- body: Scrollbar(child: ListView(children: styleItems)),
- );
- }
-}
-
-// END
diff --git a/gallery/lib/feature_discovery/animation.dart b/gallery/lib/feature_discovery/animation.dart
deleted file mode 100644
index 40358e544..000000000
--- a/gallery/lib/feature_discovery/animation.dart
+++ /dev/null
@@ -1,247 +0,0 @@
-// Copyright 2019 The Flutter team. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-import 'package:flutter/material.dart';
-
-/// Animations class to compute animation values for overlay widgets.
-///
-/// Values are loosely based on Material Design specs, which are minimal.
-class Animations {
- final AnimationController openController;
- final AnimationController tapController;
- final AnimationController rippleController;
- final AnimationController dismissController;
-
- static const backgroundMaxOpacity = 0.96;
- static const backgroundTapRadius = 20.0;
- static const rippleMaxOpacity = 0.75;
- static const tapTargetToContentDistance = 20.0;
- static const tapTargetMaxRadius = 44.0;
- static const tapTargetMinRadius = 20.0;
- static const tapTargetRippleRadius = 64.0;
-
- Animations(
- this.openController,
- this.tapController,
- this.rippleController,
- this.dismissController,
- );
-
- Animation backgroundOpacity(FeatureDiscoveryStatus status) {
- switch (status) {
- case FeatureDiscoveryStatus.closed:
- return AlwaysStoppedAnimation(0);
- case FeatureDiscoveryStatus.open:
- return Tween(begin: 0, end: backgroundMaxOpacity)
- .animate(CurvedAnimation(
- parent: openController,
- curve: Interval(0, 0.5, curve: Curves.ease),
- ));
- case FeatureDiscoveryStatus.tap:
- return Tween(begin: backgroundMaxOpacity, end: 0)
- .animate(CurvedAnimation(
- parent: tapController,
- curve: Curves.ease,
- ));
- case FeatureDiscoveryStatus.dismiss:
- return Tween(begin: backgroundMaxOpacity, end: 0)
- .animate(CurvedAnimation(
- parent: dismissController,
- curve: Interval(0.2, 1.0, curve: Curves.ease),
- ));
- default:
- return AlwaysStoppedAnimation(backgroundMaxOpacity);
- }
- }
-
- Animation backgroundRadius(
- FeatureDiscoveryStatus status,
- double backgroundRadiusMax,
- ) {
- switch (status) {
- case FeatureDiscoveryStatus.closed:
- return AlwaysStoppedAnimation(0);
- case FeatureDiscoveryStatus.open:
- return Tween(begin: 0, end: backgroundRadiusMax)
- .animate(CurvedAnimation(
- parent: openController,
- curve: Interval(0, 0.5, curve: Curves.ease),
- ));
- case FeatureDiscoveryStatus.tap:
- return Tween(
- begin: backgroundRadiusMax,
- end: backgroundRadiusMax + backgroundTapRadius)
- .animate(CurvedAnimation(
- parent: tapController,
- curve: Curves.ease,
- ));
- case FeatureDiscoveryStatus.dismiss:
- return Tween(begin: backgroundRadiusMax, end: 0)
- .animate(CurvedAnimation(
- parent: dismissController,
- curve: Curves.ease,
- ));
- default:
- return AlwaysStoppedAnimation(backgroundRadiusMax);
- }
- }
-
- Animation backgroundCenter(
- FeatureDiscoveryStatus status,
- Offset start,
- Offset end,
- ) {
- switch (status) {
- case FeatureDiscoveryStatus.closed:
- return AlwaysStoppedAnimation(start);
- case FeatureDiscoveryStatus.open:
- return Tween(begin: start, end: end).animate(CurvedAnimation(
- parent: openController,
- curve: Interval(0, 0.5, curve: Curves.ease),
- ));
- case FeatureDiscoveryStatus.tap:
- return Tween(begin: end, end: start).animate(CurvedAnimation(
- parent: tapController,
- curve: Curves.ease,
- ));
- case FeatureDiscoveryStatus.dismiss:
- return Tween(begin: end, end: start).animate(CurvedAnimation(
- parent: dismissController,
- curve: Curves.ease,
- ));
- default:
- return AlwaysStoppedAnimation(end);
- }
- }
-
- Animation contentOpacity(FeatureDiscoveryStatus status) {
- switch (status) {
- case FeatureDiscoveryStatus.closed:
- return AlwaysStoppedAnimation(0);
- case FeatureDiscoveryStatus.open:
- return Tween(begin: 0, end: 1.0).animate(CurvedAnimation(
- parent: openController,
- curve: Interval(0.4, 0.7, curve: Curves.ease),
- ));
- case FeatureDiscoveryStatus.tap:
- return Tween(begin: 1.0, end: 0).animate(CurvedAnimation(
- parent: tapController,
- curve: Interval(0, 0.4, curve: Curves.ease),
- ));
- case FeatureDiscoveryStatus.dismiss:
- return Tween(begin: 1.0, end: 0).animate(CurvedAnimation(
- parent: dismissController,
- curve: Interval(0, 0.4, curve: Curves.ease),
- ));
- default:
- return AlwaysStoppedAnimation(1.0);
- }
- }
-
- Animation rippleOpacity(FeatureDiscoveryStatus status) {
- switch (status) {
- case FeatureDiscoveryStatus.ripple:
- return Tween(begin: rippleMaxOpacity, end: 0)
- .animate(CurvedAnimation(
- parent: rippleController,
- curve: Interval(0.3, 0.8, curve: Curves.ease),
- ));
- default:
- return AlwaysStoppedAnimation(0);
- }
- }
-
- Animation rippleRadius(FeatureDiscoveryStatus status) {
- switch (status) {
- case FeatureDiscoveryStatus.ripple:
- if (rippleController.value >= 0.3 && rippleController.value <= 0.8) {
- return Tween(begin: tapTargetMaxRadius, end: 79.0)
- .animate(CurvedAnimation(
- parent: rippleController,
- curve: Interval(0.3, 0.8, curve: Curves.ease),
- ));
- }
- return AlwaysStoppedAnimation(tapTargetMaxRadius);
- default:
- return AlwaysStoppedAnimation(0);
- }
- }
-
- Animation tapTargetOpacity(FeatureDiscoveryStatus status) {
- switch (status) {
- case FeatureDiscoveryStatus.closed:
- return AlwaysStoppedAnimation(0);
- case FeatureDiscoveryStatus.open:
- return Tween(begin: 0, end: 1.0).animate(CurvedAnimation(
- parent: openController,
- curve: Interval(0, 0.4, curve: Curves.ease),
- ));
- case FeatureDiscoveryStatus.tap:
- return Tween(begin: 1.0, end: 0).animate(CurvedAnimation(
- parent: tapController,
- curve: Interval(0.1, 0.6, curve: Curves.ease),
- ));
- case FeatureDiscoveryStatus.dismiss:
- return Tween(begin: 1.0, end: 0).animate(CurvedAnimation(
- parent: dismissController,
- curve: Interval(0.2, 0.8, curve: Curves.ease),
- ));
- default:
- return AlwaysStoppedAnimation(1.0);
- }
- }
-
- Animation tapTargetRadius(FeatureDiscoveryStatus status) {
- switch (status) {
- case FeatureDiscoveryStatus.closed:
- return AlwaysStoppedAnimation(tapTargetMinRadius);
- case FeatureDiscoveryStatus.open:
- return Tween(begin: tapTargetMinRadius, end: tapTargetMaxRadius)
- .animate(CurvedAnimation(
- parent: openController,
- curve: Interval(0, 0.4, curve: Curves.ease),
- ));
- case FeatureDiscoveryStatus.ripple:
- if (rippleController.value < 0.3) {
- return Tween(
- begin: tapTargetMaxRadius, end: tapTargetRippleRadius)
- .animate(CurvedAnimation(
- parent: rippleController,
- curve: Interval(0, 0.3, curve: Curves.ease),
- ));
- } else if (rippleController.value < 0.6) {
- return Tween(
- begin: tapTargetRippleRadius, end: tapTargetMaxRadius)
- .animate(CurvedAnimation(
- parent: rippleController,
- curve: Interval(0.3, 0.6, curve: Curves.ease),
- ));
- }
- return AlwaysStoppedAnimation(tapTargetMaxRadius);
- case FeatureDiscoveryStatus.tap:
- return Tween(begin: tapTargetMaxRadius, end: tapTargetMinRadius)
- .animate(CurvedAnimation(
- parent: tapController,
- curve: Curves.ease,
- ));
- case FeatureDiscoveryStatus.dismiss:
- return Tween(begin: tapTargetMaxRadius, end: tapTargetMinRadius)
- .animate(CurvedAnimation(
- parent: dismissController,
- curve: Curves.ease,
- ));
- default:
- return AlwaysStoppedAnimation(tapTargetMaxRadius);
- }
- }
-}
-
-/// Enum to indicate the current status of a [FeatureDiscovery] widget.
-enum FeatureDiscoveryStatus {
- closed, // Overlay is closed.
- open, // Overlay is opening.
- ripple, // Overlay is rippling.
- tap, // Overlay is tapped.
- dismiss, // Overlay is being dismissed.
-}
diff --git a/gallery/lib/feature_discovery/feature_discovery.dart b/gallery/lib/feature_discovery/feature_discovery.dart
deleted file mode 100644
index 2cb71e9cc..000000000
--- a/gallery/lib/feature_discovery/feature_discovery.dart
+++ /dev/null
@@ -1,384 +0,0 @@
-// Copyright 2019 The Flutter team. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-import 'package:flutter/material.dart';
-import 'package:flutter/scheduler.dart';
-
-import 'package:gallery/feature_discovery/animation.dart';
-import 'package:gallery/feature_discovery/overlay.dart';
-
-/// [Widget] to enforce a global lock system for [FeatureDiscovery] widgets.
-///
-/// This widget enforces that at most one [FeatureDiscovery] widget in its
-/// widget tree is shown at a time.
-///
-/// Users wanting to use [FeatureDiscovery] need to put this controller
-/// above [FeatureDiscovery] widgets in the widget tree.
-class FeatureDiscoveryController extends StatefulWidget {
- final Widget child;
-
- FeatureDiscoveryController(this.child);
-
- static _FeatureDiscoveryControllerState of(BuildContext context) {
- final matchResult =
- context.findAncestorStateOfType<_FeatureDiscoveryControllerState>();
- if (matchResult != null) {
- return matchResult;
- }
-
- throw FlutterError(
- 'FeatureDiscoveryController.of() called with a context that does not '
- 'contain a FeatureDiscoveryController.\n The context used was:\n '
- '$context');
- }
-
- @override
- _FeatureDiscoveryControllerState createState() =>
- _FeatureDiscoveryControllerState();
-}
-
-class _FeatureDiscoveryControllerState
- extends State {
- bool _isLocked = false;
-
- /// Flag to indicate whether a [FeatureDiscovery] widget descendant is
- /// currently showing its overlay or not.
- ///
- /// If true, then no other [FeatureDiscovery] widget should display its
- /// overlay.
- bool get isLocked => _isLocked;
-
- /// Lock the controller.
- ///
- /// Note we do not [setState] here because this function will be called
- /// by the first [FeatureDiscovery] ready to show its overlay, and any
- /// additional [FeatureDiscovery] widgets wanting to show their overlays
- /// will already be scheduled to be built, so the lock change will be caught
- /// in their builds.
- void lock() => _isLocked = true;
-
- /// Unlock the controller.
- void unlock() => setState(() => _isLocked = false);
-
- @override
- void didChangeDependencies() {
- super.didChangeDependencies();
- assert(
- context.findAncestorStateOfType<_FeatureDiscoveryControllerState>() ==
- null,
- 'There should not be another ancestor of type '
- 'FeatureDiscoveryController in the widget tree.',
- );
- }
-
- @override
- Widget build(BuildContext context) => widget.child;
-}
-
-/// Widget that highlights the [child] with an overlay.
-///
-/// This widget loosely follows the guidelines set forth in the Material Specs:
-/// https://material.io/archive/guidelines/growth-communications/feature-discovery.html.
-class FeatureDiscovery extends StatefulWidget {
- /// Title to be displayed in the overlay.
- final String title;
-
- /// Description to be displayed in the overlay.
- final String description;
-
- /// Icon to be promoted.
- final Icon child;
-
- /// Flag to indicate whether to show the overlay or not anchored to the
- /// [child].
- final bool showOverlay;
-
- /// Callback invoked when the user dismisses an overlay.
- final void Function() onDismiss;
-
- /// Callback invoked when the user taps on the tap target of an overlay.
- final void Function() onTap;
-
- /// Color with which to fill the outer circle.
- final Color color;
-
- @visibleForTesting
- static final overlayKey = Key('overlay key');
-
- @visibleForTesting
- static final gestureDetectorKey = Key('gesture detector key');
-
- FeatureDiscovery({
- @required this.title,
- @required this.description,
- @required this.child,
- @required this.showOverlay,
- this.onDismiss,
- this.onTap,
- this.color,
- }) {
- assert(title != null);
- assert(description != null);
- assert(child != null);
- assert(showOverlay != null);
- }
-
- @override
- _FeatureDiscoveryState createState() => _FeatureDiscoveryState();
-}
-
-class _FeatureDiscoveryState extends State
- with TickerProviderStateMixin {
- bool showOverlay = false;
- FeatureDiscoveryStatus status = FeatureDiscoveryStatus.closed;
-
- AnimationController openController;
- AnimationController rippleController;
- AnimationController tapController;
- AnimationController dismissController;
-
- Animations animations;
- OverlayEntry overlay;
-
- Widget buildOverlay(BuildContext ctx, Offset center) {
- debugCheckHasMediaQuery(ctx);
- debugCheckHasDirectionality(ctx);
-
- final deviceSize = MediaQuery.of(ctx).size;
- final color = widget.color ?? Theme.of(ctx).primaryColor;
-
- // Wrap in transparent [Material] to enable widgets that require one.
- return Material(
- key: FeatureDiscovery.overlayKey,
- type: MaterialType.transparency,
- child: Stack(
- children: [
- GestureDetector(
- key: FeatureDiscovery.gestureDetectorKey,
- onTap: dismiss,
- child: Container(
- width: double.infinity,
- height: double.infinity,
- color: Colors.transparent,
- ),
- ),
- Background(
- animations: animations,
- status: status,
- color: color,
- center: center,
- deviceSize: deviceSize,
- textDirection: Directionality.of(ctx),
- ),
- Content(
- animations: animations,
- status: status,
- center: center,
- deviceSize: deviceSize,
- title: widget.title,
- description: widget.description,
- textTheme: Theme.of(ctx).textTheme,
- ),
- Ripple(
- animations: animations,
- status: status,
- center: center,
- ),
- TapTarget(
- animations: animations,
- status: status,
- center: center,
- child: widget.child,
- onTap: tap,
- ),
- ],
- ),
- );
- }
-
- /// Method to handle user tap on [TapTarget].
- ///
- /// Tapping will stop any active controller and start the [tapController].
- void tap() {
- openController.stop();
- rippleController.stop();
- dismissController.stop();
- tapController.forward(from: 0.0);
- }
-
- /// Method to handle user dismissal.
- ///
- /// Dismissal will stop any active controller and start the
- /// [dismissController].
- void dismiss() {
- openController.stop();
- rippleController.stop();
- tapController.stop();
- dismissController.forward(from: 0.0);
- }
-
- @override
- Widget build(BuildContext context) {
- return LayoutBuilder(builder: (ctx, _) {
- if (overlay != null) {
- SchedulerBinding.instance.addPostFrameCallback((_) {
- // [OverlayEntry] needs to be explicitly rebuilt when necessary.
- overlay.markNeedsBuild();
- });
- } else {
- if (showOverlay && !FeatureDiscoveryController.of(ctx).isLocked) {
- final entry = OverlayEntry(
- builder: (_) => buildOverlay(ctx, getOverlayCenter(ctx)),
- );
-
- // Lock [FeatureDiscoveryController] early in order to prevent
- // another [FeatureDiscovery] widget from trying to show its
- // overlay while the post frame callback and set state are not
- // complete.
- FeatureDiscoveryController.of(ctx).lock();
-
- SchedulerBinding.instance.addPostFrameCallback((_) {
- setState(() {
- overlay = entry;
- status = FeatureDiscoveryStatus.closed;
- openController.forward(from: 0.0);
- });
- Overlay.of(context).insert(entry);
- });
- }
- }
- return widget.child;
- });
- }
-
- /// Compute the center position of the overlay.
- Offset getOverlayCenter(BuildContext parentCtx) {
- final box = parentCtx.findRenderObject() as RenderBox;
- final size = box.size;
- final topLeftPosition = box.localToGlobal(Offset.zero);
- final centerPosition = Offset(
- topLeftPosition.dx + size.width / 2,
- topLeftPosition.dy + size.height / 2,
- );
- return centerPosition;
- }
-
- @override
- void initState() {
- super.initState();
-
- initAnimationControllers();
- initAnimations();
- showOverlay = widget.showOverlay;
- }
-
- void initAnimationControllers() {
- openController = AnimationController(
- duration: const Duration(milliseconds: 500),
- vsync: this,
- )
- ..addListener(() {
- setState(() {});
- })
- ..addStatusListener((animationStatus) {
- if (animationStatus == AnimationStatus.forward) {
- setState(() => status = FeatureDiscoveryStatus.open);
- } else if (animationStatus == AnimationStatus.completed) {
- rippleController.forward(from: 0.0);
- }
- });
-
- rippleController = AnimationController(
- duration: const Duration(milliseconds: 1000),
- vsync: this,
- )
- ..addListener(() {
- setState(() {});
- })
- ..addStatusListener((animationStatus) {
- if (animationStatus == AnimationStatus.forward) {
- setState(() => status = FeatureDiscoveryStatus.ripple);
- } else if (animationStatus == AnimationStatus.completed) {
- rippleController.forward(from: 0.0);
- }
- });
-
- tapController = AnimationController(
- duration: const Duration(milliseconds: 250),
- vsync: this,
- )
- ..addListener(() {
- setState(() {});
- })
- ..addStatusListener((animationStatus) {
- if (animationStatus == AnimationStatus.forward) {
- setState(() => status = FeatureDiscoveryStatus.tap);
- } else if (animationStatus == AnimationStatus.completed) {
- widget.onTap?.call();
- cleanUponOverlayClose();
- }
- });
-
- dismissController = AnimationController(
- duration: const Duration(milliseconds: 250),
- vsync: this,
- )
- ..addListener(() {
- setState(() {});
- })
- ..addStatusListener((animationStatus) {
- if (animationStatus == AnimationStatus.forward) {
- setState(() => status = FeatureDiscoveryStatus.dismiss);
- } else if (animationStatus == AnimationStatus.completed) {
- widget.onDismiss?.call();
- cleanUponOverlayClose();
- }
- });
- }
-
- void initAnimations() {
- assert(openController != null);
- assert(rippleController != null);
- assert(tapController != null);
- assert(dismissController != null);
-
- animations = Animations(
- openController,
- tapController,
- rippleController,
- dismissController,
- );
- }
-
- /// Clean up once overlay has been dismissed or tap target has been tapped.
- ///
- /// This is called upon [tapController] and [dismissController] end.
- void cleanUponOverlayClose() {
- FeatureDiscoveryController.of(context).unlock();
- setState(() {
- status = FeatureDiscoveryStatus.closed;
- showOverlay = false;
- overlay?.remove();
- overlay = null;
- });
- }
-
- @override
- void didUpdateWidget(FeatureDiscovery oldWidget) {
- super.didUpdateWidget(oldWidget);
- if (widget.showOverlay != oldWidget.showOverlay) {
- showOverlay = widget.showOverlay;
- }
- }
-
- @override
- void dispose() {
- overlay?.remove();
- openController?.dispose();
- rippleController?.dispose();
- tapController?.dispose();
- dismissController?.dispose();
- super.dispose();
- }
-}
diff --git a/gallery/lib/feature_discovery/overlay.dart b/gallery/lib/feature_discovery/overlay.dart
deleted file mode 100644
index a55c981b5..000000000
--- a/gallery/lib/feature_discovery/overlay.dart
+++ /dev/null
@@ -1,401 +0,0 @@
-// Copyright 2019 The Flutter team. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-import 'dart:math';
-
-import 'package:flutter/material.dart';
-
-import 'package:gallery/feature_discovery/animation.dart';
-
-const contentHeight = 80.0;
-const contentWidth = 300.0;
-const contentHorizontalPadding = 40.0;
-const tapTargetRadius = 44.0;
-const tapTargetToContentDistance = 20.0;
-const gutterHeight = 88.0;
-
-/// Background of the overlay.
-class Background extends StatelessWidget {
- /// Animations.
- final Animations animations;
-
- /// Overlay center position.
- final Offset center;
-
- /// Color of the background.
- final Color color;
-
- /// Device size.
- final Size deviceSize;
-
- /// Status of the parent overlay.
- final FeatureDiscoveryStatus status;
-
- /// Directionality of content.
- final TextDirection textDirection;
-
- static const horizontalShift = 20.0;
- static const padding = 40.0;
-
- Background({
- @required this.animations,
- @required this.center,
- @required this.color,
- @required this.deviceSize,
- @required this.status,
- @required this.textDirection,
- }) {
- assert(animations != null);
- assert(center != null);
- assert(color != null);
- assert(deviceSize != null);
- assert(status != null);
- assert(textDirection != null);
- }
-
- /// Compute the center position of the background.
- ///
- /// If [center] is near the top or bottom edges of the screen, then
- /// background is centered there.
- /// Otherwise, background center is calculated and upon opening, animated
- /// from [center] to the new calculated position.
- Offset get centerPosition {
- if (_isNearTopOrBottomEdges(center, deviceSize)) {
- return center;
- } else {
- final start = center;
-
- // dy of centerPosition is calculated to be the furthest point in
- // [Content] from the [center].
- double endY;
- if (_isOnTopHalfOfScreen(center, deviceSize)) {
- endY = center.dy -
- tapTargetRadius -
- tapTargetToContentDistance -
- contentHeight;
- if (endY < 0.0) {
- endY = center.dy + tapTargetRadius + tapTargetToContentDistance;
- }
- } else {
- endY = center.dy + tapTargetRadius + tapTargetToContentDistance;
- if (endY + contentHeight > deviceSize.height) {
- endY = center.dy -
- tapTargetRadius -
- tapTargetToContentDistance -
- contentHeight;
- }
- }
-
- // Horizontal background center shift based on whether the tap target is
- // on the left, center, or right side of the screen.
- double shift;
- if (_isOnLeftHalfOfScreen(center, deviceSize)) {
- shift = horizontalShift;
- } else if (center.dx == deviceSize.width / 2) {
- shift = textDirection == TextDirection.ltr
- ? -horizontalShift
- : horizontalShift;
- } else {
- shift = -horizontalShift;
- }
-
- // dx of centerPosition is calculated to be the middle point of the
- // [Content] bounds shifted by [horizontalShift].
- final textBounds = _getContentBounds(deviceSize, center);
- final left = min(textBounds.left, center.dx - 88.0);
- final right = max(textBounds.right, center.dx + 88.0);
- final endX = (left + right) / 2 + shift;
- final end = Offset(endX, endY);
-
- return animations.backgroundCenter(status, start, end).value;
- }
- }
-
- /// Compute the radius.
- ///
- /// Radius is a function of the greatest distance from [center] to one of
- /// the corners of [Content].
- double get radius {
- final textBounds = _getContentBounds(deviceSize, center);
- final textRadius = _maxDistance(center, textBounds) + padding;
- if (_isNearTopOrBottomEdges(center, deviceSize)) {
- return animations.backgroundRadius(status, textRadius).value;
- } else {
- // Scale down radius if icon is towards the middle of the screen.
- return animations.backgroundRadius(status, textRadius).value * 0.8;
- }
- }
-
- double get opacity => animations.backgroundOpacity(status).value;
-
- @override
- Widget build(BuildContext context) {
- return Positioned(
- left: centerPosition.dx,
- top: centerPosition.dy,
- child: FractionalTranslation(
- translation: Offset(-0.5, -0.5),
- child: Opacity(
- opacity: opacity,
- child: Container(
- height: radius * 2,
- width: radius * 2,
- decoration: BoxDecoration(
- shape: BoxShape.circle,
- color: color,
- ),
- ),
- ),
- ));
- }
-
- /// Compute the maximum distance from [point] to the four corners of [bounds].
- double _maxDistance(Offset point, Rect bounds) {
- double distance(double x1, double y1, double x2, double y2) {
- return sqrt(pow(x2 - x1, 2) + pow(y2 - y1, 2));
- }
-
- final tl = distance(point.dx, point.dy, bounds.left, bounds.top);
- final tr = distance(point.dx, point.dy, bounds.right, bounds.top);
- final bl = distance(point.dx, point.dy, bounds.left, bounds.bottom);
- final br = distance(point.dx, point.dy, bounds.right, bounds.bottom);
- return max(tl, max(tr, max(bl, br)));
- }
-}
-
-/// Widget that represents the text to show in the overlay.
-class Content extends StatelessWidget {
- /// Animations.
- final Animations animations;
-
- /// Overlay center position.
- final Offset center;
-
- /// Description.
- final String description;
-
- /// Device size.
- final Size deviceSize;
-
- /// Status of the parent overlay.
- final FeatureDiscoveryStatus status;
-
- /// Title.
- final String title;
-
- /// [TextTheme] to use for drawing the [title] and the [description].
- final TextTheme textTheme;
-
- Content({
- @required this.animations,
- @required this.center,
- @required this.description,
- @required this.deviceSize,
- @required this.status,
- @required this.title,
- @required this.textTheme,
- }) {
- assert(animations != null);
- assert(center != null);
- assert(description != null);
- assert(deviceSize != null);
- assert(status != null);
- assert(title != null);
- assert(textTheme != null);
- }
-
- double get opacity => animations.contentOpacity(status).value;
-
- @override
- Widget build(BuildContext context) {
- final position = _getContentBounds(deviceSize, center);
-
- return Positioned(
- left: position.left,
- height: position.bottom - position.top,
- width: position.right - position.left,
- top: position.top,
- child: Opacity(
- opacity: opacity,
- child: Column(
- crossAxisAlignment: CrossAxisAlignment.start,
- children: [
- _buildTitle(textTheme),
- SizedBox(height: 12.0),
- _buildDescription(textTheme),
- ],
- ),
- ),
- );
- }
-
- Widget _buildTitle(TextTheme theme) {
- return Text(
- title,
- maxLines: 1,
- overflow: TextOverflow.ellipsis,
- style: theme.title.copyWith(color: Colors.white),
- );
- }
-
- Widget _buildDescription(TextTheme theme) {
- return Text(
- description,
- maxLines: 2,
- overflow: TextOverflow.ellipsis,
- style: theme.subhead.copyWith(color: Colors.white70),
- );
- }
-}
-
-/// Widget that represents the ripple effect of [TapTarget].
-class Ripple extends StatelessWidget {
- /// Animations.
- final Animations animations;
-
- /// Overlay center position.
- final Offset center;
-
- /// Status of the parent overlay.
- final FeatureDiscoveryStatus status;
-
- Ripple({
- @required this.animations,
- @required this.center,
- @required this.status,
- }) {
- assert(animations != null);
- assert(center != null);
- assert(status != null);
- }
-
- double get radius => animations.rippleRadius(status).value;
- double get opacity => animations.rippleOpacity(status).value;
-
- @override
- Widget build(BuildContext context) {
- return Positioned(
- left: center.dx,
- top: center.dy,
- child: FractionalTranslation(
- translation: Offset(-0.5, -0.5),
- child: Opacity(
- opacity: opacity,
- child: Container(
- height: radius * 2,
- width: radius * 2,
- decoration: BoxDecoration(
- color: Colors.white,
- shape: BoxShape.circle,
- ),
- ),
- ),
- ),
- );
- }
-}
-
-/// Wrapper widget around [child] representing the anchor of the overlay.
-class TapTarget extends StatelessWidget {
- /// Animations.
- final Animations animations;
-
- /// Device size.
- final Offset center;
-
- /// Status of the parent overlay.
- final FeatureDiscoveryStatus status;
-
- /// Callback invoked when the user taps on the [TapTarget].
- final void Function() onTap;
-
- /// Child widget that will be promoted by the overlay.
- final Icon child;
-
- TapTarget({
- @required this.animations,
- @required this.center,
- @required this.status,
- @required this.onTap,
- @required this.child,
- }) {
- assert(animations != null);
- assert(center != null);
- assert(status != null);
- assert(onTap != null);
- assert(child != null);
- }
-
- double get radius => animations.tapTargetRadius(status).value;
- double get opacity => animations.tapTargetOpacity(status).value;
-
- @override
- Widget build(BuildContext context) {
- return Positioned(
- left: center.dx,
- top: center.dy,
- child: FractionalTranslation(
- translation: Offset(-0.5, -0.5),
- child: InkWell(
- onTap: onTap,
- child: Opacity(
- opacity: opacity,
- child: Container(
- height: radius * 2,
- width: radius * 2,
- decoration: BoxDecoration(
- color: Colors.white,
- shape: BoxShape.circle,
- ),
- child: child,
- ),
- ),
- ),
- ),
- );
- }
-}
-
-/// Method to compute the bounds of the content.
-///
-/// This is exposed so it can be used for calculating the background radius
-/// and center and for laying out the content.
-Rect _getContentBounds(Size deviceSize, Offset overlayCenter) {
- double top;
- if (_isOnTopHalfOfScreen(overlayCenter, deviceSize)) {
- top = overlayCenter.dy -
- tapTargetRadius -
- tapTargetToContentDistance -
- contentHeight;
- if (top < 0) {
- top = overlayCenter.dy + tapTargetRadius + tapTargetToContentDistance;
- }
- } else {
- top = overlayCenter.dy + tapTargetRadius + tapTargetToContentDistance;
- if (top + contentHeight > deviceSize.height) {
- top = overlayCenter.dy -
- tapTargetRadius -
- tapTargetToContentDistance -
- contentHeight;
- }
- }
-
- final left = max(contentHorizontalPadding, overlayCenter.dx - contentWidth);
- final right =
- min(deviceSize.width - contentHorizontalPadding, left + contentWidth);
- return Rect.fromLTRB(left, top, right, top + contentHeight);
-}
-
-bool _isNearTopOrBottomEdges(Offset position, Size deviceSize) {
- return position.dy <= gutterHeight ||
- (deviceSize.height - position.dy) <= gutterHeight;
-}
-
-bool _isOnTopHalfOfScreen(Offset position, Size deviceSize) {
- return position.dy < (deviceSize.height / 2.0);
-}
-
-bool _isOnLeftHalfOfScreen(Offset position, Size deviceSize) {
- return position.dx < (deviceSize.width / 2.0);
-}
diff --git a/gallery/lib/l10n/README.md b/gallery/lib/l10n/README.md
deleted file mode 100644
index f142bc280..000000000
--- a/gallery/lib/l10n/README.md
+++ /dev/null
@@ -1,83 +0,0 @@
-# Localization
-
-## Creating New Locale Messages
-
-When adding new strings to be localized, update `intl_en_US.arb`, which
-is used by this project as the template. When creating new entries, they
-have to be in the following format:
-
-```arb
- "dartGetterVariableName": "english translation of the message",
- "@dartGetterVariableName": {
- "description": "description that the localizations delegate will use."
- },
-```
-
-In this example, `dartGetterVariableName` should be the Dart method/property
-name that you will be using in your localizations delegate.
-
-After adding the new message in `intl_en_US.arb`, it can be used in the app by
-regenerating the GalleryLocalizations delegate and the `messages_*.dart` files.
-This allows use of the English message through your localizations delegate in
-the application code immediately without having to wait for the translations
-to be completed.
-
-## How to Generate GalleryLocalizations with Grinder
-
-From the `samples/gallery/` directory:
-1. Make sure you have [grinder](https://pub.dev/packages/grinder) installed by
-running `flutter pub get`.
-2. Then run `flutter pub run grinder l10n` to generate `GalleryLocalizations`.
-
-For more details on what `flutter pub run grinder l10n` runs, you can read below
-under *How to Generate GalleryLocalizations with l10n scripts*. The current
-supported locales list is sorted alphabetically. This means that after running
-the script, you have to update `gallery_localizations.dart` and move the `en_US`
-locale to the top of the list.
-
-## How to Generate GalleryLocalizations with l10n scripts
-To generate GalleryLocalizations, from `samples/gallery/` run:
-
-```dart
-dart ${YOUR_FLUTTER_PATH}/dev/tools/localization/bin/gen_l10n.dart \
- --template-arb-file=intl_en_US.arb \
- --output-localization-file=gallery_localizations.dart \
- --output-class=GalleryLocalizations
-```
-
-From `samples/gallery/`, run `dart tool/l10n_cli/main.dart`, which
-will generate `intl_en_US.xml`. This will be used by the internal translation
-console to generate messages in the different locales.
-
-Run the formatter to make the Flutter analyzer happy:
-```
-flutter format .
-```
-
-## Generating New Locale Arb Files
-
-Use the internal tool to create the `intl_.arb` files once the
-translations are ready.
-
-## Generating Flutter Localization Files
-
-If new translations are ready and the `intl_.arb` files are already
-available, run the following commands to generate all necessary
-`messages_