mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-10 04:54:49 +08:00
@@ -382,10 +382,10 @@ abstract final class UserHttp {
|
||||
}
|
||||
}
|
||||
|
||||
static Future<LoadingState<double?>> getCoin() async {
|
||||
static Future<LoadingState<double>> getCoin() async {
|
||||
final res = await Request.get(Api.getCoin);
|
||||
if (res.data['code'] == 0) {
|
||||
return Success((res.data['data']?['money'] as num?)?.toDouble());
|
||||
return Success((res.data['data']?['money'] as num?)?.toDouble() ?? 0.0);
|
||||
} else {
|
||||
return Error(res.data['message']);
|
||||
}
|
||||
|
||||
@@ -92,7 +92,7 @@ class UserInfoData {
|
||||
: null;
|
||||
mid = json['mid'];
|
||||
mobileVerified = json['mobile_verified'];
|
||||
money = json['money'] is int ? json['money'].toDouble() : json['money'];
|
||||
money = (json['money'] as num?)?.toDouble() ?? 0.0;
|
||||
moral = json['moral'];
|
||||
official = json['official'];
|
||||
officialVerify = json['officialVerify'];
|
||||
|
||||
@@ -131,7 +131,7 @@ class _DynTopicPageState extends State<DynTopicPage> with DynMixin {
|
||||
),
|
||||
),
|
||||
Positioned(
|
||||
right: kFloatingActionButtonMargin,
|
||||
right: padding.right + kFloatingActionButtonMargin,
|
||||
bottom: padding.bottom + kFloatingActionButtonMargin,
|
||||
child: FloatingActionButton.extended(
|
||||
onPressed: () {
|
||||
|
||||
@@ -36,7 +36,7 @@ class _FavNoteChildPageState extends State<FavNoteChildPage>
|
||||
Widget build(BuildContext context) {
|
||||
super.build(context);
|
||||
final theme = Theme.of(context);
|
||||
final padding = MediaQuery.viewPaddingOf(context);
|
||||
final padding = MediaQuery.viewPaddingOf(context).copyWith(top: 0);
|
||||
final bottomH = 50 + padding.bottom;
|
||||
return Stack(
|
||||
clipBehavior: Clip.none,
|
||||
|
||||
@@ -42,7 +42,7 @@ class _FavPgcChildPageState extends State<FavPgcChildPage>
|
||||
Widget build(BuildContext context) {
|
||||
super.build(context);
|
||||
final theme = Theme.of(context);
|
||||
final padding = MediaQuery.viewPaddingOf(context);
|
||||
final padding = MediaQuery.viewPaddingOf(context).copyWith(top: 0);
|
||||
final bottomH = 50 + padding.bottom;
|
||||
return Stack(
|
||||
clipBehavior: Clip.none,
|
||||
|
||||
@@ -88,7 +88,7 @@ class _FavDetailPageState extends State<FavDetailPage> with GridMixin {
|
||||
),
|
||||
),
|
||||
Positioned(
|
||||
right: 0,
|
||||
right: padding.right,
|
||||
bottom: padding.bottom + kFloatingActionButtonMargin,
|
||||
child: Padding(
|
||||
padding: const .only(right: kFloatingActionButtonMargin),
|
||||
|
||||
@@ -62,6 +62,7 @@ class _LaterPageState extends State<LaterPage>
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final padding = MediaQuery.viewPaddingOf(context);
|
||||
return Obx(
|
||||
() {
|
||||
final enableMultiSelect = _baseCtr.enableMultiSelect.value;
|
||||
@@ -119,10 +120,8 @@ class _LaterPageState extends State<LaterPage>
|
||||
),
|
||||
),
|
||||
Positioned(
|
||||
right: 0,
|
||||
bottom:
|
||||
MediaQuery.viewPaddingOf(context).bottom +
|
||||
kFloatingActionButtonMargin,
|
||||
right: padding.right,
|
||||
bottom: padding.bottom + kFloatingActionButtonMargin,
|
||||
child: Padding(
|
||||
padding: const .only(right: kFloatingActionButtonMargin),
|
||||
child: Obx(
|
||||
|
||||
@@ -7,6 +7,7 @@ import 'package:PiliPlus/plugin/pl_player/widgets/common_btn.dart';
|
||||
import 'package:PiliPlus/plugin/pl_player/widgets/play_pause_btn.dart';
|
||||
import 'package:PiliPlus/utils/storage.dart';
|
||||
import 'package:PiliPlus/utils/storage_key.dart';
|
||||
import 'package:flutter/foundation.dart' show kDebugMode;
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
|
||||
import 'package:get/get.dart';
|
||||
@@ -69,7 +70,7 @@ class _BottomControlState extends State<BottomControl> with HeaderMixin {
|
||||
color: Colors.white,
|
||||
),
|
||||
onTap: () {
|
||||
if (liveRoomCtr.isLogin) {
|
||||
if (kDebugMode || liveRoomCtr.isLogin) {
|
||||
Get.toNamed(
|
||||
'/liveDmBlockPage',
|
||||
parameters: {
|
||||
|
||||
@@ -101,7 +101,7 @@ class _MainReplyPageState extends State<MainReplyPage>
|
||||
position: fabAnimation,
|
||||
child: Padding(
|
||||
padding: .only(
|
||||
right: kFloatingActionButtonMargin,
|
||||
right: padding.right + kFloatingActionButtonMargin,
|
||||
bottom: padding.bottom + kFloatingActionButtonMargin,
|
||||
),
|
||||
child: FloatingActionButton(
|
||||
|
||||
@@ -66,7 +66,7 @@ class _MatchInfoPageState extends CommonDynPageState<MatchInfoPage> {
|
||||
position: fabAnimation,
|
||||
child: Padding(
|
||||
padding: .only(
|
||||
right: kFloatingActionButtonMargin,
|
||||
right: padding.right + kFloatingActionButtonMargin,
|
||||
bottom: padding.bottom + kFloatingActionButtonMargin,
|
||||
),
|
||||
child: replyButton,
|
||||
|
||||
@@ -778,7 +778,8 @@ class UserInfoCard extends StatelessWidget {
|
||||
crossAxisAlignment: .start,
|
||||
children: [
|
||||
// _buildHeader(context),
|
||||
const SizedBox(height: kToolbarHeight),
|
||||
// const SizedBox(height: kToolbarHeight),
|
||||
const SizedBox(height: 30),
|
||||
Row(
|
||||
children: [
|
||||
const SizedBox(width: 20),
|
||||
|
||||
Reference in New Issue
Block a user