aboutsummaryrefslogtreecommitdiffstats
path: root/lib/widget_clock.dart
diff options
context:
space:
mode:
Diffstat (limited to 'lib/widget_clock.dart')
-rw-r--r--lib/widget_clock.dart23
1 files changed, 9 insertions, 14 deletions
diff --git a/lib/widget_clock.dart b/lib/widget_clock.dart
index ae9fb26..c7b53ec 100644
--- a/lib/widget_clock.dart
+++ b/lib/widget_clock.dart
@@ -3,18 +3,18 @@ import 'dart:async';
import 'package:flutter/material.dart';
import 'package:intl/intl.dart';
-class ClockWiddget extends StatefulWidget {
+class ClockWidget extends StatefulWidget {
final double size;
final Color textColor;
- const ClockWiddget({Key? key, required this.size, required this.textColor})
+ const ClockWidget({Key? key, required this.size, required this.textColor})
: super(key: key);
@override
- _ClockWiddgetState createState() => _ClockWiddgetState();
+ _ClockWidgetState createState() => _ClockWidgetState();
}
-class _ClockWiddgetState extends State<ClockWiddget> {
+class _ClockWidgetState extends State<ClockWidget> {
late Timer _timer;
DateTime _now = DateTime.now();
@@ -42,20 +42,14 @@ class _ClockWiddgetState extends State<ClockWiddget> {
Widget build(BuildContext context) {
TextStyle? textStyle = Theme.of(context)
.textTheme
- .headline2
+ .labelLarge
?.copyWith(color: widget.textColor);
return Container(
height: widget.size,
- padding: EdgeInsets.all(16.0),
- decoration: BoxDecoration(
- border: Border(
- top: BorderSide(
- width: 1.0,
- ),
- ),
- ),
+ //padding: EdgeInsets.all(16.0),
child: Column(
children: [
+ SizedBox(height: 16),
FittedBox(
fit: BoxFit.contain,
child: Text(
@@ -63,7 +57,7 @@ class _ClockWiddgetState extends State<ClockWiddget> {
style: textStyle,
),
),
- const Divider(thickness: 1),
+ //const Divider(thickness: 1),
FittedBox(
fit: BoxFit.contain,
child: Text(
@@ -71,6 +65,7 @@ class _ClockWiddgetState extends State<ClockWiddget> {
style: textStyle,
),
),
+ SizedBox(height: 16),
],
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
),