棉花app新增页面
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
class FitTool {
|
||||
static double rpx = 0;
|
||||
static bool isInit = false;
|
||||
@@ -9,7 +7,8 @@ class FitTool {
|
||||
}
|
||||
if (isInit == false) {
|
||||
isInit = true;
|
||||
rpx = v / 750.0;
|
||||
// rpx = v / 750.0;
|
||||
rpx=v/1624.0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -2,10 +2,12 @@ import 'dart:async';
|
||||
|
||||
import 'package:ef/ef.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_svg/svg.dart';
|
||||
import 'package:intl/intl.dart';
|
||||
import 'package:url_launcher/url_launcher.dart';
|
||||
import 'package:vbvs_app/common/color/app_uri_status.dart';
|
||||
import 'package:vbvs_app/common/util/FitTool.dart';
|
||||
import 'package:vbvs_app/component/tool/ClickableContainer.dart';
|
||||
import 'package:vbvs_app/controller/setting/language/language_controller.dart';
|
||||
import 'package:vbvs_app/controller/theme_controller/ThemeController.dart';
|
||||
import 'package:vbvs_app/language/AppLanguage.dart';
|
||||
@@ -361,6 +363,37 @@ var returnIconButtom = IconButton(
|
||||
icon: Icon(Icons.navigate_before, size: 60.rpx),
|
||||
);
|
||||
|
||||
var returnIconButtomNew = ClickableContainer(
|
||||
backgroundColor: Colors.transparent,
|
||||
highlightColor: Colors.transparent,
|
||||
padding: EdgeInsets.only(right: 0),
|
||||
onTap: () => Get.back(),
|
||||
child: Container(
|
||||
// height: 42.rpx,
|
||||
// width: 42.rpx,
|
||||
child: SvgPicture.asset(
|
||||
'assets/img/icon/return_buttom.svg',
|
||||
width: 42.rpx,
|
||||
height: 42.rpx,
|
||||
),
|
||||
// SvgPicture.asset(
|
||||
// 'assets/img/icon/expand.svg',
|
||||
// color: Colors.white,
|
||||
// )
|
||||
));
|
||||
|
||||
// IconButton(
|
||||
// padding: EdgeInsets.zero, // 去除默认 padding
|
||||
// constraints: BoxConstraints(), // 去除最小尺寸限制
|
||||
// onPressed: () => Get.back(),
|
||||
// icon: SvgPicture.asset(
|
||||
// 'assets/img/icon/return_buttom.svg',
|
||||
// width: 42.rpx,
|
||||
// height: 42.rpx,
|
||||
// ),
|
||||
// );
|
||||
|
||||
var returnIconButtomAddCallback = (returnCallBack) {
|
||||
var returnIconButtomAddCallback = (
|
||||
VoidCallback? returnCallBack, {
|
||||
bool enableBack = true,
|
||||
|
||||
Reference in New Issue
Block a user