Skip to content

Commit

Permalink
Add pack service
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeDoctorDE committed Apr 25, 2024
1 parent 2a12f9a commit 8309afb
Show file tree
Hide file tree
Showing 12 changed files with 162 additions and 104 deletions.
24 changes: 16 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
name: Flutter build

on: [push, release, pull_request]
on:
push:
branches:
- "*"
tags:
- stable
- nightly
release:
pull_request:
jobs:
build-apk:
concurrency: ci-${{ github.ref }}
Expand Down Expand Up @@ -30,7 +38,7 @@ jobs:
flutter pub get
flutter doctor -v
- name: Build nessesary files
working-directory: /
working-directory: ./
run: |
dart run tools/generate.dart
- name: Import files
Expand Down Expand Up @@ -112,7 +120,7 @@ jobs:
flutter pub get
flutter doctor -v
- name: Build nessesary files
working-directory: /
working-directory: ./
run: |
dart run tools/generate.dart
- name: 🏭 Build nightly
Expand Down Expand Up @@ -195,7 +203,7 @@ jobs:
flutter pub get
flutter doctor -v
- name: Build nessesary files
working-directory: /
working-directory: ./
run: |
dart run tools/generate.dart
- name: 🏭 Build nightly
Expand Down Expand Up @@ -310,7 +318,7 @@ jobs:
flutter pub get
flutter doctor -v
- name: Build nessesary files
working-directory: /
working-directory: ./
run: |
dart run tools/generate.dart
- name: 🏭 Build nightly
Expand Down Expand Up @@ -381,7 +389,7 @@ jobs:
flutter pub get
flutter doctor -v
- name: Build nessesary files
working-directory: /
working-directory: ./
run: |
dart run tools/generate.dart
- name: 🏭 Build
Expand Down Expand Up @@ -435,7 +443,7 @@ jobs:
flutter pub get
flutter doctor -v
- name: Build nessesary files
working-directory: /
working-directory: ./
run: |
dart run tools/generate.dart
- name: 🏭 Build
Expand Down Expand Up @@ -479,7 +487,7 @@ jobs:
# path: ${{ steps.build.outputs.snap }}
deploy:
runs-on: ubuntu-22.04
if: github.event_name == 'push'
if: github.event_name != 'pull_request'
outputs:
version: ${{ steps.setup.outputs.QECK_VERSION }}
build_number: ${{ steps.setup.outputs.QECK_BUILD_NUMBER }}
Expand Down
4 changes: 3 additions & 1 deletion app/lib/l10n/app_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -76,5 +76,7 @@
"disconnect": "Disconnect",
"url": "URL",
"official": "Official",
"community": "Community"
"community": "Community",
"systemLocale": "System locale",
"packs": "Packs"
}
2 changes: 1 addition & 1 deletion app/lib/logic/connection/client.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions app/lib/logic/connection/logic.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 17 additions & 17 deletions app/lib/logic/connection/server.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 7 additions & 6 deletions app/lib/logic/state.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 31 additions & 0 deletions app/lib/pages/settings/packs.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:qeck/cubits/settings.dart';
import 'package:qeck/widgets/window.dart';

class PacksSettingsPage extends StatelessWidget {
final bool inView;

const PacksSettingsPage({
super.key,
this.inView = false,
});

@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: inView ? Colors.transparent : null,
appBar: WindowTitleBar(
inView: inView,
backgroundColor: inView ? Colors.transparent : null,
title: Text(AppLocalizations.of(context).packs),
),
body: BlocBuilder<SettingsCubit, QeckSettings>(
builder: (context, state) {
return ListView(children: const []);
},
),
);
}
}
Loading

0 comments on commit 8309afb

Please sign in to comment.