Enable no_leading_underscores_for_local_identifiers (#96422)
This commit is contained in:
committed by
GitHub
parent
53ca7f684a
commit
5684b9f69e
@@ -27,9 +27,9 @@ class MyStatelessWidget extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final List<String> _tabs = <String>['Tab 1', 'Tab 2'];
|
||||
final List<String> tabs = <String>['Tab 1', 'Tab 2'];
|
||||
return DefaultTabController(
|
||||
length: _tabs.length, // This is the number of tabs.
|
||||
length: tabs.length, // This is the number of tabs.
|
||||
child: Scaffold(
|
||||
body: NestedScrollView(
|
||||
headerSliverBuilder: (BuildContext context, bool innerBoxIsScrolled) {
|
||||
@@ -61,7 +61,7 @@ class MyStatelessWidget extends StatelessWidget {
|
||||
forceElevated: innerBoxIsScrolled,
|
||||
bottom: TabBar(
|
||||
// These are the widgets to put in each tab in the tab bar.
|
||||
tabs: _tabs.map((String name) => Tab(text: name)).toList(),
|
||||
tabs: tabs.map((String name) => Tab(text: name)).toList(),
|
||||
),
|
||||
),
|
||||
),
|
||||
@@ -69,7 +69,7 @@ class MyStatelessWidget extends StatelessWidget {
|
||||
},
|
||||
body: TabBarView(
|
||||
// These are the contents of the tab views, below the tabs.
|
||||
children: _tabs.map((String name) {
|
||||
children: tabs.map((String name) {
|
||||
return SafeArea(
|
||||
top: false,
|
||||
bottom: false,
|
||||
|
||||
Reference in New Issue
Block a user