dart fix
This commit is contained in:
parent
5dcfd5da8d
commit
4f7d3879a8
@ -18,7 +18,7 @@ enum CategoryColor {
|
|||||||
final String hex;
|
final String hex;
|
||||||
|
|
||||||
name() {
|
name() {
|
||||||
return this.toString().split('.').last;
|
return toString().split('.').last;
|
||||||
}
|
}
|
||||||
|
|
||||||
backgroundColor() {
|
backgroundColor() {
|
||||||
|
|||||||
@ -48,6 +48,7 @@ class _CategoriesPageState extends State<CategoriesPage> {
|
|||||||
}
|
}
|
||||||
return CategoryRow(category: category);
|
return CategoryRow(category: category);
|
||||||
}
|
}
|
||||||
|
return null;
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
}),
|
}),
|
||||||
@ -79,26 +80,26 @@ class CategoryRow extends StatelessWidget {
|
|||||||
children: [
|
children: [
|
||||||
Container(
|
Container(
|
||||||
constraints: BoxConstraints(maxHeight: 80, maxWidth: 70),
|
constraints: BoxConstraints(maxHeight: 80, maxWidth: 70),
|
||||||
color: category?.backgroundColor,
|
color: category.backgroundColor,
|
||||||
child: SizedBox.expand(
|
child: SizedBox.expand(
|
||||||
child: Center(
|
child: Center(
|
||||||
child: Text(
|
child: Text(
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
color: category?.foregroundColor,
|
color: category.foregroundColor,
|
||||||
fontSize: 18,
|
fontSize: 18,
|
||||||
),
|
),
|
||||||
category!.number.toString())),
|
category.number.toString())),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Expanded(
|
Expanded(
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: EdgeInsets.only(left: category!.leftPadding()),
|
padding: EdgeInsets.only(left: category.leftPadding()),
|
||||||
child: Text(
|
child: Text(
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 17,
|
fontSize: 17,
|
||||||
),
|
),
|
||||||
category!.name,
|
category.name,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@ -110,7 +111,7 @@ class CategoryRow extends StatelessWidget {
|
|||||||
fontSize: 13,
|
fontSize: 13,
|
||||||
color: Colors.white38,
|
color: Colors.white38,
|
||||||
),
|
),
|
||||||
"${category?.description}",
|
"${category.description}",
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user