mirror of
https://github.com/flutter/samples.git
synced 2025-11-10 23:08:59 +00:00
Tweaked pubspecs, linted. (#113)
This commit is contained in:
committed by
Filip Hracek
parent
db963d801c
commit
3d40fa9fb2
@@ -34,37 +34,37 @@ class CategoryMenuPage extends StatelessWidget {
|
||||
final ThemeData theme = Theme.of(context);
|
||||
return ScopedModelDescendant<AppStateModel>(
|
||||
builder: (context, child, model) => GestureDetector(
|
||||
onTap: () {
|
||||
model.setCategory(category);
|
||||
if (onCategoryTap != null) onCategoryTap();
|
||||
},
|
||||
child: model.selectedCategory == category
|
||||
? Column(
|
||||
children: <Widget>[
|
||||
SizedBox(height: 16.0),
|
||||
Text(
|
||||
categoryString,
|
||||
style: theme.textTheme.body2,
|
||||
textAlign: TextAlign.center,
|
||||
),
|
||||
SizedBox(height: 14.0),
|
||||
Container(
|
||||
width: 70.0,
|
||||
height: 2.0,
|
||||
color: kShrinePink400,
|
||||
),
|
||||
],
|
||||
)
|
||||
: Padding(
|
||||
padding: EdgeInsets.symmetric(vertical: 16.0),
|
||||
child: Text(
|
||||
categoryString,
|
||||
style: theme.textTheme.body2
|
||||
.copyWith(color: kShrineBrown900.withAlpha(153)),
|
||||
textAlign: TextAlign.center,
|
||||
),
|
||||
onTap: () {
|
||||
model.setCategory(category);
|
||||
if (onCategoryTap != null) onCategoryTap();
|
||||
},
|
||||
child: model.selectedCategory == category
|
||||
? Column(
|
||||
children: <Widget>[
|
||||
SizedBox(height: 16.0),
|
||||
Text(
|
||||
categoryString,
|
||||
style: theme.textTheme.body2,
|
||||
textAlign: TextAlign.center,
|
||||
),
|
||||
),
|
||||
SizedBox(height: 14.0),
|
||||
Container(
|
||||
width: 70.0,
|
||||
height: 2.0,
|
||||
color: kShrinePink400,
|
||||
),
|
||||
],
|
||||
)
|
||||
: Padding(
|
||||
padding: EdgeInsets.symmetric(vertical: 16.0),
|
||||
child: Text(
|
||||
categoryString,
|
||||
style: theme.textTheme.body2
|
||||
.copyWith(color: kShrineBrown900.withAlpha(153)),
|
||||
textAlign: TextAlign.center,
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user