summaryrefslogtreecommitdiffstats
path: root/lib/widget_clock.dart
diff options
context:
space:
mode:
Diffstat (limited to 'lib/widget_clock.dart')
-rw-r--r--lib/widget_clock.dart32
1 files changed, 10 insertions, 22 deletions
diff --git a/lib/widget_clock.dart b/lib/widget_clock.dart
index c7b53ec..5962717 100644
--- a/lib/widget_clock.dart
+++ b/lib/widget_clock.dart
@@ -40,34 +40,22 @@ class _ClockWidgetState extends State<ClockWidget> {
@override
Widget build(BuildContext context) {
- TextStyle? textStyle = Theme.of(context)
- .textTheme
- .labelLarge
- ?.copyWith(color: widget.textColor);
+ TextStyle? textStyle = TextStyle(fontSize: 32, color: widget.textColor);
+
return Container(
height: widget.size,
- //padding: EdgeInsets.all(16.0),
+ padding: EdgeInsets.all(16.0),
child: Column(
+ crossAxisAlignment: CrossAxisAlignment.center,
+ mainAxisAlignment: MainAxisAlignment.center,
children: [
- SizedBox(height: 16),
- FittedBox(
- fit: BoxFit.contain,
- child: Text(
- DateFormat('EEEE').format(_now),
- style: textStyle,
- ),
- ),
- //const Divider(thickness: 1),
- FittedBox(
- fit: BoxFit.contain,
- child: Text(
- DateFormat.jm().format(_now),
- style: textStyle,
- ),
+ Text(
+ DateFormat('EEEE').format(_now),
+ style: textStyle,
),
- SizedBox(height: 16),
+ SizedBox(height: 8),
+ Text(DateFormat.jm().format(_now), style: textStyle),
],
- mainAxisAlignment: MainAxisAlignment.spaceEvenly,
),
alignment: Alignment.center,
);