mirror of
https://github.com/Iconica-Development/flutter_timeline.git
synced 2025-05-19 10:33:44 +02:00
fix: aligned add category text in the middle
This commit is contained in:
parent
1aa50292c7
commit
cff28d13b5
1 changed files with 9 additions and 7 deletions
|
@ -176,13 +176,15 @@ class CategoryOption extends StatelessWidget {
|
||||||
padding: EdgeInsets.symmetric(
|
padding: EdgeInsets.symmetric(
|
||||||
vertical: 16,
|
vertical: 16,
|
||||||
horizontal: addCategory ? 8 : 16,
|
horizontal: addCategory ? 8 : 16,
|
||||||
),
|
).copyWith(top: addCategory ? 19 : 18),
|
||||||
child: Text(
|
child: Center(
|
||||||
category,
|
child: Text(
|
||||||
style: theme.textTheme.titleMedium?.copyWith(
|
category,
|
||||||
color: addCategory
|
style: theme.textTheme.titleMedium?.copyWith(
|
||||||
? Colors.black.withOpacity(0.3)
|
color: addCategory
|
||||||
: Colors.black,
|
? Colors.black.withOpacity(0.3)
|
||||||
|
: Colors.black,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in a new issue