mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-07-05 00:30:19 +08:00
@@ -1,6 +1,6 @@
|
||||
// edit from package:dio_cookie_manager
|
||||
import 'dart:async';
|
||||
import 'dart:io';
|
||||
|
||||
import 'dart:io' show Cookie, HttpHeaders;
|
||||
|
||||
import 'package:PiliPlus/http/api.dart';
|
||||
import 'package:PiliPlus/http/constants.dart';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import 'dart:convert';
|
||||
import 'dart:convert' show base64Encode;
|
||||
|
||||
import 'package:PiliPlus/common/constants.dart';
|
||||
import 'package:PiliPlus/grpc/bilibili/metadata.pb.dart';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import 'dart:async';
|
||||
import 'dart:async' show StreamSubscription;
|
||||
|
||||
import 'package:PiliPlus/common/widgets/scaffold.dart';
|
||||
import 'package:PiliPlus/common/widgets/view_safe_area.dart';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import 'dart:convert';
|
||||
import 'dart:io';
|
||||
import 'dart:convert' show jsonEncode;
|
||||
import 'dart:io' show RandomAccessFile;
|
||||
|
||||
import 'package:PiliPlus/services/logger.dart' show LoggerUtils;
|
||||
import 'package:catcher_2/model/platform_type.dart';
|
||||
@@ -16,7 +16,7 @@ class JsonFileHandler extends ReportHandler {
|
||||
final bool handleWhenRejected;
|
||||
|
||||
static Future<RandomAccessFile> _future = LoggerUtils.getLogsPath()
|
||||
.then((file) => file.open(mode: FileMode.writeOnlyAppend))
|
||||
.then((file) => file.open(mode: .writeOnlyAppend))
|
||||
.then((raf) => raf.writeFrom(const []))
|
||||
.then(_flush);
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import 'dart:async';
|
||||
import 'dart:io';
|
||||
import 'dart:async' show FutureOr;
|
||||
import 'dart:io' show Platform;
|
||||
|
||||
import 'package:flutter/foundation.dart' show VoidCallback;
|
||||
import 'package:permission_handler_platform_interface/permission_handler_platform_interface.dart';
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import 'dart:async';
|
||||
import 'dart:convert';
|
||||
import 'dart:math';
|
||||
import 'dart:convert' show jsonEncode;
|
||||
import 'dart:math' as math;
|
||||
|
||||
import 'package:PiliPlus/common/widgets/dialog/dialog.dart';
|
||||
import 'package:PiliPlus/grpc/bilibili/im/type.pbenum.dart' show MsgType;
|
||||
@@ -202,7 +201,7 @@ abstract final class RequestUtils {
|
||||
useSafeArea: true,
|
||||
isScrollControlled: true,
|
||||
constraints: BoxConstraints(
|
||||
maxWidth: min(640, context.mediaQueryShortestSide),
|
||||
maxWidth: math.min(640, context.mediaQueryShortestSide),
|
||||
),
|
||||
builder: (BuildContext context) {
|
||||
final maxChildSize =
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import 'dart:convert';
|
||||
import 'dart:convert' show jsonDecode;
|
||||
|
||||
import 'package:PiliPlus/models/model_owner.dart';
|
||||
import 'package:PiliPlus/models/user/danmaku_rule_adapter.dart';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import 'dart:io';
|
||||
import 'dart:math' show pow, sqrt;
|
||||
import 'dart:io' show Platform;
|
||||
import 'dart:math' as math;
|
||||
|
||||
import 'package:PiliPlus/common/widgets/gesture/horizontal_drag_gesture_recognizer.dart'
|
||||
show deviceTouchSlop;
|
||||
@@ -87,7 +87,7 @@ abstract final class Pref {
|
||||
|
||||
static List<double> get springDescription => List<double>.from(
|
||||
_setting.get(SettingBoxKey.springDescription) ??
|
||||
[0.5, 100.0, 2.2 * sqrt(50)], // [mass, stiffness, damping]
|
||||
[0.5, 100.0, 2.2 * math.sqrt(50)], // [mass, stiffness, damping]
|
||||
);
|
||||
|
||||
static List<double> get speedList => List<double>.from(
|
||||
@@ -338,7 +338,7 @@ abstract final class Pref {
|
||||
_setting.get(SettingBoxKey.showPgcTimeline, defaultValue: true);
|
||||
|
||||
static num get maxCacheSize =>
|
||||
_setting.get(SettingBoxKey.maxCacheSize) ?? pow(1024, 3);
|
||||
_setting.get(SettingBoxKey.maxCacheSize) ?? math.pow(1024, 3);
|
||||
|
||||
static bool get horizontalScreen {
|
||||
bool? horizontalScreen = _setting.get(SettingBoxKey.horizontalScreen);
|
||||
|
||||
@@ -2,8 +2,9 @@
|
||||
// https://github.com/SocialSisterYi/bilibili-API-collect/blob/master/docs/misc/sign/wbi.md
|
||||
// import md5 from 'md5'
|
||||
// import axios from 'axios'
|
||||
import 'dart:async';
|
||||
import 'dart:convert';
|
||||
|
||||
import 'dart:async' show FutureOr;
|
||||
import 'dart:convert' show utf8;
|
||||
|
||||
import 'package:PiliPlus/http/api.dart';
|
||||
import 'package:PiliPlus/http/init.dart';
|
||||
|
||||
Reference in New Issue
Block a user