From 7cec6ee9871c75ea35db4d40e1bdbe36450552ff Mon Sep 17 00:00:00 2001 From: "o.zaim.newlinetechnologies.net" Date: Thu, 2 Jun 2022 09:30:00 +0300 Subject: [PATCH 1/8] Added cupertino search text field demo. --- lib/data/demos.dart | 20 ++++ lib/data/icons.dart | 1 + lib/demos/cupertino/cupertino_demos.dart | 1 + .../cupertino_search_text_field_demo.dart | 106 ++++++++++++++++++ lib/l10n/intl_en.arb | 16 +++ 5 files changed, 144 insertions(+) create mode 100644 lib/demos/cupertino/cupertino_search_text_field_demo.dart diff --git a/lib/data/demos.dart b/lib/data/demos.dart index dce7510b45..c69734b9ee 100644 --- a/lib/data/demos.dart +++ b/lib/data/demos.dart @@ -1214,6 +1214,26 @@ List cupertinoDemos(GalleryLocalizations localizations) { ], category: GalleryDemoCategory.cupertino, ), + GalleryDemo( + title: localizations.demoCupertinoSearchTextFieldTitle, + icon: GalleryIcons.search, + slug: 'cupertino-search-text-field', + subtitle: localizations.demoCupertinoSearchTextFieldSubtitle, + configurations: [ + GalleryDemoConfiguration( + title: localizations.demoCupertinoSearchTextFieldTitle, + description: localizations.demoCupertinoSearchTextFieldDescription, + documentationUrl: + '$_docsBaseUrl/cupertino/CupertinoSearchTextField-class.html', + buildRoute: (_) => DeferredWidget( + cupertinoLoader, + // ignore: prefer_const_constructors + () => cupertino_demos.CupertinoSearchTextFieldDemo()), + code: CodeSegments.cupertinoTextFieldDemo, + ), + ], + category: GalleryDemoCategory.cupertino, + ), ]; } diff --git a/lib/data/icons.dart b/lib/data/icons.dart index ddf198f53f..aee1193fe8 100644 --- a/lib/data/icons.dart +++ b/lib/data/icons.dart @@ -170,4 +170,5 @@ class GalleryIcons { static const IconData navigationRail = Icons.vertical_split; static const IconData appbar = Icons.web_asset; static const IconData divider = Icons.credit_card; + static const IconData search = Icons.search; } diff --git a/lib/demos/cupertino/cupertino_demos.dart b/lib/demos/cupertino/cupertino_demos.dart index e50feeb9dc..adfe8a6471 100644 --- a/lib/demos/cupertino/cupertino_demos.dart +++ b/lib/demos/cupertino/cupertino_demos.dart @@ -4,6 +4,7 @@ export 'package:gallery/demos/cupertino/cupertino_button_demo.dart'; export 'package:gallery/demos/cupertino/cupertino_context_menu_demo.dart'; export 'package:gallery/demos/cupertino/cupertino_navigation_bar_demo.dart'; export 'package:gallery/demos/cupertino/cupertino_picker_demo.dart'; +export 'package:gallery/demos/cupertino/cupertino_search_text_field_demo.dart'; export 'package:gallery/demos/cupertino/cupertino_segmented_control_demo.dart'; export 'package:gallery/demos/cupertino/cupertino_slider_demo.dart'; export 'package:gallery/demos/cupertino/cupertino_switch_demo.dart'; diff --git a/lib/demos/cupertino/cupertino_search_text_field_demo.dart b/lib/demos/cupertino/cupertino_search_text_field_demo.dart new file mode 100644 index 0000000000..446b368b6c --- /dev/null +++ b/lib/demos/cupertino/cupertino_search_text_field_demo.dart @@ -0,0 +1,106 @@ +// Copyright 2019 The Flutter team. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/cupertino.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter_gen/gen_l10n/gallery_localizations.dart'; + +// BEGIN cupertinoTextFieldDemo + +class CupertinoSearchTextFieldDemo extends StatefulWidget { + const CupertinoSearchTextFieldDemo({super.key}); + + @override + State createState() => + _CupertinoSearchTextFieldDemoState(); +} + +class _CupertinoSearchTextFieldDemoState + extends State { + + final List platforms = [ + 'Android', + 'iOS', + 'Windows', + 'Linux', + 'MacOS', + 'Web' + ]; + + final TextEditingController _queryTextController = TextEditingController(); + String _searchPlatform = ''; + List filteredPlatforms = []; + + @override + void initState() { + super.initState(); + filteredPlatforms = platforms; + _queryTextController.addListener(() { + if (_queryTextController.text.isEmpty) { + setState(() { + _searchPlatform = ''; + filteredPlatforms = platforms; + }); + } else { + setState(() { + _searchPlatform = _queryTextController.text; + }); + } + }); + } + + @override + Widget build(BuildContext context) { + final localizations = GalleryLocalizations.of(context)!; + return CupertinoPageScaffold( + navigationBar: CupertinoNavigationBar( + automaticallyImplyLeading: false, + middle: Text(localizations.demoCupertinoSearchTextFieldTitle), + ), + child: SafeArea( + child: Column( + children: [ + CupertinoSearchTextField( + controller: _queryTextController, + restorationId: 'search_text_field', + padding: const EdgeInsets.symmetric(horizontal: 6, vertical: 12), + decoration: const BoxDecoration( + border: Border( + bottom: BorderSide( + width: 0, + color: CupertinoColors.inactiveGray, + ), + ), + ), + placeholder: + localizations.demoCupertinoSearchTextFieldPlaceholder, + ), + _buildPlatformList(), + ], + ), + ), + ); + } + + Widget _buildPlatformList() { + if (_searchPlatform.isNotEmpty) { + List tempList = []; + for (int i = 0; i < filteredPlatforms.length; i++) { + if (filteredPlatforms[i] + .toLowerCase() + .contains(_searchPlatform.toLowerCase())) { + tempList.add(filteredPlatforms[i]); + } + } + filteredPlatforms = tempList; + } + return ListView.builder( + itemCount: filteredPlatforms.length, + shrinkWrap: true, + itemBuilder: (context, index) { + return ListTile(title: Text(filteredPlatforms[index])); + }, + ); + } +} \ No newline at end of file diff --git a/lib/l10n/intl_en.arb b/lib/l10n/intl_en.arb index 68f8d7c93f..e1b6e74d61 100644 --- a/lib/l10n/intl_en.arb +++ b/lib/l10n/intl_en.arb @@ -1407,6 +1407,22 @@ "@demoCupertinoTextFieldPIN": { "description": "The placeholder for a text field where a user would enter their PIN number." }, + "demoCupertinoSearchTextFieldTitle": "Search text field", + "@demoCupertinoSearchTextFieldTitle": { + "description": "Title for the cupertino search text field demo." + }, + "demoCupertinoSearchTextFieldSubtitle": "iOS-style search text field", + "@demoCupertinoSearchTextFieldSubtitle": { + "description": "Subtitle for the cupertino search text field demo." + }, + "demoCupertinoSearchTextFieldDescription": "A search text field lets the user to searching by entered text, either with a hardware keyboard or with an onscreen keyboard.", + "@demoCupertinoSearchTextFieldDescription": { + "description": "Description for the cupertino search text field demo." + }, + "demoCupertinoSearchTextFieldPlaceholder": "Start typing a text", + "@demoCupertinoSearchTextFieldPlaceholder": { + "description": "The placeholder for a search text field demo." + }, "demoMotionTitle": "Motion", "@demoMotionTitle": { "description": "Title for the motion demo." From 730c8b77d8546aba009d6c752c927e2fbab01062 Mon Sep 17 00:00:00 2001 From: Pierre-Louis Guidez Date: Thu, 2 Jun 2022 13:42:31 +0200 Subject: [PATCH 2/8] fix --- lib/data/demos.dart | 4 ++-- lib/demos/cupertino/cupertino_search_text_field_demo.dart | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/data/demos.dart b/lib/data/demos.dart index c69734b9ee..0ef062c800 100644 --- a/lib/data/demos.dart +++ b/lib/data/demos.dart @@ -1224,11 +1224,11 @@ List cupertinoDemos(GalleryLocalizations localizations) { title: localizations.demoCupertinoSearchTextFieldTitle, description: localizations.demoCupertinoSearchTextFieldDescription, documentationUrl: - '$_docsBaseUrl/cupertino/CupertinoSearchTextField-class.html', + '$_docsBaseUrl/cupertino/CupertinoSearchTextField-class.html', buildRoute: (_) => DeferredWidget( cupertinoLoader, // ignore: prefer_const_constructors - () => cupertino_demos.CupertinoSearchTextFieldDemo()), + () => cupertino_demos.CupertinoSearchTextFieldDemo()), code: CodeSegments.cupertinoTextFieldDemo, ), ], diff --git a/lib/demos/cupertino/cupertino_search_text_field_demo.dart b/lib/demos/cupertino/cupertino_search_text_field_demo.dart index 446b368b6c..bd7065a65f 100644 --- a/lib/demos/cupertino/cupertino_search_text_field_demo.dart +++ b/lib/demos/cupertino/cupertino_search_text_field_demo.dart @@ -18,7 +18,6 @@ class CupertinoSearchTextFieldDemo extends StatefulWidget { class _CupertinoSearchTextFieldDemoState extends State { - final List platforms = [ 'Android', 'iOS', @@ -103,4 +102,4 @@ class _CupertinoSearchTextFieldDemoState }, ); } -} \ No newline at end of file +} From 2d6dad220619da2c7f6256067f6ea9bc85ed282b Mon Sep 17 00:00:00 2001 From: Pierre-Louis <6655696+guidezpl@users.noreply.github.com> Date: Thu, 2 Jun 2022 13:45:11 +0200 Subject: [PATCH 3/8] Update lib/l10n/intl_en.arb --- lib/l10n/intl_en.arb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/l10n/intl_en.arb b/lib/l10n/intl_en.arb index e1b6e74d61..e23da2d656 100644 --- a/lib/l10n/intl_en.arb +++ b/lib/l10n/intl_en.arb @@ -1419,7 +1419,7 @@ "@demoCupertinoSearchTextFieldDescription": { "description": "Description for the cupertino search text field demo." }, - "demoCupertinoSearchTextFieldPlaceholder": "Start typing a text", + "demoCupertinoSearchTextFieldPlaceholder": "Enter some text", "@demoCupertinoSearchTextFieldPlaceholder": { "description": "The placeholder for a search text field demo." }, From b8871fb1db378b591f447e5542cf5b8fe3f1130e Mon Sep 17 00:00:00 2001 From: Pierre-Louis <6655696+guidezpl@users.noreply.github.com> Date: Thu, 2 Jun 2022 13:45:14 +0200 Subject: [PATCH 4/8] Update lib/l10n/intl_en.arb --- lib/l10n/intl_en.arb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/l10n/intl_en.arb b/lib/l10n/intl_en.arb index e23da2d656..037d09d551 100644 --- a/lib/l10n/intl_en.arb +++ b/lib/l10n/intl_en.arb @@ -1415,7 +1415,7 @@ "@demoCupertinoSearchTextFieldSubtitle": { "description": "Subtitle for the cupertino search text field demo." }, - "demoCupertinoSearchTextFieldDescription": "A search text field lets the user to searching by entered text, either with a hardware keyboard or with an onscreen keyboard.", + "demoCupertinoSearchTextFieldDescription": "A search text field that lets the user search by entering text, and that can offer and filter suggestions.", "@demoCupertinoSearchTextFieldDescription": { "description": "Description for the cupertino search text field demo." }, From 5750199725e2d49685f196fc33379ce19e29dd92 Mon Sep 17 00:00:00 2001 From: Pierre-Louis Guidez Date: Thu, 2 Jun 2022 13:57:37 +0200 Subject: [PATCH 5/8] flutter pub run grinder l10n --- lib/l10n/intl_en_US.xml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/lib/l10n/intl_en_US.xml b/lib/l10n/intl_en_US.xml index 1a1b92d6a3..0a73fdcff6 100644 --- a/lib/l10n/intl_en_US.xml +++ b/lib/l10n/intl_en_US.xml @@ -1297,6 +1297,22 @@ name="demoCupertinoTextFieldPIN" description="The placeholder for a text field where a user would enter their PIN number." >PIN + Search text field + iOS-style search text field + A search text field lets the user to searching by entered text, either with a hardware keyboard or with an onscreen keyboard. + Start typing a text Date: Thu, 2 Jun 2022 14:03:16 +0200 Subject: [PATCH 6/8] Update intl_en_US.xml --- lib/l10n/intl_en_US.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/l10n/intl_en_US.xml b/lib/l10n/intl_en_US.xml index 0a73fdcff6..2a8df90863 100644 --- a/lib/l10n/intl_en_US.xml +++ b/lib/l10n/intl_en_US.xml @@ -1308,11 +1308,11 @@ A search text field lets the user to searching by entered text, either with a hardware keyboard or with an onscreen keyboard. + >A search text field that lets the user search by entering text, and that can offer and filter suggestions. Start typing a text + >Enter some text Date: Thu, 2 Jun 2022 14:21:05 +0200 Subject: [PATCH 7/8] update code segments --- lib/codeviewer/code_segments.dart | 535 ++++++++++++++++++ .../cupertino_search_text_field_demo.dart | 4 +- 2 files changed, 538 insertions(+), 1 deletion(-) diff --git a/lib/codeviewer/code_segments.dart b/lib/codeviewer/code_segments.dart index 2e6b7757ed..3ef5ae7b50 100644 --- a/lib/codeviewer/code_segments.dart +++ b/lib/codeviewer/code_segments.dart @@ -14193,6 +14193,541 @@ class CodeSegments { ]); } + static TextSpan cupertinoSearchTextFieldDemo(BuildContext context) { + final codeStyle = CodeStyle.of(context); + return TextSpan(children: [ + TextSpan( + style: codeStyle.commentStyle, + text: '// Copyright 2019 The Flutter team. All rights reserved.'), + TextSpan(style: codeStyle.baseStyle, text: '\u000a'), + TextSpan( + style: codeStyle.commentStyle, + text: + '// Use of this source code is governed by a BSD-style license that can be'), + TextSpan(style: codeStyle.baseStyle, text: '\u000a'), + TextSpan( + style: codeStyle.commentStyle, text: '// found in the LICENSE file.'), + TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'), + TextSpan(style: codeStyle.keywordStyle, text: 'import'), + TextSpan(style: codeStyle.baseStyle, text: ' '), + TextSpan( + style: codeStyle.stringStyle, + text: '\u0027package:flutter/cupertino.dart\u0027'), + TextSpan(style: codeStyle.punctuationStyle, text: ';'), + TextSpan(style: codeStyle.baseStyle, text: '\u000a'), + TextSpan(style: codeStyle.keywordStyle, text: 'import'), + TextSpan(style: codeStyle.baseStyle, text: ' '), + TextSpan( + style: codeStyle.stringStyle, + text: '\u0027package:flutter/material.dart\u0027'), + TextSpan(style: codeStyle.punctuationStyle, text: ';'), + TextSpan(style: codeStyle.baseStyle, text: '\u000a'), + TextSpan(style: codeStyle.keywordStyle, text: 'import'), + TextSpan(style: codeStyle.baseStyle, text: ' '), + TextSpan( + style: codeStyle.stringStyle, + text: + '\u0027package:flutter_gen/gen_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: 'CupertinoSearchTextFieldDemo'), + TextSpan(style: codeStyle.baseStyle, text: ' '), + TextSpan(style: codeStyle.keywordStyle, text: 'extends'), + TextSpan(style: codeStyle.baseStyle, text: ' '), + TextSpan(style: codeStyle.classStyle, text: 'StatefulWidget'), + TextSpan(style: codeStyle.baseStyle, text: ' '), + TextSpan(style: codeStyle.punctuationStyle, text: '{'), + TextSpan(style: codeStyle.baseStyle, text: '\u000a '), + TextSpan(style: codeStyle.keywordStyle, text: 'const'), + TextSpan(style: codeStyle.baseStyle, text: ' '), + TextSpan( + style: codeStyle.classStyle, text: 'CupertinoSearchTextFieldDemo'), + TextSpan(style: codeStyle.punctuationStyle, text: '({'), + TextSpan(style: codeStyle.keywordStyle, text: 'super'), + TextSpan(style: codeStyle.punctuationStyle, text: '.'), + TextSpan(style: codeStyle.baseStyle, text: 'key'), + TextSpan(style: codeStyle.punctuationStyle, text: '});'), + TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '), + TextSpan(style: codeStyle.keywordStyle, text: '@override'), + TextSpan(style: codeStyle.baseStyle, text: '\u000a '), + TextSpan(style: codeStyle.classStyle, text: 'State'), + TextSpan(style: codeStyle.punctuationStyle, text: '<'), + TextSpan( + style: codeStyle.classStyle, text: 'CupertinoSearchTextFieldDemo'), + TextSpan(style: codeStyle.punctuationStyle, text: '>'), + 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: '_CupertinoSearchTextFieldDemoState'), + TextSpan(style: 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: '_CupertinoSearchTextFieldDemoState'), + 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: 'CupertinoSearchTextFieldDemo'), + TextSpan(style: codeStyle.punctuationStyle, text: '>'), + TextSpan(style: codeStyle.baseStyle, text: ' '), + TextSpan(style: codeStyle.punctuationStyle, text: '{'), + TextSpan(style: codeStyle.baseStyle, text: '\u000a '), + TextSpan(style: codeStyle.keywordStyle, text: 'final'), + TextSpan(style: codeStyle.baseStyle, text: ' '), + TextSpan(style: codeStyle.classStyle, text: 'List'), + TextSpan(style: codeStyle.punctuationStyle, text: '<'), + TextSpan(style: codeStyle.classStyle, text: 'String'), + TextSpan(style: codeStyle.punctuationStyle, text: '>'), + TextSpan(style: codeStyle.baseStyle, text: ' platforms '), + TextSpan(style: codeStyle.punctuationStyle, text: '='), + TextSpan(style: codeStyle.baseStyle, text: ' '), + TextSpan(style: codeStyle.punctuationStyle, text: '['), + TextSpan(style: codeStyle.baseStyle, text: '\u000a '), + TextSpan(style: codeStyle.stringStyle, text: '\u0027Android\u0027'), + TextSpan(style: codeStyle.punctuationStyle, text: ','), + TextSpan(style: codeStyle.baseStyle, text: '\u000a '), + TextSpan(style: codeStyle.stringStyle, text: '\u0027iOS\u0027'), + TextSpan(style: codeStyle.punctuationStyle, text: ','), + TextSpan(style: codeStyle.baseStyle, text: '\u000a '), + TextSpan(style: codeStyle.stringStyle, text: '\u0027Windows\u0027'), + TextSpan(style: codeStyle.punctuationStyle, text: ','), + TextSpan(style: codeStyle.baseStyle, text: '\u000a '), + TextSpan(style: codeStyle.stringStyle, text: '\u0027Linux\u0027'), + TextSpan(style: codeStyle.punctuationStyle, text: ','), + TextSpan(style: codeStyle.baseStyle, text: '\u000a '), + TextSpan(style: codeStyle.stringStyle, text: '\u0027MacOS\u0027'), + TextSpan(style: codeStyle.punctuationStyle, text: ','), + TextSpan(style: codeStyle.baseStyle, text: '\u000a '), + TextSpan(style: codeStyle.stringStyle, text: '\u0027Web\u0027'), + TextSpan(style: codeStyle.baseStyle, text: '\u000a '), + TextSpan(style: codeStyle.punctuationStyle, text: '];'), + TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '), + TextSpan(style: codeStyle.keywordStyle, text: 'final'), + TextSpan(style: codeStyle.baseStyle, text: ' '), + TextSpan(style: codeStyle.classStyle, text: 'TextEditingController'), + TextSpan(style: codeStyle.baseStyle, text: ' _queryTextController '), + TextSpan(style: codeStyle.punctuationStyle, text: '='), + TextSpan(style: codeStyle.baseStyle, text: ' '), + TextSpan(style: codeStyle.classStyle, text: 'TextEditingController'), + TextSpan(style: codeStyle.punctuationStyle, text: '();'), + TextSpan(style: codeStyle.baseStyle, text: '\u000a '), + TextSpan(style: codeStyle.classStyle, text: 'String'), + TextSpan(style: codeStyle.baseStyle, text: ' _searchPlatform '), + TextSpan(style: codeStyle.punctuationStyle, text: '='), + TextSpan(style: codeStyle.baseStyle, text: ' '), + TextSpan(style: codeStyle.stringStyle, text: '\u0027\u0027'), + TextSpan(style: codeStyle.punctuationStyle, text: ';'), + TextSpan(style: codeStyle.baseStyle, text: '\u000a '), + TextSpan(style: codeStyle.classStyle, text: 'List'), + TextSpan(style: codeStyle.punctuationStyle, text: '<'), + TextSpan(style: codeStyle.classStyle, text: 'String'), + TextSpan(style: codeStyle.punctuationStyle, text: '>'), + TextSpan(style: codeStyle.baseStyle, text: ' filteredPlatforms '), + TextSpan(style: codeStyle.punctuationStyle, text: '='), + TextSpan(style: codeStyle.baseStyle, text: ' '), + TextSpan(style: codeStyle.punctuationStyle, text: '[];'), + TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '), + TextSpan(style: codeStyle.keywordStyle, text: '@override'), + TextSpan(style: codeStyle.baseStyle, text: '\u000a '), + TextSpan(style: codeStyle.keywordStyle, text: 'void'), + TextSpan(style: codeStyle.baseStyle, text: ' initState'), + TextSpan(style: codeStyle.punctuationStyle, text: '()'), + TextSpan(style: codeStyle.baseStyle, text: ' '), + TextSpan(style: codeStyle.punctuationStyle, text: '{'), + TextSpan(style: codeStyle.baseStyle, text: '\u000a '), + TextSpan(style: codeStyle.keywordStyle, text: 'super'), + TextSpan(style: codeStyle.punctuationStyle, text: '.'), + TextSpan(style: codeStyle.baseStyle, text: 'initState'), + TextSpan(style: codeStyle.punctuationStyle, text: '();'), + TextSpan( + style: codeStyle.baseStyle, text: '\u000a filteredPlatforms '), + TextSpan(style: codeStyle.punctuationStyle, text: '='), + TextSpan(style: codeStyle.baseStyle, text: ' platforms'), + TextSpan(style: codeStyle.punctuationStyle, text: ';'), + TextSpan( + style: codeStyle.baseStyle, text: '\u000a _queryTextController'), + TextSpan(style: codeStyle.punctuationStyle, text: '.'), + TextSpan(style: codeStyle.baseStyle, text: 'addListener'), + TextSpan(style: 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: '_queryTextController'), + TextSpan(style: codeStyle.punctuationStyle, text: '.'), + TextSpan(style: codeStyle.baseStyle, text: 'text'), + TextSpan(style: codeStyle.punctuationStyle, text: '.'), + TextSpan(style: codeStyle.baseStyle, text: 'isEmpty'), + TextSpan(style: codeStyle.punctuationStyle, text: ')'), + TextSpan(style: codeStyle.baseStyle, text: ' '), + TextSpan(style: codeStyle.punctuationStyle, text: '{'), + TextSpan(style: codeStyle.baseStyle, text: '\u000a setState'), + TextSpan(style: codeStyle.punctuationStyle, text: '(()'), + TextSpan(style: codeStyle.baseStyle, text: ' '), + TextSpan(style: codeStyle.punctuationStyle, text: '{'), + TextSpan( + style: codeStyle.baseStyle, text: '\u000a _searchPlatform '), + TextSpan(style: codeStyle.punctuationStyle, text: '='), + TextSpan(style: codeStyle.baseStyle, text: ' '), + TextSpan(style: codeStyle.stringStyle, text: '\u0027\u0027'), + TextSpan(style: codeStyle.punctuationStyle, text: ';'), + TextSpan( + style: codeStyle.baseStyle, + text: '\u000a filteredPlatforms '), + TextSpan(style: codeStyle.punctuationStyle, text: '='), + TextSpan(style: codeStyle.baseStyle, text: ' platforms'), + TextSpan(style: codeStyle.punctuationStyle, text: ';'), + TextSpan(style: codeStyle.baseStyle, text: '\u000a '), + TextSpan(style: codeStyle.punctuationStyle, text: '});'), + TextSpan(style: codeStyle.baseStyle, text: '\u000a '), + TextSpan(style: codeStyle.punctuationStyle, text: '}'), + TextSpan(style: codeStyle.baseStyle, text: ' '), + TextSpan(style: codeStyle.keywordStyle, text: 'else'), + TextSpan(style: codeStyle.baseStyle, text: ' '), + TextSpan(style: codeStyle.punctuationStyle, text: '{'), + TextSpan(style: codeStyle.baseStyle, text: '\u000a setState'), + TextSpan(style: codeStyle.punctuationStyle, text: '(()'), + TextSpan(style: codeStyle.baseStyle, text: ' '), + TextSpan(style: codeStyle.punctuationStyle, text: '{'), + TextSpan( + style: codeStyle.baseStyle, text: '\u000a _searchPlatform '), + TextSpan(style: codeStyle.punctuationStyle, text: '='), + TextSpan(style: codeStyle.baseStyle, text: ' _queryTextController'), + TextSpan(style: codeStyle.punctuationStyle, text: '.'), + TextSpan(style: codeStyle.baseStyle, text: 'text'), + TextSpan(style: codeStyle.punctuationStyle, text: ';'), + TextSpan(style: codeStyle.baseStyle, text: '\u000a '), + TextSpan(style: codeStyle.punctuationStyle, text: '});'), + TextSpan(style: codeStyle.baseStyle, text: '\u000a '), + TextSpan(style: codeStyle.punctuationStyle, text: '}'), + TextSpan(style: codeStyle.baseStyle, text: '\u000a '), + TextSpan(style: codeStyle.punctuationStyle, text: '});'), + TextSpan(style: codeStyle.baseStyle, text: '\u000a '), + TextSpan(style: codeStyle.punctuationStyle, text: '}'), + TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '), + TextSpan(style: codeStyle.keywordStyle, text: '@override'), + TextSpan(style: codeStyle.baseStyle, text: '\u000a '), + TextSpan(style: codeStyle.classStyle, text: 'Widget'), + TextSpan(style: codeStyle.baseStyle, text: ' build'), + TextSpan(style: codeStyle.punctuationStyle, text: '('), + TextSpan(style: codeStyle.classStyle, text: 'BuildContext'), + TextSpan(style: codeStyle.baseStyle, text: ' context'), + TextSpan(style: codeStyle.punctuationStyle, text: ')'), + TextSpan(style: codeStyle.baseStyle, text: ' '), + TextSpan(style: codeStyle.punctuationStyle, text: '{'), + TextSpan(style: codeStyle.baseStyle, text: '\u000a '), + TextSpan(style: codeStyle.keywordStyle, text: 'final'), + TextSpan(style: codeStyle.baseStyle, text: ' localizations '), + TextSpan(style: codeStyle.punctuationStyle, text: '='), + TextSpan(style: codeStyle.baseStyle, text: ' '), + TextSpan(style: codeStyle.classStyle, text: 'GalleryLocalizations'), + TextSpan(style: codeStyle.punctuationStyle, text: '.'), + TextSpan(style: codeStyle.baseStyle, text: 'of'), + TextSpan(style: codeStyle.punctuationStyle, text: '('), + TextSpan(style: codeStyle.baseStyle, text: 'context'), + TextSpan(style: codeStyle.punctuationStyle, text: ')!;'), + TextSpan(style: codeStyle.baseStyle, text: '\u000a '), + TextSpan(style: codeStyle.keywordStyle, text: 'return'), + TextSpan(style: codeStyle.baseStyle, text: ' '), + TextSpan(style: codeStyle.classStyle, text: 'CupertinoPageScaffold'), + TextSpan(style: codeStyle.punctuationStyle, text: '('), + TextSpan(style: codeStyle.baseStyle, text: '\u000a navigationBar'), + TextSpan(style: codeStyle.punctuationStyle, text: ':'), + TextSpan(style: codeStyle.baseStyle, text: ' '), + TextSpan(style: codeStyle.classStyle, text: 'CupertinoNavigationBar'), + TextSpan(style: codeStyle.punctuationStyle, text: '('), + TextSpan( + style: codeStyle.baseStyle, + text: '\u000a automaticallyImplyLeading'), + TextSpan(style: codeStyle.punctuationStyle, text: ':'), + TextSpan(style: codeStyle.baseStyle, text: ' '), + TextSpan(style: codeStyle.keywordStyle, text: 'false'), + TextSpan(style: codeStyle.punctuationStyle, text: ','), + TextSpan(style: codeStyle.baseStyle, text: '\u000a middle'), + TextSpan(style: codeStyle.punctuationStyle, text: ':'), + TextSpan(style: codeStyle.baseStyle, text: ' '), + TextSpan(style: codeStyle.classStyle, text: 'Text'), + TextSpan(style: codeStyle.punctuationStyle, text: '('), + TextSpan(style: codeStyle.baseStyle, text: 'localizations'), + TextSpan(style: codeStyle.punctuationStyle, text: '.'), + TextSpan( + style: codeStyle.baseStyle, + text: 'demoCupertinoSearchTextFieldTitle'), + TextSpan(style: codeStyle.punctuationStyle, text: '),'), + TextSpan(style: codeStyle.baseStyle, text: '\u000a '), + TextSpan(style: codeStyle.punctuationStyle, text: '),'), + TextSpan(style: codeStyle.baseStyle, text: '\u000a child'), + TextSpan(style: codeStyle.punctuationStyle, text: ':'), + TextSpan(style: codeStyle.baseStyle, text: ' '), + TextSpan(style: codeStyle.classStyle, text: 'SafeArea'), + TextSpan(style: codeStyle.punctuationStyle, text: '('), + TextSpan(style: codeStyle.baseStyle, text: '\u000a child'), + TextSpan(style: codeStyle.punctuationStyle, text: ':'), + TextSpan(style: codeStyle.baseStyle, text: ' '), + TextSpan(style: codeStyle.classStyle, text: 'Column'), + TextSpan(style: codeStyle.punctuationStyle, text: '('), + TextSpan(style: codeStyle.baseStyle, text: '\u000a children'), + TextSpan(style: codeStyle.punctuationStyle, text: ':'), + TextSpan(style: codeStyle.baseStyle, text: ' '), + TextSpan(style: codeStyle.punctuationStyle, text: '['), + TextSpan(style: codeStyle.baseStyle, text: '\u000a '), + TextSpan(style: codeStyle.classStyle, text: 'CupertinoSearchTextField'), + TextSpan(style: codeStyle.punctuationStyle, text: '('), + TextSpan( + style: codeStyle.baseStyle, text: '\u000a controller'), + TextSpan(style: codeStyle.punctuationStyle, text: ':'), + TextSpan(style: codeStyle.baseStyle, text: ' _queryTextController'), + TextSpan(style: codeStyle.punctuationStyle, text: ','), + TextSpan( + style: codeStyle.baseStyle, + text: '\u000a restorationId'), + TextSpan(style: codeStyle.punctuationStyle, text: ':'), + TextSpan(style: codeStyle.baseStyle, text: ' '), + TextSpan( + style: codeStyle.stringStyle, text: '\u0027search_text_field\u0027'), + TextSpan(style: codeStyle.punctuationStyle, text: ','), + TextSpan(style: codeStyle.baseStyle, text: '\u000a padding'), + TextSpan(style: codeStyle.punctuationStyle, text: ':'), + TextSpan(style: codeStyle.baseStyle, text: ' '), + TextSpan(style: codeStyle.keywordStyle, text: 'const'), + TextSpan(style: codeStyle.baseStyle, text: ' '), + TextSpan(style: codeStyle.classStyle, text: 'EdgeInsets'), + TextSpan(style: codeStyle.punctuationStyle, text: '.'), + TextSpan(style: codeStyle.baseStyle, text: 'symmetric'), + TextSpan(style: codeStyle.punctuationStyle, text: '('), + TextSpan(style: codeStyle.baseStyle, text: 'horizontal'), + TextSpan(style: codeStyle.punctuationStyle, text: ':'), + TextSpan(style: codeStyle.baseStyle, text: ' '), + TextSpan(style: codeStyle.numberStyle, text: '6'), + TextSpan(style: codeStyle.punctuationStyle, text: ','), + TextSpan(style: codeStyle.baseStyle, text: ' vertical'), + TextSpan(style: codeStyle.punctuationStyle, text: ':'), + TextSpan(style: codeStyle.baseStyle, text: ' '), + TextSpan(style: codeStyle.numberStyle, text: '12'), + TextSpan(style: codeStyle.punctuationStyle, text: '),'), + TextSpan( + style: codeStyle.baseStyle, text: '\u000a decoration'), + 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: 'BoxDecoration'), + TextSpan(style: codeStyle.punctuationStyle, text: '('), + TextSpan( + style: codeStyle.baseStyle, text: '\u000a border'), + TextSpan(style: codeStyle.punctuationStyle, text: ':'), + TextSpan(style: codeStyle.baseStyle, text: ' '), + TextSpan(style: codeStyle.classStyle, text: 'Border'), + TextSpan(style: codeStyle.punctuationStyle, text: '('), + TextSpan( + style: codeStyle.baseStyle, text: '\u000a bottom'), + TextSpan(style: codeStyle.punctuationStyle, text: ':'), + TextSpan(style: codeStyle.baseStyle, text: ' '), + TextSpan(style: codeStyle.classStyle, text: 'BorderSide'), + TextSpan(style: codeStyle.punctuationStyle, text: '('), + TextSpan( + style: codeStyle.baseStyle, text: '\u000a width'), + TextSpan(style: codeStyle.punctuationStyle, text: ':'), + TextSpan(style: codeStyle.baseStyle, text: ' '), + TextSpan(style: codeStyle.numberStyle, text: '0'), + TextSpan(style: codeStyle.punctuationStyle, text: ','), + TextSpan( + style: codeStyle.baseStyle, text: '\u000a color'), + TextSpan(style: codeStyle.punctuationStyle, text: ':'), + TextSpan(style: codeStyle.baseStyle, text: ' '), + TextSpan(style: codeStyle.classStyle, text: 'CupertinoColors'), + TextSpan(style: codeStyle.punctuationStyle, text: '.'), + TextSpan(style: codeStyle.baseStyle, text: 'inactiveGray'), + TextSpan(style: codeStyle.punctuationStyle, text: ','), + TextSpan(style: codeStyle.baseStyle, text: '\u000a '), + TextSpan(style: codeStyle.punctuationStyle, text: '),'), + TextSpan(style: codeStyle.baseStyle, text: '\u000a '), + TextSpan(style: codeStyle.punctuationStyle, text: '),'), + TextSpan(style: codeStyle.baseStyle, text: '\u000a '), + TextSpan(style: codeStyle.punctuationStyle, text: '),'), + TextSpan( + style: codeStyle.baseStyle, text: '\u000a placeholder'), + TextSpan(style: codeStyle.punctuationStyle, text: ':'), + TextSpan( + style: codeStyle.baseStyle, + text: '\u000a localizations'), + TextSpan(style: codeStyle.punctuationStyle, text: '.'), + TextSpan( + style: codeStyle.baseStyle, + text: 'demoCupertinoSearchTextFieldPlaceholder'), + TextSpan(style: codeStyle.punctuationStyle, text: ','), + TextSpan(style: codeStyle.baseStyle, text: '\u000a '), + TextSpan(style: codeStyle.punctuationStyle, text: '),'), + TextSpan( + style: codeStyle.baseStyle, + text: '\u000a _buildPlatformList'), + TextSpan(style: codeStyle.punctuationStyle, text: '(),'), + TextSpan(style: codeStyle.baseStyle, text: '\u000a '), + TextSpan(style: codeStyle.punctuationStyle, text: '],'), + TextSpan(style: codeStyle.baseStyle, text: '\u000a '), + TextSpan(style: codeStyle.punctuationStyle, text: '),'), + TextSpan(style: codeStyle.baseStyle, text: '\u000a '), + TextSpan(style: codeStyle.punctuationStyle, text: '),'), + TextSpan(style: codeStyle.baseStyle, text: '\u000a '), + TextSpan(style: codeStyle.punctuationStyle, text: ');'), + TextSpan(style: codeStyle.baseStyle, text: '\u000a '), + TextSpan(style: codeStyle.punctuationStyle, text: '}'), + TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a '), + TextSpan(style: codeStyle.classStyle, text: 'Widget'), + TextSpan(style: codeStyle.baseStyle, text: ' _buildPlatformList'), + TextSpan(style: 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: '_searchPlatform'), + TextSpan(style: codeStyle.punctuationStyle, text: '.'), + TextSpan(style: codeStyle.baseStyle, text: 'isNotEmpty'), + TextSpan(style: codeStyle.punctuationStyle, text: ')'), + TextSpan(style: codeStyle.baseStyle, text: ' '), + TextSpan(style: codeStyle.punctuationStyle, text: '{'), + TextSpan(style: codeStyle.baseStyle, text: '\u000a '), + TextSpan(style: codeStyle.classStyle, text: 'List'), + TextSpan(style: codeStyle.punctuationStyle, text: '<'), + TextSpan(style: codeStyle.classStyle, text: 'String'), + TextSpan(style: codeStyle.punctuationStyle, text: '>'), + TextSpan(style: codeStyle.baseStyle, text: ' tempList '), + TextSpan(style: codeStyle.punctuationStyle, text: '='), + TextSpan(style: codeStyle.baseStyle, text: ' '), + TextSpan(style: codeStyle.punctuationStyle, text: '[];'), + TextSpan(style: codeStyle.baseStyle, text: '\u000a '), + TextSpan(style: codeStyle.keywordStyle, text: 'for'), + TextSpan(style: codeStyle.baseStyle, text: ' '), + TextSpan(style: codeStyle.punctuationStyle, text: '('), + TextSpan(style: codeStyle.keywordStyle, text: 'int'), + TextSpan(style: codeStyle.baseStyle, text: ' i '), + TextSpan(style: codeStyle.punctuationStyle, text: '='), + TextSpan(style: codeStyle.baseStyle, text: ' '), + TextSpan(style: codeStyle.numberStyle, text: '0'), + TextSpan(style: codeStyle.punctuationStyle, text: ';'), + TextSpan(style: codeStyle.baseStyle, text: ' i '), + TextSpan(style: codeStyle.punctuationStyle, text: '<'), + TextSpan(style: codeStyle.baseStyle, text: ' filteredPlatforms'), + TextSpan(style: codeStyle.punctuationStyle, text: '.'), + TextSpan(style: codeStyle.baseStyle, text: 'length'), + 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: '\u000a '), + TextSpan(style: codeStyle.keywordStyle, text: 'if'), + TextSpan(style: codeStyle.baseStyle, text: ' '), + TextSpan(style: codeStyle.punctuationStyle, text: '('), + TextSpan(style: codeStyle.baseStyle, text: 'filteredPlatforms'), + TextSpan(style: codeStyle.punctuationStyle, text: '['), + TextSpan(style: codeStyle.baseStyle, text: 'i'), + TextSpan(style: codeStyle.punctuationStyle, text: ']'), + TextSpan(style: codeStyle.baseStyle, text: '\u000a '), + TextSpan(style: codeStyle.punctuationStyle, text: '.'), + TextSpan(style: codeStyle.baseStyle, text: 'toLowerCase'), + TextSpan(style: codeStyle.punctuationStyle, text: '()'), + TextSpan(style: codeStyle.baseStyle, text: '\u000a '), + TextSpan(style: codeStyle.punctuationStyle, text: '.'), + TextSpan(style: codeStyle.baseStyle, text: 'contains'), + TextSpan(style: codeStyle.punctuationStyle, text: '('), + TextSpan(style: codeStyle.baseStyle, text: '_searchPlatform'), + TextSpan(style: codeStyle.punctuationStyle, text: '.'), + TextSpan(style: codeStyle.baseStyle, text: 'toLowerCase'), + TextSpan(style: codeStyle.punctuationStyle, text: '()))'), + TextSpan(style: codeStyle.baseStyle, text: ' '), + TextSpan(style: codeStyle.punctuationStyle, text: '{'), + TextSpan(style: codeStyle.baseStyle, text: '\u000a tempList'), + TextSpan(style: codeStyle.punctuationStyle, text: '.'), + TextSpan(style: codeStyle.baseStyle, text: 'add'), + TextSpan(style: codeStyle.punctuationStyle, text: '('), + TextSpan(style: codeStyle.baseStyle, text: 'filteredPlatforms'), + TextSpan(style: codeStyle.punctuationStyle, text: '['), + TextSpan(style: codeStyle.baseStyle, text: 'i'), + TextSpan(style: codeStyle.punctuationStyle, text: ']);'), + TextSpan(style: codeStyle.baseStyle, text: '\u000a '), + TextSpan(style: codeStyle.punctuationStyle, text: '}'), + TextSpan(style: codeStyle.baseStyle, text: '\u000a '), + TextSpan(style: codeStyle.punctuationStyle, text: '}'), + TextSpan( + style: codeStyle.baseStyle, text: '\u000a filteredPlatforms '), + TextSpan(style: codeStyle.punctuationStyle, text: '='), + TextSpan(style: codeStyle.baseStyle, text: ' tempList'), + TextSpan(style: codeStyle.punctuationStyle, text: ';'), + TextSpan(style: codeStyle.baseStyle, text: '\u000a '), + TextSpan(style: codeStyle.punctuationStyle, text: '}'), + TextSpan(style: codeStyle.baseStyle, text: '\u000a '), + TextSpan(style: codeStyle.keywordStyle, text: 'return'), + TextSpan(style: codeStyle.baseStyle, text: ' '), + TextSpan(style: codeStyle.classStyle, text: 'ListView'), + TextSpan(style: codeStyle.punctuationStyle, text: '.'), + TextSpan(style: codeStyle.baseStyle, text: 'builder'), + TextSpan(style: codeStyle.punctuationStyle, text: '('), + TextSpan(style: codeStyle.baseStyle, text: '\u000a itemCount'), + TextSpan(style: codeStyle.punctuationStyle, text: ':'), + TextSpan(style: codeStyle.baseStyle, text: ' filteredPlatforms'), + TextSpan(style: codeStyle.punctuationStyle, text: '.'), + TextSpan(style: codeStyle.baseStyle, text: 'length'), + TextSpan(style: codeStyle.punctuationStyle, text: ','), + TextSpan(style: codeStyle.baseStyle, text: '\u000a shrinkWrap'), + 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 itemBuilder'), + TextSpan(style: codeStyle.punctuationStyle, text: ':'), + TextSpan(style: codeStyle.baseStyle, text: ' '), + TextSpan(style: codeStyle.punctuationStyle, text: '('), + TextSpan(style: codeStyle.baseStyle, text: 'context'), + TextSpan(style: codeStyle.punctuationStyle, text: ','), + TextSpan(style: codeStyle.baseStyle, text: ' index'), + TextSpan(style: codeStyle.punctuationStyle, text: ')'), + TextSpan(style: codeStyle.baseStyle, text: ' '), + TextSpan(style: codeStyle.punctuationStyle, text: '{'), + TextSpan(style: codeStyle.baseStyle, text: '\u000a '), + TextSpan(style: codeStyle.keywordStyle, text: 'return'), + TextSpan(style: codeStyle.baseStyle, text: ' '), + TextSpan(style: codeStyle.classStyle, text: 'ListTile'), + TextSpan(style: codeStyle.punctuationStyle, text: '('), + TextSpan(style: codeStyle.baseStyle, text: '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: 'filteredPlatforms'), + TextSpan(style: codeStyle.punctuationStyle, text: '['), + TextSpan(style: codeStyle.baseStyle, text: 'index'), + TextSpan(style: codeStyle.punctuationStyle, text: ']));'), + TextSpan(style: codeStyle.baseStyle, text: '\u000a '), + TextSpan(style: codeStyle.punctuationStyle, text: '},'), + TextSpan(style: codeStyle.baseStyle, text: '\u000a '), + TextSpan(style: codeStyle.punctuationStyle, text: ');'), + TextSpan(style: codeStyle.baseStyle, text: '\u000a '), + TextSpan(style: codeStyle.punctuationStyle, text: '}'), + TextSpan(style: codeStyle.baseStyle, text: '\u000a'), + TextSpan(style: codeStyle.punctuationStyle, text: '}'), + TextSpan(style: codeStyle.baseStyle, text: '\u000a\u000a'), + ]); + } + static TextSpan cupertinoSegmentedControlDemo(BuildContext context) { final codeStyle = CodeStyle.of(context); return TextSpan(children: [ diff --git a/lib/demos/cupertino/cupertino_search_text_field_demo.dart b/lib/demos/cupertino/cupertino_search_text_field_demo.dart index bd7065a65f..76e70fbe23 100644 --- a/lib/demos/cupertino/cupertino_search_text_field_demo.dart +++ b/lib/demos/cupertino/cupertino_search_text_field_demo.dart @@ -6,7 +6,7 @@ import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:flutter_gen/gen_l10n/gallery_localizations.dart'; -// BEGIN cupertinoTextFieldDemo +// BEGIN cupertinoSearchTextFieldDemo class CupertinoSearchTextFieldDemo extends StatefulWidget { const CupertinoSearchTextFieldDemo({super.key}); @@ -103,3 +103,5 @@ class _CupertinoSearchTextFieldDemoState ); } } + +// END \ No newline at end of file From d09f0ba1cfe964a542bc398b7dc1122212d1c2f6 Mon Sep 17 00:00:00 2001 From: Pierre-Louis Guidez Date: Thu, 2 Jun 2022 16:55:43 +0200 Subject: [PATCH 8/8] format --- lib/demos/cupertino/cupertino_search_text_field_demo.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/demos/cupertino/cupertino_search_text_field_demo.dart b/lib/demos/cupertino/cupertino_search_text_field_demo.dart index 76e70fbe23..e6a0fdd618 100644 --- a/lib/demos/cupertino/cupertino_search_text_field_demo.dart +++ b/lib/demos/cupertino/cupertino_search_text_field_demo.dart @@ -104,4 +104,4 @@ class _CupertinoSearchTextFieldDemoState } } -// END \ No newline at end of file +// END