🐛 Fix some bugs
This commit is contained in:
@@ -304,19 +304,22 @@ class ClockCard extends HookConsumerWidget {
|
|||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
Row(
|
SingleChildScrollView(
|
||||||
spacing: 5,
|
scrollDirection: Axis.horizontal,
|
||||||
children: [
|
child: Row(
|
||||||
notableDay.when(
|
spacing: 5,
|
||||||
data: (day) => day == null
|
children: [
|
||||||
? Text('unauthorized').tr()
|
notableDay.when(
|
||||||
: _buildNotableDayText(context, day),
|
data: (day) => day == null
|
||||||
error: (err, _) =>
|
? Text('unauthorized').tr()
|
||||||
Text(err.toString()).fontSize(12),
|
: _buildNotableDayText(context, day),
|
||||||
loading: () =>
|
error: (err, _) =>
|
||||||
const Text('loading').tr().fontSize(12),
|
Text(err.toString()).fontSize(12),
|
||||||
),
|
loading: () =>
|
||||||
],
|
const Text('loading').tr().fontSize(12),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
@@ -557,7 +560,7 @@ class FortuneCard extends HookConsumerWidget {
|
|||||||
),
|
),
|
||||||
Text('—— ${fortune.source}').bold(),
|
Text('—— ${fortune.source}').bold(),
|
||||||
],
|
],
|
||||||
).padding(horizontal: 16);
|
).padding(horizontal: 16, vertical: unlimited ? 12 : 0);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user