更新登录对接
This commit is contained in:
@@ -3,10 +3,11 @@ import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:vbvs_app/common/util/FitTool.dart';
|
||||
import 'package:vbvs_app/common/util/MyUtils.dart';
|
||||
|
||||
import 'package:vbvs_app/controller/theme_controller/ThemeController.dart';
|
||||
|
||||
getOnePicker(context, List arr, int checkIndex, Function onSelectedItemChanged,
|
||||
{bool looping = false}) {
|
||||
ThemeController themeController = Get.find();
|
||||
return CupertinoPicker(
|
||||
key: UniqueKey(),
|
||||
useMagnifier: false,
|
||||
@@ -38,7 +39,7 @@ getOnePicker(context, List arr, int checkIndex, Function onSelectedItemChanged,
|
||||
child: Text("${arr[index]}",
|
||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
||||
fontFamily: 'Readex Pro',
|
||||
color: Colors.white,
|
||||
color: themeController.currentColor.sc3,
|
||||
letterSpacing: 0,
|
||||
fontSize: 30.rpx)),
|
||||
);
|
||||
@@ -51,6 +52,7 @@ Future showDateSelectionDialog(BuildContext context,
|
||||
{required DateTime checkDate,
|
||||
Function? checkChange,
|
||||
String title = "选择生日"}) {
|
||||
ThemeController themeController = Get.find();
|
||||
Color checkColor = stringToColor("#D3B684");
|
||||
List years = [], months = [], days = [];
|
||||
var days_select = [].obs;
|
||||
@@ -113,7 +115,7 @@ Future showDateSelectionDialog(BuildContext context,
|
||||
.bodyMedium
|
||||
.override(
|
||||
fontFamily: 'Readex Pro',
|
||||
color: Colors.white,
|
||||
color: themeController.currentColor.sc3,
|
||||
letterSpacing: 0,
|
||||
fontSize: 30.rpx),
|
||||
),
|
||||
@@ -152,7 +154,7 @@ Future showDateSelectionDialog(BuildContext context,
|
||||
.bodyMedium
|
||||
.override(
|
||||
fontFamily: 'Readex Pro',
|
||||
color: Colors.white,
|
||||
color: themeController.currentColor.sc3,
|
||||
letterSpacing: 0,
|
||||
fontSize: 30.rpx),
|
||||
),
|
||||
@@ -182,7 +184,7 @@ Future showDateSelectionDialog(BuildContext context,
|
||||
.bodyMedium
|
||||
.override(
|
||||
fontFamily: 'Readex Pro',
|
||||
color: Colors.white,
|
||||
color: themeController.currentColor.sc3,
|
||||
letterSpacing: 0,
|
||||
fontSize: 30.rpx),
|
||||
),
|
||||
@@ -213,7 +215,7 @@ Future showDateSelectionDialog(BuildContext context,
|
||||
.bodyMedium
|
||||
.override(
|
||||
fontFamily: 'Readex Pro',
|
||||
color: Colors.white,
|
||||
color: themeController.currentColor.sc3,
|
||||
letterSpacing: 0,
|
||||
fontSize: 30.rpx),
|
||||
),
|
||||
@@ -240,7 +242,7 @@ Future showDateSelectionDialog(BuildContext context,
|
||||
.bodyMedium
|
||||
.override(
|
||||
fontFamily: 'Readex Pro',
|
||||
color: Colors.white,
|
||||
color: themeController.currentColor.sc3,
|
||||
letterSpacing: 0,
|
||||
fontSize: 30.rpx),
|
||||
),
|
||||
@@ -260,6 +262,7 @@ Future showDateSelectionDialog(BuildContext context,
|
||||
|
||||
Future showDayTimeSelectionDialog(BuildContext context,
|
||||
{required List<int> dayTimeArr, Function? checkChange, String title = ""}) {
|
||||
ThemeController themeController = Get.find();
|
||||
Color checkColor = stringToColor("#D3B684");
|
||||
List hours = [], minutes = [];
|
||||
for (var i = 0; i < 24; i++) {
|
||||
@@ -309,7 +312,7 @@ Future showDayTimeSelectionDialog(BuildContext context,
|
||||
.bodyMedium
|
||||
.override(
|
||||
fontFamily: 'Readex Pro',
|
||||
color: Colors.white,
|
||||
color: themeController.currentColor.sc3,
|
||||
letterSpacing: 0,
|
||||
fontSize: 30.rpx),
|
||||
),
|
||||
@@ -340,7 +343,7 @@ Future showDayTimeSelectionDialog(BuildContext context,
|
||||
.bodyMedium
|
||||
.override(
|
||||
fontFamily: 'Readex Pro',
|
||||
color: Colors.white,
|
||||
color: themeController.currentColor.sc3,
|
||||
letterSpacing: 0,
|
||||
fontSize: 30.rpx),
|
||||
),
|
||||
@@ -362,7 +365,7 @@ Future showDayTimeSelectionDialog(BuildContext context,
|
||||
.bodyMedium
|
||||
.override(
|
||||
fontFamily: 'Readex Pro',
|
||||
color: Colors.white,
|
||||
color: themeController.currentColor.sc3,
|
||||
letterSpacing: 0,
|
||||
fontSize: 30.rpx),
|
||||
),
|
||||
@@ -389,7 +392,7 @@ Future showDayTimeSelectionDialog(BuildContext context,
|
||||
.bodyMedium
|
||||
.override(
|
||||
fontFamily: 'Readex Pro',
|
||||
color: Colors.white,
|
||||
color: themeController.currentColor.sc3,
|
||||
letterSpacing: 0,
|
||||
fontSize: 30.rpx),
|
||||
),
|
||||
@@ -412,6 +415,7 @@ Future showOneSelectionDialog(BuildContext context,
|
||||
int checkIndex = 0,
|
||||
Function? checkChange,
|
||||
String title = "选择性别"}) {
|
||||
ThemeController themeController = Get.find();
|
||||
Color checkColor = stringToColor("#D3B684");
|
||||
return showDialog(
|
||||
// barrierColor: stringToColor("#000320"),
|
||||
@@ -452,7 +456,7 @@ Future showOneSelectionDialog(BuildContext context,
|
||||
.bodyMedium
|
||||
.override(
|
||||
fontFamily: 'Readex Pro',
|
||||
color: Colors.white,
|
||||
color: themeController.currentColor.sc3,
|
||||
letterSpacing: 0,
|
||||
fontSize: 30.rpx),
|
||||
),
|
||||
@@ -490,7 +494,7 @@ Future showOneSelectionDialog(BuildContext context,
|
||||
.bodyMedium
|
||||
.override(
|
||||
fontFamily: 'Readex Pro',
|
||||
color: Colors.white,
|
||||
color: themeController.currentColor.sc3,
|
||||
letterSpacing: 0,
|
||||
fontSize: 30.rpx),
|
||||
),
|
||||
@@ -537,6 +541,7 @@ enum ConfirmDialogIcon {
|
||||
Future showCustomConfirmDialog(BuildContext context, String name,
|
||||
{String btnName = "确定",
|
||||
ConfirmDialogIcon icon = ConfirmDialogIcon.warn}) async {
|
||||
ThemeController themeController = Get.find();
|
||||
return showDialog(
|
||||
context: context,
|
||||
barrierDismissible: true,
|
||||
@@ -589,7 +594,9 @@ Future showCustomConfirmDialog(BuildContext context, String name,
|
||||
color: stringToColor("#D3B684")),
|
||||
child: Text(
|
||||
'$btnName',
|
||||
style: TextStyle(color: Colors.white, fontSize: 30.rpx),
|
||||
style: TextStyle(
|
||||
color: themeController.currentColor.sc3,
|
||||
fontSize: 30.rpx),
|
||||
),
|
||||
),
|
||||
),
|
||||
@@ -602,11 +609,11 @@ Future showCustomConfirmDialog(BuildContext context, String name,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Future showCustomConfirmAndCancelDialog(BuildContext context, String name,
|
||||
{String confirmName = "确定",
|
||||
String cancelName = "取消",
|
||||
ConfirmDialogIcon icon = ConfirmDialogIcon.warn}) async {
|
||||
ThemeController themeController = Get.find();
|
||||
return showDialog(
|
||||
context: context,
|
||||
barrierDismissible: true,
|
||||
@@ -684,8 +691,9 @@ Future showCustomConfirmAndCancelDialog(BuildContext context, String name,
|
||||
color: stringToColor("#D3B684")),
|
||||
child: Text(
|
||||
'$confirmName',
|
||||
style:
|
||||
TextStyle(color: Colors.white, fontSize: 30.rpx),
|
||||
style: TextStyle(
|
||||
color: themeController.currentColor.sc3,
|
||||
fontSize: 30.rpx),
|
||||
),
|
||||
),
|
||||
)
|
||||
@@ -702,6 +710,7 @@ Future showCustomConfirmAndCancelDialog(BuildContext context, String name,
|
||||
|
||||
//权限说明弹窗
|
||||
void showPermissionInfoDialog(BuildContext context, List data) {
|
||||
ThemeController themeController = Get.find();
|
||||
showDialog(
|
||||
context: context,
|
||||
barrierDismissible: false, // 点击对话框外部可关闭
|
||||
@@ -715,7 +724,7 @@ void showPermissionInfoDialog(BuildContext context, List data) {
|
||||
child: Material(
|
||||
color: Colors.transparent,
|
||||
child: Dialog(
|
||||
backgroundColor: Colors.white,
|
||||
backgroundColor: themeController.currentColor.sc3,
|
||||
insetPadding: EdgeInsets.fromLTRB(0, 0, 0, 0),
|
||||
shape: RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.circular(10.0),
|
||||
|
||||
Reference in New Issue
Block a user