diff --git a/packages/flutter/lib/src/material/tabs.dart b/packages/flutter/lib/src/material/tabs.dart index a87220db0d..937ce060a7 100644 --- a/packages/flutter/lib/src/material/tabs.dart +++ b/packages/flutter/lib/src/material/tabs.dart @@ -574,42 +574,42 @@ class _TabBarScrollController extends ScrollController { /// /// ```dart /// Widget build(BuildContext context) { -/// return DefaultTabController( -/// initialIndex: 1, -/// length: 3, -/// child: Scaffold( -/// appBar: AppBar( -/// title: const Text('TabBar Widget'), -/// bottom: const TabBar( -/// tabs: [ -/// Tab( -/// icon: Icon(Icons.cloud_outlined), -/// ), -/// Tab( -/// icon: Icon(Icons.beach_access_sharp), -/// ), -/// Tab( -/// icon: Icon(Icons.brightness_5_sharp), -/// ), -/// ], -/// ), -/// ), -/// body: const TabBarView( -/// children: [ -/// Center( -/// child: Text('It\'s cloudy here'), -/// ), -/// Center( -/// child: Text('It\'s rainy here'), -/// ), -/// Center( -/// child: Text('It\'s sunny here'), -/// ), -/// ], -/// ), -/// ), -/// ); -/// } +/// return DefaultTabController( +/// initialIndex: 1, +/// length: 3, +/// child: Scaffold( +/// appBar: AppBar( +/// title: const Text('TabBar Widget'), +/// bottom: const TabBar( +/// tabs: [ +/// Tab( +/// icon: Icon(Icons.cloud_outlined), +/// ), +/// Tab( +/// icon: Icon(Icons.beach_access_sharp), +/// ), +/// Tab( +/// icon: Icon(Icons.brightness_5_sharp), +/// ), +/// ], +/// ), +/// ), +/// body: const TabBarView( +/// children: [ +/// Center( +/// child: Text('It\'s cloudy here'), +/// ), +/// Center( +/// child: Text('It\'s rainy here'), +/// ), +/// Center( +/// child: Text('It\'s sunny here'), +/// ), +/// ], +/// ), +/// ), +/// ); +/// } /// ``` /// {@end-tool} ///