mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-18 16:16:14 +08:00
enable new slider/progress
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -31,14 +31,7 @@ class _FavPanelState extends State<FavPanel> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final theme = Theme.of(context);
|
||||
return NotificationListener<DraggableScrollableNotification>(
|
||||
onNotification: (notification) {
|
||||
if (notification.extent <= 1e-5) {
|
||||
Get.back();
|
||||
}
|
||||
return false;
|
||||
},
|
||||
child: Column(
|
||||
return Column(
|
||||
children: [
|
||||
AppBar(
|
||||
backgroundColor: Colors.transparent,
|
||||
@@ -166,8 +159,8 @@ class _FavPanelState extends State<FavPanel> {
|
||||
TextButton(
|
||||
onPressed: () => Get.back(),
|
||||
style: TextButton.styleFrom(
|
||||
padding: const EdgeInsets.symmetric(
|
||||
horizontal: 20, vertical: 10),
|
||||
padding:
|
||||
const EdgeInsets.symmetric(horizontal: 20, vertical: 10),
|
||||
visualDensity: const VisualDensity(
|
||||
horizontal: -1,
|
||||
vertical: -2,
|
||||
@@ -184,8 +177,8 @@ class _FavPanelState extends State<FavPanel> {
|
||||
widget.ctr.actionFavVideo();
|
||||
},
|
||||
style: FilledButton.styleFrom(
|
||||
padding: const EdgeInsets.symmetric(
|
||||
horizontal: 20, vertical: 10),
|
||||
padding:
|
||||
const EdgeInsets.symmetric(horizontal: 20, vertical: 10),
|
||||
visualDensity: const VisualDensity(
|
||||
horizontal: -1,
|
||||
vertical: -2,
|
||||
@@ -197,7 +190,6 @@ class _FavPanelState extends State<FavPanel> {
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -69,14 +69,7 @@ class _GroupPanelState extends State<GroupPanel> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final theme = Theme.of(context);
|
||||
return NotificationListener<DraggableScrollableNotification>(
|
||||
onNotification: (notification) {
|
||||
if (notification.extent <= 1e-5) {
|
||||
Get.back();
|
||||
}
|
||||
return false;
|
||||
},
|
||||
child: Column(
|
||||
return Column(
|
||||
children: <Widget>[
|
||||
AppBar(
|
||||
backgroundColor: Colors.transparent,
|
||||
@@ -110,8 +103,7 @@ class _GroupPanelState extends State<GroupPanel> {
|
||||
itemBuilder: (context, index) {
|
||||
return ListTile(
|
||||
onTap: () {
|
||||
tagsList[index].checked =
|
||||
!tagsList[index].checked!;
|
||||
tagsList[index].checked = !tagsList[index].checked!;
|
||||
showDefaultBtn =
|
||||
!tagsList.any((e) => e.checked == true);
|
||||
setState(() {});
|
||||
@@ -185,7 +177,6 @@ class _GroupPanelState extends State<GroupPanel> {
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -157,14 +157,7 @@ class _LiveAreaDetailPageState extends State<LiveAreaDetailPage> {
|
||||
expand: false,
|
||||
snapSizes: const [1],
|
||||
builder: (_, scrollController) {
|
||||
return NotificationListener<DraggableScrollableNotification>(
|
||||
onNotification: (notification) {
|
||||
if (notification.extent <= 1e-5) {
|
||||
Get.back();
|
||||
}
|
||||
return false;
|
||||
},
|
||||
child: Column(
|
||||
return Column(
|
||||
children: [
|
||||
AppBar(
|
||||
centerTitle: true,
|
||||
@@ -207,7 +200,6 @@ class _LiveAreaDetailPageState extends State<LiveAreaDetailPage> {
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
},
|
||||
);
|
||||
|
||||
@@ -82,6 +82,8 @@ class ThemeUtils {
|
||||
shadowColor: Colors.transparent,
|
||||
),
|
||||
progressIndicatorTheme: ProgressIndicatorThemeData(
|
||||
// ignore: deprecated_member_use
|
||||
year2023: false,
|
||||
refreshBackgroundColor: colorScheme.onSecondary,
|
||||
),
|
||||
dialogTheme: DialogThemeData(
|
||||
@@ -101,6 +103,8 @@ class ThemeUtils {
|
||||
),
|
||||
),
|
||||
),
|
||||
// ignore: deprecated_member_use
|
||||
sliderTheme: const SliderThemeData(year2023: false),
|
||||
);
|
||||
if (isDark && GStorage.isPureBlackTheme) {
|
||||
themeData = darkenTheme(themeData);
|
||||
|
||||
Reference in New Issue
Block a user