Skip to content

Commit d2ff208

Browse files
committed
Upgrade workflow
1 parent 364aa76 commit d2ff208

2 files changed

Lines changed: 75 additions & 32 deletions

File tree

‎.github/workflows/flutter-build-release-files.yaml‎

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,38 @@ jobs:
1111
runs-on: macos-latest
1212
steps:
1313
- uses: actions/checkout@v3
14+
- name: Cache Flutter dependencies
15+
uses: actions/cache@v3
16+
with:
17+
path: ~/.pub-cache
18+
key: ${{ runner.os }}-pub-${{ hashFiles('**/pubspec.lock') }}
19+
restore-keys: |
20+
${{ runner.os }}-pub-
21+
22+
- name: Cache Gradle dependencies
23+
uses: actions/cache@v3
24+
with:
25+
path: |
26+
~/.gradle/caches
27+
~/.gradle/wrapper
28+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
29+
restore-keys: |
30+
${{ runner.os }}-gradle-
31+
32+
- name: Cache CocoaPods dependencies
33+
uses: actions/cache@v3
34+
with:
35+
path: ios/Pods
36+
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
37+
restore-keys: |
38+
${{ runner.os }}-pods-
39+
1440
- uses: subosito/flutter-action@v2
1541
with:
1642
channel: "stable"
1743
architecture: x64
1844
flutter-version: '3.32.5'
45+
cache: true
1946

2047
- name: Setup Java
2148
continue-on-error: true
@@ -31,6 +58,13 @@ jobs:
3158
run: |
3259
flutter pub get
3360
61+
- name: Build APK
62+
run: |
63+
flutter build apk --release --build-number=4
64+
flutter build apk --release --split-per-abi --target-platform=android-arm64 --build-number=3
65+
flutter build apk --release --split-per-abi --target-platform=android-arm --build-number=2
66+
flutter build apk --release --split-per-abi --target-platform=android-x64 --build-number=1
67+
3468
- name: Generate Code
3569
run: |
3670
dart run build_runner build -d

‎lib/src/core/widget/appbar/e_app_bar.dart‎

Lines changed: 41 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import 'package:auto_route/auto_route.dart';
22
import 'package:flutter/material.dart';
3+
import 'package:flutter/services.dart';
34
import 'package:gap/gap.dart';
45
import 'package:sizzle_starter/src/core/route/app_route.gr.dart';
56
import 'package:sizzle_starter/src/core/utils/extensions/context_extension.dart';
@@ -24,40 +25,48 @@ class EAppBar extends StatelessWidget implements PreferredSizeWidget {
2425
final isInDashboard = isBackButtonVisible != null
2526
? !isBackButtonVisible!
2627
: context.router.current.name == DashboardRoute.name;
27-
return ColoredBox(
28-
color: Colors.white,
29-
child: SafeArea(
30-
child: Row(
31-
mainAxisAlignment: MainAxisAlignment.spaceBetween,
32-
children: [
33-
if (!isInDashboard)
34-
IconButton(
35-
padding: const EdgeInsets.all(16.0),
36-
onPressed: context.maybePop,
37-
icon: const Icon(EcommerceIcons.arrow),
38-
),
39-
Row(
40-
mainAxisSize: MainAxisSize.min,
41-
children: [
42-
if (isInDashboard) const Gap(24.0),
43-
Text(
44-
title,
45-
style: titleStyle ?? context.h2,
46-
),
47-
],
48-
),
49-
Row(
50-
children: [
28+
return AnnotatedRegion<SystemUiOverlayStyle>(
29+
value: SystemUiOverlayStyle.light.copyWith(
30+
statusBarColor: Colors.white,
31+
statusBarIconBrightness: Brightness.dark,
32+
statusBarBrightness: Brightness.light,
33+
systemNavigationBarColor: Colors.white,
34+
),
35+
child: ColoredBox(
36+
color: Colors.white,
37+
child: SafeArea(
38+
child: Row(
39+
mainAxisAlignment: MainAxisAlignment.spaceBetween,
40+
children: [
41+
if (!isInDashboard)
5142
IconButton(
52-
padding: const EdgeInsets.all(14),
53-
onPressed: onNotificationTap ??
54-
() => context.pushRoute(const NotificationsRoute()),
55-
icon: const Icon(EcommerceIcons.bell),
43+
padding: const EdgeInsets.all(16.0),
44+
onPressed: context.maybePop,
45+
icon: const Icon(EcommerceIcons.arrow),
5646
),
57-
const Gap(24.0),
58-
],
59-
),
60-
],
47+
Row(
48+
mainAxisSize: MainAxisSize.min,
49+
children: [
50+
if (isInDashboard) const Gap(24.0),
51+
Text(
52+
title,
53+
style: titleStyle ?? context.h2,
54+
),
55+
],
56+
),
57+
Row(
58+
children: [
59+
IconButton(
60+
padding: const EdgeInsets.all(14),
61+
onPressed:
62+
onNotificationTap ?? () => context.pushRoute(const NotificationsRoute()),
63+
icon: const Icon(EcommerceIcons.bell),
64+
),
65+
const Gap(24.0),
66+
],
67+
),
68+
],
69+
),
6170
),
6271
),
6372
);

0 commit comments

Comments
 (0)