mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-07-15 13:50:14 +08:00
opt dyn panel
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -105,11 +105,11 @@ class _MemberShopState extends State<MemberShop>
|
||||
child: Center(
|
||||
child: FilledButton.tonal(
|
||||
onPressed: () {
|
||||
if (_controller.clickUrl case String clickUrl) {
|
||||
if (_controller.clickUrl case final clickUrl?) {
|
||||
final url = Uri.parse(
|
||||
clickUrl,
|
||||
).queryParameters['url'];
|
||||
if (url case String url) {
|
||||
if (url case final url?) {
|
||||
Get.toNamed(
|
||||
'/webview',
|
||||
parameters: {'url': url},
|
||||
|
||||
@@ -2,7 +2,6 @@ import 'package:PiliPlus/common/widgets/badge.dart';
|
||||
import 'package:PiliPlus/common/widgets/image/network_img_layer.dart';
|
||||
import 'package:PiliPlus/models/common/badge_type.dart';
|
||||
import 'package:PiliPlus/models_new/space/space_shop/item.dart';
|
||||
import 'package:PiliPlus/models_new/space/space_shop/net_price.dart';
|
||||
import 'package:PiliPlus/utils/extension.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:get/get.dart';
|
||||
@@ -28,7 +27,7 @@ class MemberShopItem extends StatelessWidget {
|
||||
),
|
||||
child: InkWell(
|
||||
onTap: () {
|
||||
if (item.cardUrl case String cardUrl) {
|
||||
if (item.cardUrl case final cardUrl?) {
|
||||
Get.toNamed('/webview', parameters: {'url': cardUrl});
|
||||
}
|
||||
},
|
||||
@@ -69,7 +68,7 @@ class MemberShopItem extends StatelessWidget {
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
if (item.netPrice case NetPrice netPrice)
|
||||
if (item.netPrice case final netPrice?)
|
||||
Text.rich(
|
||||
style: TextStyle(color: colorScheme.vipColor),
|
||||
TextSpan(
|
||||
|
||||
Reference in New Issue
Block a user