|
|
|
|
@@ -478,7 +478,7 @@ class CodeSegments {
|
|
|
|
|
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.classStyle, text: 'CupertinoTabBarDemo'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
@@ -501,9 +501,7 @@ class CodeSegments {
|
|
|
|
|
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.punctuationStyle, text: '['),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
|
|
|
|
|
TextSpan(style: codeStyle.classStyle, text: '_TabInfo'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '('),
|
|
|
|
|
@@ -514,7 +512,7 @@ class CodeSegments {
|
|
|
|
|
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.baseStyle, text: 'cupertinoTabBarHomeTab'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ','),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
|
|
|
|
|
TextSpan(style: codeStyle.classStyle, text: 'CupertinoIcons'),
|
|
|
|
|
@@ -533,7 +531,7 @@ class CodeSegments {
|
|
|
|
|
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.baseStyle, text: 'cupertinoTabBarChatTab'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ','),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
|
|
|
|
|
TextSpan(style: codeStyle.classStyle, text: 'CupertinoIcons'),
|
|
|
|
|
@@ -552,8 +550,7 @@ class CodeSegments {
|
|
|
|
|
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.baseStyle, text: 'cupertinoTabBarProfileTab'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ','),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
|
|
|
|
|
TextSpan(style: codeStyle.classStyle, text: 'CupertinoIcons'),
|
|
|
|
|
@@ -643,192 +640,51 @@ class CodeSegments {
|
|
|
|
|
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.keywordStyle, text: 'return'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(style: codeStyle.classStyle, text: 'CupertinoTabView'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '('),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a builder'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ':'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '('),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: 'context'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ')'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(style: codeStyle.classStyle, text: '_CupertinoDemoTab'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '('),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a title'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ':'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' _tabInfo'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '['),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: 'index'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ')'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
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.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.baseStyle, text: 'index'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '].'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: 'icon'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ','),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '),'),
|
|
|
|
|
TextSpan(
|
|
|
|
|
style: codeStyle.baseStyle,
|
|
|
|
|
text: '\u000a defaultTitle'),
|
|
|
|
|
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.baseStyle, text: 'index'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '].'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: 'title'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ','),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ');'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
|
|
|
|
|
TextSpan(style: codeStyle.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: '),'),
|
|
|
|
|
@@ -958,6 +814,623 @@ class CodeSegments {
|
|
|
|
|
]);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static TextSpan cupertinoSliderDemo(BuildContext context) {
|
|
|
|
|
final CodeStyle codeStyle = CodeStyle.of(context);
|
|
|
|
|
return TextSpan(children: [
|
|
|
|
|
TextSpan(
|
|
|
|
|
style: codeStyle.commentStyle,
|
|
|
|
|
text: '// Copyright 2019 The Flutter team. All rights reserved.'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
|
|
|
|
|
TextSpan(
|
|
|
|
|
style: codeStyle.commentStyle,
|
|
|
|
|
text:
|
|
|
|
|
'// Use of this source code is governed by a BSD-style license that can be'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
|
|
|
|
|
TextSpan(
|
|
|
|
|
style: codeStyle.commentStyle, text: '// found in the LICENSE file.'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
|
|
|
|
|
TextSpan(style: codeStyle.keywordStyle, text: 'import'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(
|
|
|
|
|
style: codeStyle.stringStyle,
|
|
|
|
|
text: '\u0027package:flutter/cupertino.dart\u0027'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ';'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
|
|
|
|
|
TextSpan(style: codeStyle.keywordStyle, text: 'import'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(
|
|
|
|
|
style: codeStyle.stringStyle,
|
|
|
|
|
text: '\u0027package:gallery/l10n/gallery_localizations.dart\u0027'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ';'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
|
|
|
|
|
TextSpan(style: codeStyle.keywordStyle, text: 'class'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(style: codeStyle.classStyle, text: 'CupertinoSliderDemo'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(style: codeStyle.classStyle, text: 'StatefulWidget'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '{'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
|
|
|
|
|
TextSpan(style: codeStyle.keywordStyle, text: '@override'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
|
|
|
|
|
TextSpan(style: codeStyle.classStyle, text: '_CupertinoSliderDemoState'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' createState'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '()'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(style: codeStyle.classStyle, text: '_CupertinoSliderDemoState'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '();'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '}'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
|
|
|
|
|
TextSpan(style: codeStyle.keywordStyle, text: 'class'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(style: codeStyle.classStyle, text: '_CupertinoSliderDemoState'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(style: codeStyle.classStyle, text: 'State'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '<'),
|
|
|
|
|
TextSpan(style: codeStyle.classStyle, text: 'CupertinoSliderDemo'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '>'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '{'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
|
|
|
|
|
TextSpan(style: codeStyle.keywordStyle, text: 'double'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' _value '),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '='),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(style: codeStyle.numberStyle, text: '25.0'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ';'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
|
|
|
|
|
TextSpan(style: codeStyle.keywordStyle, text: 'double'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' _discreteValue '),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '='),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(style: codeStyle.numberStyle, text: '20.0'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ';'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
|
|
|
|
|
TextSpan(style: codeStyle.keywordStyle, text: '@override'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
|
|
|
|
|
TextSpan(style: codeStyle.classStyle, text: 'Widget'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' build'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '('),
|
|
|
|
|
TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' context'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ')'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '{'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
|
|
|
|
|
TextSpan(style: codeStyle.keywordStyle, text: 'return'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(style: codeStyle.classStyle, text: 'CupertinoPageScaffold'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '('),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a navigationBar'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ':'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(style: codeStyle.classStyle, text: 'CupertinoNavigationBar'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '('),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a middle'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ':'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(style: codeStyle.classStyle, text: 'Text'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '('),
|
|
|
|
|
TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '.'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: 'of'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '('),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: 'context'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ').'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: 'demoCupertinoSliderTitle'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '),'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '),'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ':'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(style: codeStyle.classStyle, text: 'DefaultTextStyle'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '('),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a style'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ':'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(style: codeStyle.classStyle, text: 'CupertinoTheme'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '.'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: 'of'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '('),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: 'context'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ').'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: 'textTheme'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '.'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: 'textStyle'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ','),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ':'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(style: codeStyle.classStyle, text: 'Center'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '('),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ':'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(style: codeStyle.classStyle, text: 'Column'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '('),
|
|
|
|
|
TextSpan(
|
|
|
|
|
style: codeStyle.baseStyle,
|
|
|
|
|
text: '\u000a mainAxisAlignment'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ':'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(style: codeStyle.classStyle, text: 'MainAxisAlignment'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '.'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: 'spaceEvenly'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ','),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a children'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ':'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '['),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
|
|
|
|
|
TextSpan(style: codeStyle.classStyle, text: 'Column'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '('),
|
|
|
|
|
TextSpan(
|
|
|
|
|
style: codeStyle.baseStyle,
|
|
|
|
|
text: '\u000a mainAxisSize'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ':'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(style: codeStyle.classStyle, text: 'MainAxisSize'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '.'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: 'min'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ','),
|
|
|
|
|
TextSpan(
|
|
|
|
|
style: codeStyle.baseStyle, text: '\u000a children'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ':'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '['),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
|
|
|
|
|
TextSpan(style: codeStyle.classStyle, text: 'SizedBox'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '('),
|
|
|
|
|
TextSpan(
|
|
|
|
|
style: codeStyle.baseStyle, text: '\u000a width'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ':'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(style: codeStyle.keywordStyle, text: 'double'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '.'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: 'infinity'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ','),
|
|
|
|
|
TextSpan(
|
|
|
|
|
style: codeStyle.baseStyle, text: '\u000a child'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ':'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(style: codeStyle.classStyle, text: 'CupertinoSlider'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '('),
|
|
|
|
|
TextSpan(
|
|
|
|
|
style: codeStyle.baseStyle,
|
|
|
|
|
text: '\u000a value'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ':'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' _value'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ','),
|
|
|
|
|
TextSpan(
|
|
|
|
|
style: codeStyle.baseStyle, text: '\u000a min'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ':'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(style: codeStyle.numberStyle, text: '0.0'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ','),
|
|
|
|
|
TextSpan(
|
|
|
|
|
style: codeStyle.baseStyle, text: '\u000a max'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ':'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(style: codeStyle.numberStyle, text: '100.0'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ','),
|
|
|
|
|
TextSpan(
|
|
|
|
|
style: codeStyle.baseStyle,
|
|
|
|
|
text: '\u000a onChanged'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ':'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '('),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: 'value'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ')'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '{'),
|
|
|
|
|
TextSpan(
|
|
|
|
|
style: codeStyle.baseStyle,
|
|
|
|
|
text: '\u000a setState'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '(()'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '{'),
|
|
|
|
|
TextSpan(
|
|
|
|
|
style: codeStyle.baseStyle,
|
|
|
|
|
text: '\u000a _value '),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '='),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' value'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ';'),
|
|
|
|
|
TextSpan(
|
|
|
|
|
style: codeStyle.baseStyle, text: '\u000a '),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '});'),
|
|
|
|
|
TextSpan(
|
|
|
|
|
style: codeStyle.baseStyle, text: '\u000a '),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '},'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '),'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '),'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
|
|
|
|
|
TextSpan(style: codeStyle.classStyle, text: 'MergeSemantics'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '('),
|
|
|
|
|
TextSpan(
|
|
|
|
|
style: codeStyle.baseStyle, text: '\u000a child'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ':'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(style: codeStyle.classStyle, text: 'Text'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '('),
|
|
|
|
|
TextSpan(
|
|
|
|
|
style: codeStyle.baseStyle, text: '\u000a '),
|
|
|
|
|
TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '.'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: 'of'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '('),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: 'context'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ')'),
|
|
|
|
|
TextSpan(
|
|
|
|
|
style: codeStyle.baseStyle, text: '\u000a '),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '.'),
|
|
|
|
|
TextSpan(
|
|
|
|
|
style: codeStyle.baseStyle, text: 'demoCupertinoSliderContinuous'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '('),
|
|
|
|
|
TextSpan(
|
|
|
|
|
style: codeStyle.baseStyle,
|
|
|
|
|
text: '\u000a _value'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '.'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: 'toStringAsFixed'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '('),
|
|
|
|
|
TextSpan(style: codeStyle.numberStyle, text: '1'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '),'),
|
|
|
|
|
TextSpan(
|
|
|
|
|
style: codeStyle.baseStyle, text: '\u000a '),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '),'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '),'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '),'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '],'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '),'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
|
|
|
|
|
TextSpan(style: codeStyle.classStyle, text: 'Column'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '('),
|
|
|
|
|
TextSpan(
|
|
|
|
|
style: codeStyle.baseStyle,
|
|
|
|
|
text: '\u000a mainAxisSize'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ':'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(style: codeStyle.classStyle, text: 'MainAxisSize'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '.'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: 'min'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ','),
|
|
|
|
|
TextSpan(
|
|
|
|
|
style: codeStyle.baseStyle, text: '\u000a children'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ':'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '['),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
|
|
|
|
|
TextSpan(style: codeStyle.classStyle, text: 'SizedBox'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '('),
|
|
|
|
|
TextSpan(
|
|
|
|
|
style: codeStyle.baseStyle, text: '\u000a width'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ':'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(style: codeStyle.keywordStyle, text: 'double'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '.'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: 'infinity'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ','),
|
|
|
|
|
TextSpan(
|
|
|
|
|
style: codeStyle.baseStyle, text: '\u000a child'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ':'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(style: codeStyle.classStyle, text: 'CupertinoSlider'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '('),
|
|
|
|
|
TextSpan(
|
|
|
|
|
style: codeStyle.baseStyle,
|
|
|
|
|
text: '\u000a value'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ':'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' _discreteValue'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ','),
|
|
|
|
|
TextSpan(
|
|
|
|
|
style: codeStyle.baseStyle, text: '\u000a min'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ':'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(style: codeStyle.numberStyle, text: '0.0'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ','),
|
|
|
|
|
TextSpan(
|
|
|
|
|
style: codeStyle.baseStyle, text: '\u000a max'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ':'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(style: codeStyle.numberStyle, text: '100.0'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ','),
|
|
|
|
|
TextSpan(
|
|
|
|
|
style: codeStyle.baseStyle,
|
|
|
|
|
text: '\u000a divisions'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ':'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(style: codeStyle.numberStyle, text: '5'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ','),
|
|
|
|
|
TextSpan(
|
|
|
|
|
style: codeStyle.baseStyle,
|
|
|
|
|
text: '\u000a onChanged'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ':'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '('),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: 'value'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ')'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '{'),
|
|
|
|
|
TextSpan(
|
|
|
|
|
style: codeStyle.baseStyle,
|
|
|
|
|
text: '\u000a setState'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '(()'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '{'),
|
|
|
|
|
TextSpan(
|
|
|
|
|
style: codeStyle.baseStyle,
|
|
|
|
|
text: '\u000a _discreteValue '),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '='),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' value'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ';'),
|
|
|
|
|
TextSpan(
|
|
|
|
|
style: codeStyle.baseStyle, text: '\u000a '),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '});'),
|
|
|
|
|
TextSpan(
|
|
|
|
|
style: codeStyle.baseStyle, text: '\u000a '),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '},'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '),'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '),'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
|
|
|
|
|
TextSpan(style: codeStyle.classStyle, text: 'MergeSemantics'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '('),
|
|
|
|
|
TextSpan(
|
|
|
|
|
style: codeStyle.baseStyle, text: '\u000a child'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ':'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(style: codeStyle.classStyle, text: 'Text'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '('),
|
|
|
|
|
TextSpan(
|
|
|
|
|
style: codeStyle.baseStyle, text: '\u000a '),
|
|
|
|
|
TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '.'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: 'of'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '('),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: 'context'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ')'),
|
|
|
|
|
TextSpan(
|
|
|
|
|
style: codeStyle.baseStyle, text: '\u000a '),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '.'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: 'demoCupertinoSliderDiscrete'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '('),
|
|
|
|
|
TextSpan(
|
|
|
|
|
style: codeStyle.baseStyle,
|
|
|
|
|
text: '\u000a _discreteValue'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '.'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: 'toStringAsFixed'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '('),
|
|
|
|
|
TextSpan(style: codeStyle.numberStyle, text: '1'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '),'),
|
|
|
|
|
TextSpan(
|
|
|
|
|
style: codeStyle.baseStyle, text: '\u000a '),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '),'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '),'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '),'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '],'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '),'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '],'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '),'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '),'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '),'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ');'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '}'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '}'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
|
|
|
|
|
]);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static TextSpan cupertinoSwitchDemo(BuildContext context) {
|
|
|
|
|
final CodeStyle codeStyle = CodeStyle.of(context);
|
|
|
|
|
return TextSpan(children: [
|
|
|
|
|
TextSpan(
|
|
|
|
|
style: codeStyle.commentStyle,
|
|
|
|
|
text: '// Copyright 2019 The Flutter team. All rights reserved.'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
|
|
|
|
|
TextSpan(
|
|
|
|
|
style: codeStyle.commentStyle,
|
|
|
|
|
text:
|
|
|
|
|
'// Use of this source code is governed by a BSD-style license that can be'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
|
|
|
|
|
TextSpan(
|
|
|
|
|
style: codeStyle.commentStyle, text: '// found in the LICENSE file.'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
|
|
|
|
|
TextSpan(style: codeStyle.keywordStyle, text: 'import'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(
|
|
|
|
|
style: codeStyle.stringStyle,
|
|
|
|
|
text: '\u0027package:flutter/cupertino.dart\u0027'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ';'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
|
|
|
|
|
TextSpan(style: codeStyle.keywordStyle, text: 'import'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(
|
|
|
|
|
style: codeStyle.stringStyle,
|
|
|
|
|
text: '\u0027package:gallery/l10n/gallery_localizations.dart\u0027'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ';'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
|
|
|
|
|
TextSpan(style: codeStyle.keywordStyle, text: 'class'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(style: codeStyle.classStyle, text: 'CupertinoSwitchDemo'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(style: codeStyle.classStyle, text: 'StatefulWidget'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '{'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
|
|
|
|
|
TextSpan(style: codeStyle.keywordStyle, text: '@override'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
|
|
|
|
|
TextSpan(style: codeStyle.classStyle, text: '_CupertinoSwitchDemoState'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' createState'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '()'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '=>'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(style: codeStyle.classStyle, text: '_CupertinoSwitchDemoState'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '();'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '}'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
|
|
|
|
|
TextSpan(style: codeStyle.keywordStyle, text: 'class'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(style: codeStyle.classStyle, text: '_CupertinoSwitchDemoState'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(style: codeStyle.keywordStyle, text: 'extends'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(style: codeStyle.classStyle, text: 'State'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '<'),
|
|
|
|
|
TextSpan(style: codeStyle.classStyle, text: 'CupertinoSwitchDemo'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '>'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '{'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
|
|
|
|
|
TextSpan(style: codeStyle.keywordStyle, text: 'bool'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' _switchValue '),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '='),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(style: codeStyle.keywordStyle, text: 'false'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ';'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '),
|
|
|
|
|
TextSpan(style: codeStyle.keywordStyle, text: '@override'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
|
|
|
|
|
TextSpan(style: codeStyle.classStyle, text: 'Widget'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' build'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '('),
|
|
|
|
|
TextSpan(style: codeStyle.classStyle, text: 'BuildContext'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' context'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ')'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '{'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
|
|
|
|
|
TextSpan(style: codeStyle.keywordStyle, text: 'return'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(style: codeStyle.classStyle, text: 'CupertinoPageScaffold'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '('),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a navigationBar'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ':'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(style: codeStyle.classStyle, text: 'CupertinoNavigationBar'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '('),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a middle'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ':'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(style: codeStyle.classStyle, text: 'Text'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '('),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
|
|
|
|
|
TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '.'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: 'of'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '('),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: 'context'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ').'),
|
|
|
|
|
TextSpan(
|
|
|
|
|
style: codeStyle.baseStyle, text: 'demoSelectionControlsSwitchTitle'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ','),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '),'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '),'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ':'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(style: codeStyle.classStyle, text: 'Center'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '('),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ':'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(style: codeStyle.classStyle, text: 'Semantics'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '('),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a container'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ':'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(style: codeStyle.keywordStyle, text: 'true'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ','),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a label'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ':'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
|
|
|
|
|
TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '.'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: 'of'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '('),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: 'context'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ').'),
|
|
|
|
|
TextSpan(
|
|
|
|
|
style: codeStyle.baseStyle, text: 'demoSelectionControlsSwitchTitle'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ','),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ':'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(style: codeStyle.classStyle, text: 'CupertinoSwitch'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '('),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a value'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ':'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' _switchValue'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ','),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a onChanged'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ':'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '('),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: 'value'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ')'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '{'),
|
|
|
|
|
TextSpan(
|
|
|
|
|
style: codeStyle.baseStyle, text: '\u000a setState'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '(()'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '{'),
|
|
|
|
|
TextSpan(
|
|
|
|
|
style: codeStyle.baseStyle,
|
|
|
|
|
text: '\u000a _switchValue '),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '='),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' value'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ';'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '});'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '},'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '),'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '),'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '),'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ');'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '}'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '}'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'),
|
|
|
|
|
]);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static TextSpan cupertinoAlertDemo(BuildContext context) {
|
|
|
|
|
final CodeStyle codeStyle = CodeStyle.of(context);
|
|
|
|
|
return TextSpan(children: [
|
|
|
|
|
@@ -3420,6 +3893,28 @@ class CodeSegments {
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ':'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(style: codeStyle.classStyle, text: 'Semantics'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '('),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a container'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ':'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(style: codeStyle.keywordStyle, text: 'true'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ','),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a label'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ':'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
|
|
|
|
|
TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '.'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: 'of'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '('),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: 'context'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ').'),
|
|
|
|
|
TextSpan(
|
|
|
|
|
style: codeStyle.baseStyle, text: 'demoSelectionControlsSwitchTitle'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ','),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a child'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ':'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: ' '),
|
|
|
|
|
TextSpan(style: codeStyle.classStyle, text: 'Switch'),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '('),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a value'),
|
|
|
|
|
@@ -3450,6 +3945,8 @@ class CodeSegments {
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '),'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '),'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: ');'),
|
|
|
|
|
TextSpan(style: codeStyle.baseStyle, text: '\u000a '),
|
|
|
|
|
TextSpan(style: codeStyle.punctuationStyle, text: '}'),
|
|
|
|
|
|