Skip to content

Commit

Permalink
Merge branch 'fix-customspeed-dynamic-not-double'
Browse files Browse the repository at this point in the history
  • Loading branch information
orz12 committed Jan 14, 2024
2 parents a8c5e38 + 6654094 commit c4b4cad
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion lib/common/widgets/content_container.dart
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class ContentContainer extends StatelessWidget {
child: contentWidget!,
)
else
Spacer(),
const Spacer(),
if (bottomWidget != null) bottomWidget!,
],
),
Expand Down
2 changes: 1 addition & 1 deletion lib/http/html.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class HtmlHttp {
Match match = regex.firstMatch(response.data)!;
String matchedString = match.group(0)!;
response = await Request().get(
'https:$matchedString' + '/',
'https:$matchedString/',
extra: {'ua': 'pc'},
);
}
Expand Down
2 changes: 1 addition & 1 deletion lib/http/init.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import 'package:cookie_jar/cookie_jar.dart';
import 'package:dio/dio.dart';
import 'package:dio/io.dart';
import 'package:dio_cookie_manager/dio_cookie_manager.dart';
import 'package:dio_http2_adapter/dio_http2_adapter.dart';
// import 'package:dio_http2_adapter/dio_http2_adapter.dart';
import 'package:hive/hive.dart';
import '../utils/storage.dart';
import '../utils/utils.dart';
Expand Down
4 changes: 2 additions & 2 deletions lib/pages/whisper/view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -210,11 +210,11 @@ class _WhisperPageState extends State<WhisperPage> {
);
} else {
// 请求错误
return SizedBox();
return const SizedBox();
}
} else {
// 骨架屏
return SizedBox();
return const SizedBox();
}
},
)
Expand Down
5 changes: 2 additions & 3 deletions lib/plugin/pl_player/controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -289,9 +289,8 @@ class PlPlayerController {
_longPressSpeed.value = videoStorage
.get(VideoBoxKey.longPressSpeedDefault, defaultValue: 2.0);
}
final List<double> speedsListTemp = videoStorage
.get(VideoBoxKey.customSpeedsList, defaultValue: <double>[]);
speedsList = List<double>.from(speedsListTemp);
speedsList = List<double>.from(videoStorage
.get(VideoBoxKey.customSpeedsList, defaultValue: <double>[]));
for (final PlaySpeed i in PlaySpeed.values) {
speedsList.add(i.value);
}
Expand Down
2 changes: 1 addition & 1 deletion lib/utils/wbi_sign.dart
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class WbiSign {
String getMixinKey(String orig) {
String temp = '';
for (int i = 0; i < mixinKeyEncTab.length; i++) {
temp += orig.split('')[mixinKeyEncTab[i] as int];
temp += orig.split('')[mixinKeyEncTab[i]];
}
return temp.substring(0, 32);
}
Expand Down

0 comments on commit c4b4cad

Please sign in to comment.