From 35c2c3e03a0f41250a4071c85785b06955120653 Mon Sep 17 00:00:00 2001 From: luke358 Date: Sun, 25 Aug 2024 20:55:38 +0800 Subject: [PATCH] chore: release 1.0.25 --- lib/pages/add_subscription.dart | 4 +++- lib/widgets/speed_slider.dart | 6 +++--- pubspec.yaml | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/lib/pages/add_subscription.dart b/lib/pages/add_subscription.dart index becf532..fea1cd9 100644 --- a/lib/pages/add_subscription.dart +++ b/lib/pages/add_subscription.dart @@ -4,6 +4,8 @@ import 'package:podcasts_pro/models/subscription.dart'; import 'package:podcasts_pro/pages/main/subscription_controller.dart'; class AddSubscriptionPage extends StatefulWidget { + const AddSubscriptionPage({super.key}); + @override _AddSubscriptionPageState createState() => _AddSubscriptionPageState(); } @@ -66,7 +68,7 @@ class _AddSubscriptionPageState extends State { @override Widget build(BuildContext context) { return Scaffold( - appBar: AppBar(title: Text('Add Subscription')), + appBar: AppBar(title: const Text('添加订阅')), body: Padding( padding: const EdgeInsets.all(16.0), child: Column( diff --git a/lib/widgets/speed_slider.dart b/lib/widgets/speed_slider.dart index 2581612..a38d097 100644 --- a/lib/widgets/speed_slider.dart +++ b/lib/widgets/speed_slider.dart @@ -101,10 +101,10 @@ class SpeedSlider extends StatelessWidget { final ValueChanged onSpeedChanged; const SpeedSlider({ - Key? key, + super.key, required this.initialSpeed, required this.onSpeedChanged, - }) : super(key: key); + }); @override Widget build(BuildContext context) { @@ -150,7 +150,7 @@ class SpeedSlider extends StatelessWidget { Widget _buildTickLabel(String label) { return Text( label, - style: TextStyle(fontSize: 12, color: Colors.grey), + style: const TextStyle(fontSize: 12, color: Colors.grey), ); } } diff --git a/pubspec.yaml b/pubspec.yaml index cb7fa89..becfebc 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -2,7 +2,7 @@ name: podcasts_pro description: "A project to listen to podcasts through RSS subscription links." publish_to: 'none' # Remove this line if you wish to publish to pub.dev -version: 1.0.24 +version: 1.0.25 environment: sdk: '>=3.4.3 <4.0.0'