enable new slider/progress

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-05-23 11:54:57 +08:00
parent 7fa6d81dc8
commit b1666095a6
4 changed files with 301 additions and 322 deletions

View File

@@ -31,14 +31,7 @@ class _FavPanelState extends State<FavPanel> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
final theme = Theme.of(context); final theme = Theme.of(context);
return NotificationListener<DraggableScrollableNotification>( return Column(
onNotification: (notification) {
if (notification.extent <= 1e-5) {
Get.back();
}
return false;
},
child: Column(
children: [ children: [
AppBar( AppBar(
backgroundColor: Colors.transparent, backgroundColor: Colors.transparent,
@@ -166,8 +159,8 @@ class _FavPanelState extends State<FavPanel> {
TextButton( TextButton(
onPressed: () => Get.back(), onPressed: () => Get.back(),
style: TextButton.styleFrom( style: TextButton.styleFrom(
padding: const EdgeInsets.symmetric( padding:
horizontal: 20, vertical: 10), const EdgeInsets.symmetric(horizontal: 20, vertical: 10),
visualDensity: const VisualDensity( visualDensity: const VisualDensity(
horizontal: -1, horizontal: -1,
vertical: -2, vertical: -2,
@@ -184,8 +177,8 @@ class _FavPanelState extends State<FavPanel> {
widget.ctr.actionFavVideo(); widget.ctr.actionFavVideo();
}, },
style: FilledButton.styleFrom( style: FilledButton.styleFrom(
padding: const EdgeInsets.symmetric( padding:
horizontal: 20, vertical: 10), const EdgeInsets.symmetric(horizontal: 20, vertical: 10),
visualDensity: const VisualDensity( visualDensity: const VisualDensity(
horizontal: -1, horizontal: -1,
vertical: -2, vertical: -2,
@@ -197,7 +190,6 @@ class _FavPanelState extends State<FavPanel> {
), ),
), ),
], ],
),
); );
} }
} }

View File

@@ -69,14 +69,7 @@ class _GroupPanelState extends State<GroupPanel> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
final theme = Theme.of(context); final theme = Theme.of(context);
return NotificationListener<DraggableScrollableNotification>( return Column(
onNotification: (notification) {
if (notification.extent <= 1e-5) {
Get.back();
}
return false;
},
child: Column(
children: <Widget>[ children: <Widget>[
AppBar( AppBar(
backgroundColor: Colors.transparent, backgroundColor: Colors.transparent,
@@ -110,8 +103,7 @@ class _GroupPanelState extends State<GroupPanel> {
itemBuilder: (context, index) { itemBuilder: (context, index) {
return ListTile( return ListTile(
onTap: () { onTap: () {
tagsList[index].checked = tagsList[index].checked = !tagsList[index].checked!;
!tagsList[index].checked!;
showDefaultBtn = showDefaultBtn =
!tagsList.any((e) => e.checked == true); !tagsList.any((e) => e.checked == true);
setState(() {}); setState(() {});
@@ -185,7 +177,6 @@ class _GroupPanelState extends State<GroupPanel> {
), ),
), ),
], ],
),
); );
} }
} }

View File

@@ -157,14 +157,7 @@ class _LiveAreaDetailPageState extends State<LiveAreaDetailPage> {
expand: false, expand: false,
snapSizes: const [1], snapSizes: const [1],
builder: (_, scrollController) { builder: (_, scrollController) {
return NotificationListener<DraggableScrollableNotification>( return Column(
onNotification: (notification) {
if (notification.extent <= 1e-5) {
Get.back();
}
return false;
},
child: Column(
children: [ children: [
AppBar( AppBar(
centerTitle: true, centerTitle: true,
@@ -207,7 +200,6 @@ class _LiveAreaDetailPageState extends State<LiveAreaDetailPage> {
), ),
), ),
], ],
),
); );
}, },
); );

View File

@@ -82,6 +82,8 @@ class ThemeUtils {
shadowColor: Colors.transparent, shadowColor: Colors.transparent,
), ),
progressIndicatorTheme: ProgressIndicatorThemeData( progressIndicatorTheme: ProgressIndicatorThemeData(
// ignore: deprecated_member_use
year2023: false,
refreshBackgroundColor: colorScheme.onSecondary, refreshBackgroundColor: colorScheme.onSecondary,
), ),
dialogTheme: DialogThemeData( dialogTheme: DialogThemeData(
@@ -101,6 +103,8 @@ class ThemeUtils {
), ),
), ),
), ),
// ignore: deprecated_member_use
sliderTheme: const SliderThemeData(year2023: false),
); );
if (isDark && GStorage.isPureBlackTheme) { if (isDark && GStorage.isPureBlackTheme) {
themeData = darkenTheme(themeData); themeData = darkenTheme(themeData);