mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-07-10 03:00:13 +08:00
@@ -82,9 +82,9 @@ class ApiInterceptor extends Interceptor {
|
||||
}
|
||||
|
||||
static Future<String> checkConnect() async {
|
||||
final ConnectivityResult connectivityResult =
|
||||
final List<ConnectivityResult> connectivityResult =
|
||||
await Connectivity().checkConnectivity();
|
||||
switch (connectivityResult) {
|
||||
switch (connectivityResult.first) {
|
||||
case ConnectivityResult.mobile:
|
||||
return '流量';
|
||||
case ConnectivityResult.wifi:
|
||||
|
||||
@@ -208,12 +208,9 @@ class MorePanel extends StatelessWidget {
|
||||
style: Theme.of(context).textTheme.titleSmall,
|
||||
),
|
||||
leading: const Icon(Icons.share_outlined, size: 19),
|
||||
onTap: () async {
|
||||
onTap: () {
|
||||
Get.back();
|
||||
var result = await Share.share(
|
||||
'${HttpString.dynamicShareBaseUrl}/${item.idStr}')
|
||||
.whenComplete(() {});
|
||||
return result;
|
||||
Share.share('${HttpString.dynamicShareBaseUrl}/${item.idStr}');
|
||||
},
|
||||
minLeadingWidth: 0,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user