mirror of
https://github.com/flutter/samples.git
synced 2025-11-11 07:18:15 +00:00
35878 lines
2.1 MiB
35878 lines
2.1 MiB
// 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'),
|
|
]);
|
|
}
|
|
}
|