diff --git a/.fvmrc b/.fvmrc index c0ef54d98..3135e2b9e 100644 --- a/.fvmrc +++ b/.fvmrc @@ -1,3 +1,3 @@ { - "flutter": "3.32.0" + "flutter": "3.32.2" } \ No newline at end of file diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 0a6532039..f54b3f5e5 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -5,7 +5,7 @@ on: branches: [main] env: - FLUTTER_VERSION: '3.32.0' + FLUTTER_VERSION: '3.32.2' jobs: analyze: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 979c98c1a..67f245e4e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,7 +7,7 @@ on: workflow_dispatch: env: - FLUTTER_VERSION: '3.32.0' + FLUTTER_VERSION: '3.32.2' jobs: release_with_macos_dmg: diff --git a/lib/common/view/common_control_panel.dart b/lib/common/view/common_control_panel.dart new file mode 100644 index 000000000..467f42d28 --- /dev/null +++ b/lib/common/view/common_control_panel.dart @@ -0,0 +1,36 @@ +import 'package:flutter/material.dart'; +import 'package:yaru/yaru.dart'; + +import 'icons.dart'; +import 'theme.dart'; + +class CommonControlPanel extends StatelessWidget { + const CommonControlPanel({ + super.key, + required this.labels, + required this.isSelected, + required this.onSelected, + }); + + final List labels; + final List isSelected; + final void Function(int index)? onSelected; + + @override + Widget build(BuildContext context) => Align( + alignment: Alignment.center, + child: YaruChoiceChipBar( + clearOnSelect: false, + selectedFirst: false, + showCheckMarks: false, + style: YaruChoiceChipBarStyle.stack, + shrinkWrap: true, + goNextIcon: Icon(Iconz.goNext), + goPreviousIcon: Icon(Iconz.goBack), + chipHeight: chipHeight, + labels: labels, + isSelected: isSelected, + onSelected: onSelected, + ), + ); +} diff --git a/lib/common/view/sliver_audio_tile_list.dart b/lib/common/view/sliver_audio_tile_list.dart index 220eb0eda..85109ae03 100644 --- a/lib/common/view/sliver_audio_tile_list.dart +++ b/lib/common/view/sliver_audio_tile_list.dart @@ -16,6 +16,7 @@ class SliverAudioTileList extends StatelessWidget with WatchItMixin { this.onSubTitleTab, required this.audioPageType, this.selectedColor, + this.constraints, }); final List