@ -842,6 +842,377 @@ class CodeSegments {
] ) ;
}
static TextSpan cupertinoRefreshDemo ( BuildContext context ) {
final CodeStyle codeStyle = CodeStyle . of ( context ) ;
return TextSpan ( children: [
TextSpan (
style: codeStyle . commentStyle ,
text: ' // Copyright 2019 The Flutter team. All rights reserved. ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan (
style: codeStyle . commentStyle ,
text:
' // Use of this source code is governed by a BSD-style license that can be ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan (
style: codeStyle . commentStyle , text: ' // found in the LICENSE file. ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a \u000a ' ) ,
TextSpan ( style: codeStyle . keywordStyle , text: ' import ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . stringStyle , text: ' \u0027 dart:math \u0027 ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' show ' ) ,
TextSpan ( style: codeStyle . classStyle , text: ' Random ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ; ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a \u000a ' ) ,
TextSpan ( style: codeStyle . keywordStyle , text: ' import ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan (
style: codeStyle . stringStyle ,
text: ' \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: ' CupertinoRefreshControlDemo ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . keywordStyle , text: ' extends ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . classStyle , text: ' StatefulWidget ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' { ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . keywordStyle , text: ' @override ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan (
style: codeStyle . classStyle ,
text: ' _CupertinoRefreshControlDemoState ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' createState ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' () ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' => ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan (
style: codeStyle . classStyle ,
text: ' _CupertinoRefreshControlDemoState ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' (); ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' } ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a \u000a ' ) ,
TextSpan ( style: codeStyle . keywordStyle , text: ' class ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan (
style: codeStyle . classStyle ,
text: ' _CupertinoRefreshControlDemoState ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . keywordStyle , text: ' extends ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . classStyle , text: ' State ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' < ' ) ,
TextSpan (
style: codeStyle . classStyle , text: ' CupertinoRefreshControlDemo ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' > ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' { ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . keywordStyle , text: ' static ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . keywordStyle , text: ' const ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' listCount ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' = ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . numberStyle , text: ' 20 ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ; ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . keywordStyle , text: ' var ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' randomList ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' = ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . classStyle , text: ' List ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' < ' ) ,
TextSpan ( style: codeStyle . keywordStyle , text: ' int ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' >. ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' generate ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ( ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' listCount ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' , ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ( ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' i ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ) ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' => ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' i ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' + ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . numberStyle , text: ' 1 ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ); ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a \u000a ' ) ,
TextSpan ( style: codeStyle . keywordStyle , text: ' void ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' _shuffleList ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' () ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' => ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' randomList ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' . ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' shuffle ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ( ' ) ,
TextSpan ( style: codeStyle . classStyle , text: ' Random ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ()); ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a \u000a ' ) ,
TextSpan ( style: codeStyle . keywordStyle , text: ' @override ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . classStyle , text: ' Widget ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' build ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ( ' ) ,
TextSpan ( style: codeStyle . classStyle , text: ' BuildContext ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' context ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ) ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' { ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . keywordStyle , text: ' return ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . classStyle , text: ' CupertinoPageScaffold ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ( ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a child ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' : ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . classStyle , text: ' CustomScrollView ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ( ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan (
style: codeStyle . commentStyle ,
text: ' // If left unspecified, the [CustomScrollView] appends an ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan (
style: codeStyle . commentStyle ,
text:
' // [AlwaysScrollableScrollPhysics]. Behind the scene, the ScrollableState ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan (
style: codeStyle . commentStyle ,
text:
' // will attach that [AlwaysScrollableScrollPhysics] to the output of ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan (
style: codeStyle . commentStyle ,
text:
' // [ScrollConfiguration.of] which will be a [ClampingScrollPhysics] ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . commentStyle , text: ' // on Android. ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan (
style: codeStyle . commentStyle ,
text:
' // To demonstrate the iOS behavior in this demo and to ensure that the list ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan (
style: codeStyle . commentStyle ,
text:
' // always scrolls, we specifically use a [BouncingScrollPhysics] combined ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan (
style: codeStyle . commentStyle ,
text: ' // with a [AlwaysScrollableScrollPhysics] ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a physics ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' : ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . keywordStyle , text: ' const ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . classStyle , text: ' BouncingScrollPhysics ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ( ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a parent ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' : ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan (
style: codeStyle . classStyle , text: ' AlwaysScrollableScrollPhysics ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' (), ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ), ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a slivers ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' : ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' [ ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan (
style: codeStyle . classStyle , text: ' CupertinoSliverNavigationBar ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ( ' ) ,
TextSpan (
style: codeStyle . baseStyle ,
text: ' \u000a automaticallyImplyLeading ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' : ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . keywordStyle , text: ' false ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' , ' ) ,
TextSpan (
style: codeStyle . baseStyle , text: ' \u000a largeTitle ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' : ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . classStyle , text: ' Text ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ( ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . classStyle , text: ' GalleryLocalizations ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' . ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' of ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ( ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' context ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ). ' ) ,
TextSpan (
style: codeStyle . baseStyle , text: ' demoCupertinoPullToRefreshTitle ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' , ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ), ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ), ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan (
style: codeStyle . classStyle , text: ' CupertinoSliverRefreshControl ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ( ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a onRefresh ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' : ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' () ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' { ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . keywordStyle , text: ' return ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . classStyle , text: ' Future ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' < ' ) ,
TextSpan ( style: codeStyle . keywordStyle , text: ' void ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' >. ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' delayed ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ( ' ) ,
TextSpan ( style: codeStyle . keywordStyle , text: ' const ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . classStyle , text: ' Duration ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ( ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' seconds ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' : ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . numberStyle , text: ' 1 ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' )) ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' .. ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' then ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' < ' ) ,
TextSpan ( style: codeStyle . keywordStyle , text: ' void ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' >(( ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' _ ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ) ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' { ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . keywordStyle , text: ' if ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ( ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' mounted ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ) ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' { ' ) ,
TextSpan (
style: codeStyle . baseStyle ,
text: ' \u000a setState ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' (() ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' => ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' _shuffleList ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ()); ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' } ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' }); ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' }, ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ), ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . classStyle , text: ' SliverList ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ( ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a delegate ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' : ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . classStyle , text: ' SliverChildBuilderDelegate ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ( ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ( ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' context ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' , ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' index ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ) ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' { ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . keywordStyle , text: ' final ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' title ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' = ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . classStyle , text: ' GalleryLocalizations ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' . ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' of ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ( ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' context ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ) ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' . ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' starterAppDrawerItem ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ( ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' randomList ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' [ ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' index ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ]); ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . keywordStyle , text: ' return ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . classStyle , text: ' ListTile ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ( ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' title ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' : ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' ' ) ,
TextSpan ( style: codeStyle . classStyle , text: ' Text ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ( ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' title ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' )); ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' }, ' ) ,
TextSpan (
style: codeStyle . baseStyle , text: ' \u000a childCount ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' : ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' listCount ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' , ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ), ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ), ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ], ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ), ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' ); ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' } ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a ' ) ,
TextSpan ( style: codeStyle . punctuationStyle , text: ' } ' ) ,
TextSpan ( style: codeStyle . baseStyle , text: ' \u000a \u000a ' ) ,
] ) ;
}
static TextSpan cupertinoNavigationDemo ( BuildContext context ) {
final CodeStyle codeStyle = CodeStyle . of ( context ) ;
return TextSpan ( children: [