mirror of
https://github.com/flutter/samples.git
synced 2025-11-08 22:09:06 +00:00
Samples maintenance (#435)
This commit is contained in:
@@ -186,9 +186,9 @@ class NumberPicker extends StatelessWidget {
|
||||
}
|
||||
|
||||
Widget _integerListView(ThemeData themeData) {
|
||||
TextStyle defaultStyle = themeData.textTheme.body1;
|
||||
TextStyle defaultStyle = themeData.textTheme.bodyText2;
|
||||
TextStyle selectedStyle =
|
||||
themeData.textTheme.headline.copyWith(color: themeData.accentColor);
|
||||
themeData.textTheme.headline5.copyWith(color: themeData.accentColor);
|
||||
|
||||
var listItemCount = integerItemCount + 2;
|
||||
|
||||
@@ -223,9 +223,9 @@ class NumberPicker extends StatelessWidget {
|
||||
}
|
||||
|
||||
Widget _decimalListView(ThemeData themeData) {
|
||||
TextStyle defaultStyle = themeData.textTheme.body1;
|
||||
TextStyle defaultStyle = themeData.textTheme.bodyText2;
|
||||
TextStyle selectedStyle =
|
||||
themeData.textTheme.headline.copyWith(color: themeData.accentColor);
|
||||
themeData.textTheme.headline5.copyWith(color: themeData.accentColor);
|
||||
|
||||
int decimalItemCount =
|
||||
selectedIntValue == maxValue ? 3 : math.pow(10, decimalPlaces) + 2;
|
||||
@@ -262,9 +262,9 @@ class NumberPicker extends StatelessWidget {
|
||||
}
|
||||
|
||||
Widget _integerInfiniteListView(ThemeData themeData) {
|
||||
TextStyle defaultStyle = themeData.textTheme.body1;
|
||||
TextStyle defaultStyle = themeData.textTheme.bodyText2;
|
||||
TextStyle selectedStyle =
|
||||
themeData.textTheme.headline.copyWith(color: themeData.accentColor);
|
||||
themeData.textTheme.headline5.copyWith(color: themeData.accentColor);
|
||||
|
||||
return new NotificationListener(
|
||||
child: new Container(
|
||||
|
||||
Reference in New Issue
Block a user