Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gyorsmenü #37

Closed
wants to merge 36 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
a0c1830
Create analyze workflow
RedyAu Jan 16, 2023
050a5c5
Add testing
RedyAu Jan 16, 2023
cb7c6f8
Run on release branch
RedyAu Jan 16, 2023
f4f019f
Gyorsmenü ablak - témabeállítások
RedyAu Feb 6, 2023
8c84343
Tooltipek hozzáadása alsó menüsorhoz
RedyAu Feb 6, 2023
c978578
Kapcsolódó énekek hozzáadása
RedyAu Feb 6, 2023
9fd9ec9
Éneklista betöltésének szépítése
RedyAu Feb 7, 2023
9295591
Gyorsbeállítások - Szakaszcímek, kapcsolódó énekek
RedyAu Feb 7, 2023
2387283
Linkek hozzáadása adat jsonhoz
RedyAu Feb 7, 2023
0fabb5e
Extra paraméter a Gyorsmenü híváshoz
RedyAu Feb 7, 2023
2e8df97
Globális dallista - HACK
RedyAu Feb 7, 2023
ef93a16
Kapcsolódó cím csak akkor jelenik meg, ha van kapcsolódó ének
RedyAu Feb 7, 2023
bc08b0f
Beállítások képernyő eltávolítása
RedyAu Feb 7, 2023
60342ee
Énekeskönyvváltás a főoldalon
RedyAu Feb 7, 2023
e8b1e07
2.4.0+14
RedyAu Feb 8, 2023
770cc4f
Pixelugrás javítása appbarban
RedyAu Feb 8, 2023
f4515d5
Make immutable
RedyAu Feb 8, 2023
4285b96
settings_provider: Future visszatérési érték, hogy kivárható legyen a…
RedyAu Feb 8, 2023
93e4d7b
Fix infinite change notifications
RedyAu Feb 8, 2023
a99dc5c
Fix info
RedyAu Feb 8, 2023
9ae93a7
Remove context async gap
RedyAu Feb 8, 2023
d4d14f3
Aposztróf idézőjel helyett
RedyAu Feb 8, 2023
e316120
"links" kulcs hiányának kezelése
RedyAu Feb 10, 2023
808bff4
Üres linklisták eltávolítva
RedyAu Feb 10, 2023
8c9b0f7
add plan for refactor
RedyAu Feb 17, 2023
7d36367
Beállítások a kezdőlapon is
boobaa Feb 27, 2023
c2e5d03
Kapcsolódó énekre navigáció javítva
boobaa Feb 27, 2023
06d5488
empty commit to trigger new checks
RedyAu Feb 27, 2023
6c92f6d
another empty commit to trigger new checks
RedyAu Feb 27, 2023
1aaff3c
Kódkonzisztencia javítása
boobaa Mar 3, 2023
462a867
MySongPage: nincs többé songsInBook paraméter
boobaa Mar 3, 2023
2939e16
MyGotoSongForm: nincs többé songs paraméter
boobaa Mar 3, 2023
e7a5a45
MySearchSongPage: nincs többé songs paraméter
boobaa Mar 3, 2023
e86724b
Nincs többé globalSongs hack
boobaa Mar 4, 2023
4030064
song_page: appbar: vissza gomb helyett home gomb
RedyAu Mar 6, 2023
832c45a
Komment fix
boobaa Mar 6, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions lib/quick_settings_dialog.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
import 'package:enekeskonyv/settings_provider.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';

Widget quickSettingsDialog(BuildContext context) => Consumer<SettingsProvider>(
RedyAu marked this conversation as resolved.
Show resolved Hide resolved
builder: (context, provider, child) {
return Dialog(
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
ListTile(
title: const Text('Alkalmazás témája'),
trailing: DropdownButton<ThemeMode>(
value: provider.appThemeMode,
items: ThemeMode.values
.map((brightnessSetting) => DropdownMenuItem(
value: brightnessSetting,
child: Text(getThemeModeName(brightnessSetting)),
))
.toList(),
onChanged: ((value) {
provider.changeAppBrightnessSetting(
value ?? SettingsProvider.defaultAppThemeMode);
}),
),
),
ListTile(
title: const Text('Kotta témája'),
trailing: DropdownButton<ThemeMode>(
value: provider.sheetThemeMode,
items: ThemeMode.values
.map((brightnessSetting) => DropdownMenuItem(
value: brightnessSetting,
child: Text(getThemeModeName(brightnessSetting)),
))
.toList(),
onChanged: ((value) {
provider.changeSheetBrightnessSetting(
value ?? SettingsProvider.defaultSheetThemeMode);
}),
),
),
],
),
);
},
);
14 changes: 14 additions & 0 deletions lib/song_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import 'package:wakelock/wakelock.dart';
import 'settings_provider.dart';
import 'util.dart';

import 'quick_settings_dialog.dart';

class MySongPage extends StatefulWidget {
const MySongPage(
{Key? key,
Expand Down Expand Up @@ -314,6 +316,18 @@ class _MySongPageState extends State<MySongPage> {
disabledColor: ThemeData.dark().highlightColor,
key: const Key('_MySongPageState.IconButton.textIncrease'),
));
}
controllerButtons.add(IconButton(
icon: Icon(Icons.menu),
tooltip: "Gyorsmenü",
onPressed: () {
showDialog(
context: context,
builder: (context) => quickSettingsDialog(context),
);
},
));
if (widget.settingsProvider.scoreDisplay != ScoreDisplay.all) {
controllerButtons.add(IconButton(
onPressed: widget.settingsProvider.fontSize > 10.0
? () => {
Expand Down