Unverified Commit f86c859b authored by Abhishek Ghaskata's avatar Abhishek Ghaskata Committed by GitHub

Refactor tabbar code sample (#76387)

parent 722a085f
...@@ -574,42 +574,42 @@ class _TabBarScrollController extends ScrollController { ...@@ -574,42 +574,42 @@ class _TabBarScrollController extends ScrollController {
/// ///
/// ```dart /// ```dart
/// Widget build(BuildContext context) { /// Widget build(BuildContext context) {
/// return DefaultTabController( /// return DefaultTabController(
/// initialIndex: 1, /// initialIndex: 1,
/// length: 3, /// length: 3,
/// child: Scaffold( /// child: Scaffold(
/// appBar: AppBar( /// appBar: AppBar(
/// title: const Text('TabBar Widget'), /// title: const Text('TabBar Widget'),
/// bottom: const TabBar( /// bottom: const TabBar(
/// tabs: <Widget>[ /// tabs: <Widget>[
/// Tab( /// Tab(
/// icon: Icon(Icons.cloud_outlined), /// icon: Icon(Icons.cloud_outlined),
/// ), /// ),
/// Tab( /// Tab(
/// icon: Icon(Icons.beach_access_sharp), /// icon: Icon(Icons.beach_access_sharp),
/// ), /// ),
/// Tab( /// Tab(
/// icon: Icon(Icons.brightness_5_sharp), /// icon: Icon(Icons.brightness_5_sharp),
/// ), /// ),
/// ], /// ],
/// ), /// ),
/// ), /// ),
/// body: const TabBarView( /// body: const TabBarView(
/// children: <Widget>[ /// children: <Widget>[
/// Center( /// Center(
/// child: Text('It\'s cloudy here'), /// child: Text('It\'s cloudy here'),
/// ), /// ),
/// Center( /// Center(
/// child: Text('It\'s rainy here'), /// child: Text('It\'s rainy here'),
/// ), /// ),
/// Center( /// Center(
/// child: Text('It\'s sunny here'), /// child: Text('It\'s sunny here'),
/// ), /// ),
/// ], /// ],
/// ), /// ),
/// ), /// ),
/// ); /// );
/// } /// }
/// ``` /// ```
/// {@end-tool} /// {@end-tool}
/// ///
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment