mirror of https://github.com/flutter/samples.git
13154 lines
778 KiB
13154 lines
778 KiB
// 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 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 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 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: 'CupertinoNavigationDemo'),
|
|
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.classStyle, text: '_TabInfo'),
|
|
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: 'cupertinoNavigationHomeTab'),
|
|
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: 'cupertinoNavigationChatTab'),
|
|
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: 'cupertinoNavigationProfileTab'),
|
|
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: 'switch'),
|
|
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 '),
|
|
TextSpan(style: codeStyle.keywordStyle, text: 'case'),
|
|
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: '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.numberStyle, text: '0'),
|
|
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.numberStyle, text: '0'),
|
|
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.numberStyle, text: '0'),
|
|
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.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.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: '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.numberStyle, text: '1'),
|
|
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.numberStyle, text: '1'),
|
|
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.numberStyle, text: '1'),
|
|
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.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.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: '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.numberStyle, text: '2'),
|
|
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.numberStyle, text: '2'),
|
|
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.numberStyle, text: '2'),
|
|
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.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: '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 '),
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ');'),
|
|
TextSpan(style: codeStyle.baseStyle, text: '\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 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: '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 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 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 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: '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\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 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 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\u000a'),
|
|
TextSpan(style: codeStyle.keywordStyle, text: 'import'),
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
TextSpan(
|
|
style: codeStyle.stringStyle,
|
|
text: '\u0027../../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\u000a'),
|
|
TextSpan(style: codeStyle.keywordStyle, text: 'import'),
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
TextSpan(
|
|
style: codeStyle.stringStyle,
|
|
text: '\u0027../../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\u000a'),
|
|
TextSpan(style: codeStyle.keywordStyle, text: 'import'),
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
TextSpan(
|
|
style: codeStyle.stringStyle,
|
|
text: '\u0027../../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.classStyle, text: 'Widget'),
|
|
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\u000a'),
|
|
TextSpan(style: codeStyle.keywordStyle, text: 'import'),
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
TextSpan(
|
|
style: codeStyle.stringStyle,
|
|
text: '\u0027../../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 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 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 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 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: '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 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 suffixStyle'),
|
|
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: 'Colors'),
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '.'),
|
|
TextSpan(style: codeStyle.baseStyle, text: 'green'),
|
|
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 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: '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: '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 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\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 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: '\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: '\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 tabsDemo(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: 'TabsDemo'),
|
|
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.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 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: 'demoTabsTitle'),
|
|
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 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 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: '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: '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 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 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 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 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 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 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.classStyle, text: 'Widget'),
|
|
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 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'),
|
|
]);
|
|
}
|
|
|
|
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 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'),
|
|
]);
|
|
}
|
|
}
|