Skip to content

Commit 6e3ce97

Browse files
committed
refactor(home): remove Subheading widget
1 parent ee91c96 commit 6e3ce97

File tree

3 files changed

+6
-24
lines changed

3 files changed

+6
-24
lines changed

lib/features/home/widgets/charts/chart_card.widget.dart

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import 'package:flutter/material.dart';
22

3-
import '../subheading.widget.dart';
4-
53
class ChartCard extends StatelessWidget {
64
const ChartCard({super.key, required this.labelText, required this.chart});
75

@@ -15,8 +13,11 @@ class ChartCard extends StatelessWidget {
1513
child: Column(
1614
children: [
1715
Padding(
18-
padding: const EdgeInsets.all(8.0),
19-
child: Subheading(labelText),
16+
padding: const EdgeInsets.all(16.0),
17+
child: Text(
18+
labelText,
19+
style: Theme.of(context).textTheme.headlineSmall,
20+
),
2021
),
2122
Padding(
2223
padding: const EdgeInsets.only(bottom: 8.0),

lib/features/home/widgets/log_list.widget.dart

+1-5
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import 'package:intl/intl.dart';
66
import '../../logs/models/log.model.dart';
77
import '../../logs/views/log.view.dart';
88
import '../controllers/home.controller.dart';
9-
import 'subheading.widget.dart';
109

1110
class LogList extends StatelessWidget {
1211
const LogList({super.key});
@@ -18,10 +17,7 @@ class LogList extends StatelessWidget {
1817
() => Column(
1918
mainAxisSize: MainAxisSize.min,
2019
crossAxisAlignment: CrossAxisAlignment.start,
21-
children: [
22-
Subheading('Logs'),
23-
..._generateLogTiles(controller.logs),
24-
],
20+
children: _generateLogTiles(controller.logs),
2521
),
2622
);
2723
}

lib/features/home/widgets/subheading.widget.dart

-15
This file was deleted.

0 commit comments

Comments
 (0)