Skip to content

Commit

Permalink
Lint updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Rexios80 committed Oct 19, 2023
1 parent d38a482 commit 8b39bbd
Show file tree
Hide file tree
Showing 6 changed files with 157 additions and 150 deletions.
3 changes: 2 additions & 1 deletion lib/service/firebase_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ class FirebaseService {
static Future<void> _activateAppCheck() async {
try {
await FirebaseAppCheck.instance.activate(
webRecaptchaSiteKey: '6LeVDcodAAAAAFLXdyTIcFjcEGN-Gjl2nWrU08q5',
webProvider:
ReCaptchaV3Provider('6LeVDcodAAAAAFLXdyTIcFjcEGN-Gjl2nWrU08q5'),
);
} catch (e) {
// This will throw after a hot reload
Expand Down
2 changes: 1 addition & 1 deletion lib/view/widget/global_stats_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ class PackageCountChart extends StatelessWidget {
titlesData: BaseStatChart.defaultTitlesData,
lineTouchData: BaseStatChart.createDefaultLineTouchData(context),
),
swapAnimationDuration: Duration.zero,
duration: Duration.zero,
),
);
}
Expand Down
9 changes: 5 additions & 4 deletions lib/view/widget/stats/base_stat_chart.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ import 'package:fast_ui/fast_ui.dart';
import 'package:collection/collection.dart';

class BaseStatChart extends StatelessWidget {
static final defaultGridData = FlGridData(show: false);
static final defaultTitlesData = FlTitlesData(
static const defaultGridData = FlGridData(show: false);
static const defaultTitlesData = FlTitlesData(
topTitles: AxisTitles(sideTitles: SideTitles(showTitles: false)),
bottomTitles: AxisTitles(sideTitles: SideTitles(showTitles: false)),
rightTitles: AxisTitles(sideTitles: SideTitles(showTitles: false)),
leftTitles: AxisTitles(
sideTitles: SideTitles(showTitles: true, reservedSize: 50),
drawBehindEverything: true,
drawBelowEverything: true,
),
);

Expand Down Expand Up @@ -71,7 +71,8 @@ class BaseStatChart extends StatelessWidget {
StatOverview(spots: filteredSpots),
const SizedBox(height: 24),
Expanded(
child: builder(_singleY(), _createLineChartBarData()),),
child: builder(_singleY(), _createLineChartBarData()),
),
],
],
),
Expand Down
4 changes: 2 additions & 2 deletions lib/view/widget/stats/stats_charts.dart
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ class LikeCountChart extends StatelessWidget {
titlesData: BaseStatChart.defaultTitlesData,
lineTouchData: BaseStatChart.createDefaultLineTouchData(context),
),
swapAnimationDuration: Duration.zero,
duration: Duration.zero,
);
},
);
Expand All @@ -145,7 +145,7 @@ class PopularityScoreChart extends StatelessWidget {
titlesData: BaseStatChart.defaultTitlesData,
lineTouchData: BaseStatChart.createDefaultLineTouchData(context),
),
swapAnimationDuration: Duration.zero,
duration: Duration.zero,
),
);
}
Expand Down
Loading

0 comments on commit 8b39bbd

Please sign in to comment.