mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-06-07 23:27:49 +00:00
Fixed most of the warnings
This commit is contained in:
parent
715ca0ab3f
commit
f7c3ba0374
87 changed files with 252 additions and 250 deletions
|
@ -13,13 +13,13 @@ class CustomLineChart extends StatelessWidget {
|
|||
final BuildContext context;
|
||||
|
||||
const CustomLineChart({
|
||||
Key? key,
|
||||
super.key,
|
||||
required this.data,
|
||||
required this.color,
|
||||
required this.dates,
|
||||
required this.daysInterval,
|
||||
required this.context
|
||||
}) : super(key: key);
|
||||
});
|
||||
|
||||
String chartDate(DateTime date) {
|
||||
String twoDigits(int number) => number.toString().padLeft(2, '0');
|
||||
|
@ -55,11 +55,11 @@ class CustomLineChart extends StatelessWidget {
|
|||
|
||||
LineChartData mainData(Map<String, dynamic> data, ThemeMode selectedTheme) {
|
||||
return LineChartData(
|
||||
gridData: FlGridData(
|
||||
gridData: const FlGridData(
|
||||
show: false,
|
||||
drawVerticalLine: false,
|
||||
),
|
||||
titlesData: FlTitlesData(
|
||||
titlesData: const FlTitlesData(
|
||||
show: false,
|
||||
),
|
||||
borderData: FlBorderData(
|
||||
|
@ -73,7 +73,7 @@ class CustomLineChart extends StatelessWidget {
|
|||
barWidth: 2,
|
||||
isStrokeCapRound: true,
|
||||
preventCurveOverShooting: true,
|
||||
dotData: FlDotData(
|
||||
dotData: const FlDotData(
|
||||
show: false,
|
||||
),
|
||||
belowBarData: BarAreaData(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue