Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/pub/http-1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
DonnieBLT authored Feb 24, 2024
2 parents b0415c3 + 27ac6a4 commit 9746785
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-flutter.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Build and Test Flutter App
on: [push]
on: [push, pull_request]

jobs:
test:
Expand All @@ -16,7 +16,7 @@ jobs:
channel: 'stable'
architecture: x64
- run: flutter pub get
- run: flutter analyze --no-fatal-infos
- run: flutter analyze
- run: flutter build apk

# Upload APK as a build artifact
Expand Down
6 changes: 3 additions & 3 deletions lib/src/pages/home/home.dart
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,9 @@ class _HomeState extends ConsumerState<Home> {

@override
Widget build(BuildContext context) {
return WillPopScope(
onWillPop: () async {
return PopScope(
canPop: false,
onPopInvoked: (_) async {
showGeneralDialog(
context: context,
barrierLabel: "Barrier",
Expand All @@ -223,7 +224,6 @@ class _HomeState extends ConsumerState<Home> {
return buildLogOUtDialog();
},
);
return false;
},
child: Scaffold(
appBar: buildAppBar(context: context),
Expand Down
5 changes: 2 additions & 3 deletions lib/src/pages/leaderboards/monthly_leaderboard.dart
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,12 @@ class _MonthlyLeaderBoardPageState
Widget build(BuildContext context) {
final Size size = MediaQuery.of(context).size;
final monthlyLeadersState = ref.watch(monthlyLeaderBoardProvider);
return WillPopScope(
onWillPop: () async {
return PopScope(
onPopInvoked: (_) async {
ref
.watch(monthlyLeaderBoardProvider.notifier)
.refreshMonthlyLeaderList(
DateTime.now().year, DateTime.now().month);
return true;
},
child: Scaffold(
appBar: AppBar(
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: blt
description: The BLT-Flutter App

version: 1.0.4+1
version: 1.0.5+1
publish_to: none

environment:
Expand Down

0 comments on commit 9746785

Please sign in to comment.