@ -9,6 +9,426 @@ import 'package:flutter/material.dart';
import ' package:gallery/codeviewer/code_style.dart ' ;
class CodeSegments {
static TextSpan cupertinoNavigationBarDemo ( BuildContext context ) {
final CodeStyle codeStyle = CodeStyle . of ( context ) ;
return TextSpan ( children: [
TextSpan (
style: codeStyle . commentStyle ,
text: ' // Copyright 2019 The Flutter team. All rights reserved. ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan (
style: codeStyle . commentStyle ,
text:
' // Use of this source code is governed by a BSD-style license that can be ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan (
style: codeStyle . commentStyle , text: ' // found in the LICENSE file. ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a \u000a ' ) ,
TextSpan ( style: codeStyle . keywordStyle , text: ' import ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan (
style: codeStyle . stringStyle ,
text: ' \u0027 package: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: ' \u0027 package: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: ' \u0027 package:gallery/l10n/gallery_localizations.dart \u0027 ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ; ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a \u000a ' ) ,
TextSpan ( style: codeStyle . keywordStyle , text: ' class ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . classStyle , text: ' CupertinoNavigationBarDemo ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . keywordStyle , text: ' extends ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . classStyle , text: ' StatelessWidget ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' { ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . keywordStyle , text: ' @override ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . classStyle , text: ' Widget ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' build ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ( ' ) ,
TextSpan ( style: codeStyle . classStyle , text: ' BuildContext ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' context ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ) ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' { ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . keywordStyle , text: ' return ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . classStyle , text: ' Navigator ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ( ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' onGenerateRoute ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' : ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ( ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' settings ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ) ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' { ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . keywordStyle , text: ' return ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan (
style: codeStyle . classStyle , text: ' _NoAnimationCupertinoPageRoute ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ( ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a title ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' : ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . classStyle , text: ' GalleryLocalizations ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' . ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' of ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ( ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' context ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ). ' ) ,
TextSpan (
style: codeStyle . baseStyle , text: ' demoCupertinoNavigationBarTitle ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' , ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a builder ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' : ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ( ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' context ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ) ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' => ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . classStyle , text: ' CupertinoPageScaffold ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ( ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a child ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' : ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . classStyle , text: ' CustomScrollView ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ( ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a slivers ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' : ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' [ ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan (
style: codeStyle . classStyle , text: ' CupertinoSliverNavigationBar ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ( ' ) ,
TextSpan (
style: codeStyle . baseStyle ,
text: ' \u000a automaticallyImplyLeading ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' : ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . keywordStyle , text: ' false ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' , ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ), ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . classStyle , text: ' SliverPadding ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ( ' ) ,
TextSpan (
style: codeStyle . baseStyle , text: ' \u000a padding ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' : ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . classStyle , text: ' MediaQuery ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' . ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' of ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ( ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' context ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ) ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' . ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' removePadding ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ( ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' removeTop ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' : ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . keywordStyle , text: ' true ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ) ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' . ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' padding ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' , ' ) ,
TextSpan (
style: codeStyle . baseStyle , text: ' \u000a sliver ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' : ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . classStyle , text: ' SliverList ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ( ' ) ,
TextSpan (
style: codeStyle . baseStyle , text: ' \u000a delegate ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' : ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . classStyle , text: ' SliverChildBuilderDelegate ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ( ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ( ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' context ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' , ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' index ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ) ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' { ' ) ,
TextSpan (
style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . keywordStyle , text: ' final ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' title ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' = ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . classStyle , text: ' GalleryLocalizations ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' . ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' of ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ( ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' context ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ) ' ) ,
TextSpan (
style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' . ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' starterAppDrawerItem ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ( ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' index ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' + ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . numberStyle , text: ' 1 ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ); ' ) ,
TextSpan (
style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . keywordStyle , text: ' return ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . classStyle , text: ' ListTile ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ( ' ) ,
TextSpan (
style: codeStyle . baseStyle ,
text: ' \u000a onTap ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' : ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' () ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' { ' ) ,
TextSpan (
style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . classStyle , text: ' Navigator ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' . ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' of ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ( ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' context ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ). ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' push ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ( ' ) ,
TextSpan ( style: codeStyle . classStyle , text: ' CupertinoPageRoute ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' < ' ) ,
TextSpan ( style: codeStyle . keywordStyle , text: ' void ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' >( ' ) ,
TextSpan (
style: codeStyle . baseStyle ,
text: ' \u000a title ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' : ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' title ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' , ' ) ,
TextSpan (
style: codeStyle . baseStyle ,
text: ' \u000a builder ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' : ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ( ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' context ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ) ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' => ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . classStyle , text: ' _SecondPage ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' (), ' ) ,
TextSpan (
style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' )); ' ) ,
TextSpan (
style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' }, ' ) ,
TextSpan (
style: codeStyle . baseStyle ,
text: ' \u000a title ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' : ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . classStyle , text: ' Text ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ( ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' title ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ), ' ) ,
TextSpan (
style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ); ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' }, ' ) ,
TextSpan (
style: codeStyle . baseStyle ,
text: ' \u000a childCount ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' : ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . numberStyle , text: ' 20 ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' , ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ), ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ), ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ), ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ], ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ), ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ), ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ); ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' }); ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' } ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' } ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a \u000a ' ) ,
TextSpan ( style: codeStyle . keywordStyle , text: ' class ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . classStyle , text: ' _SecondPage ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . keywordStyle , text: ' extends ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . classStyle , text: ' StatelessWidget ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' { ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . keywordStyle , text: ' @override ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . classStyle , text: ' Widget ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' build ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ( ' ) ,
TextSpan ( style: codeStyle . classStyle , text: ' BuildContext ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' context ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ) ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' { ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . keywordStyle , text: ' return ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . classStyle , text: ' CupertinoPageScaffold ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ( ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a navigationBar ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' : ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . keywordStyle , text: ' const ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . classStyle , text: ' CupertinoNavigationBar ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' (), ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a child ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' : ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . classStyle , text: ' Container ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' (), ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ); ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' } ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' } ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a \u000a ' ) ,
TextSpan (
style: codeStyle . commentStyle ,
text: ' /// A CupertinoPageRoute without any transition animations. ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . keywordStyle , text: ' class ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan (
style: codeStyle . classStyle , text: ' _NoAnimationCupertinoPageRoute ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' < ' ) ,
TextSpan ( style: codeStyle . classStyle , text: ' T ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' > ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . keywordStyle , text: ' extends ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . classStyle , text: ' CupertinoPageRoute ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' < ' ) ,
TextSpan ( style: codeStyle . classStyle , text: ' T ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' > ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' { ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan (
style: codeStyle . classStyle , text: ' _NoAnimationCupertinoPageRoute ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ({ ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . keywordStyle , text: ' @required ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . classStyle , text: ' WidgetBuilder ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' builder ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' , ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . classStyle , text: ' String ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' title ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' , ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' }) ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' : ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . keywordStyle , text: ' super ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ( ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' builder ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' : ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' builder ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' , ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' title ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' : ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' title ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ); ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a \u000a ' ) ,
TextSpan ( style: codeStyle . keywordStyle , text: ' @override ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . classStyle , text: ' Widget ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' buildTransitions ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ( ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . classStyle , text: ' BuildContext ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' context ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' , ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . classStyle , text: ' Animation ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' < ' ) ,
TextSpan ( style: codeStyle . keywordStyle , text: ' double ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' > ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' animation ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' , ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . classStyle , text: ' Animation ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' < ' ) ,
TextSpan ( style: codeStyle . keywordStyle , text: ' double ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' > ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' secondaryAnimation ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' , ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . classStyle , text: ' Widget ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' child ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' , ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ) ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' { ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . keywordStyle , text: ' return ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' child ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ; ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' } ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' } ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a \u000a ' ) ,
] ) ;
}
static TextSpan cupertinoSegmentedControlDemo ( BuildContext context ) {
final CodeStyle codeStyle = CodeStyle . of ( context ) ;
return TextSpan ( children: [
@ -881,6 +1301,13 @@ class CodeSegments {
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . classStyle , text: ' CupertinoNavigationBar ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ( ' ) ,
TextSpan (
style: codeStyle . baseStyle ,
text: ' \u000a automaticallyImplyLeading ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' : ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . keywordStyle , text: ' false ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' , ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a middle ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' : ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
@ -1024,6 +1451,13 @@ class CodeSegments {
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . classStyle , text: ' CupertinoNavigationBar ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ( ' ) ,
TextSpan (
style: codeStyle . baseStyle ,
text: ' \u000a automaticallyImplyLeading ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' : ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . keywordStyle , text: ' false ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' , ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a middle ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' : ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
@ -1448,6 +1882,13 @@ class CodeSegments {
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . classStyle , text: ' CupertinoNavigationBar ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ( ' ) ,
TextSpan (
style: codeStyle . baseStyle ,
text: ' \u000a automaticallyImplyLeading ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' : ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . keywordStyle , text: ' false ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' , ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a middle ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' : ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
@ -10395,6 +10836,13 @@ class CodeSegments {
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . classStyle , text: ' AppBar ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ( ' ) ,
TextSpan (
style: codeStyle . baseStyle ,
text: ' \u000a automaticallyImplyLeading ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' : ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . keywordStyle , text: ' false ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' , ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a title ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' : ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
@ -14477,6 +14925,13 @@ class CodeSegments {
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . classStyle , text: ' AppBar ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ( ' ) ,
TextSpan (
style: codeStyle . baseStyle ,
text: ' \u000a automaticallyImplyLeading ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' : ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . keywordStyle , text: ' false ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' , ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a title ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' : ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,