优化调试

This commit is contained in:
jyuesong
2022-01-21 13:46:30 +08:00
parent ae7368ecbc
commit e4eabf9578
5 changed files with 42 additions and 39 deletions

View File

@@ -65,9 +65,6 @@ class QlAppState extends ConsumerState<QlApp> {
},
home: Builder(
builder: (context) {
if (!kReleaseMode) {
showDebugBtn(context, btnColor: Colors.blue);
}
return getIt<UserInfoViewModel>().isLogined() ? const HomePage() : const LoginPage();
},
),

View File

@@ -245,6 +245,17 @@ class EnvItemCell extends StatelessWidget {
style: TextStyle(color: primaryColor, fontSize: 12),
),
),
const SizedBox(
width: 5,
),
bean.status == 1
? const Icon(
Icons.dnd_forwardslash,
size: 12,
color: Colors.red,
)
: const SizedBox.shrink(),
const SizedBox(
width: 5,
),
@@ -261,16 +272,6 @@ class EnvItemCell extends StatelessWidget {
),
),
),
const SizedBox(
width: 5,
),
bean.status == 1
? const Icon(
Icons.dnd_forwardslash,
size: 12,
color: Colors.red,
)
: const SizedBox.shrink(),
const Spacer(),
],
),

View File

@@ -1,3 +1,4 @@
import 'package:dio_log/dio_log.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
@@ -109,10 +110,16 @@ class _LoginPageState extends ConsumerState<LoginPage> {
),
),
),
Image.asset(
GestureDetector(
onDoubleTap: (){
showDebugBtn(context, btnColor: Colors.blue);
WidgetsBinding.instance?.endOfFrame;
},
child: Image.asset(
"assets/images/ql.png",
height: 45,
),
),
],
),
SizedBox(

View File

@@ -37,10 +37,6 @@ class _AddDependencyPageState extends ConsumerState<AddDependencyPage> {
title: "新增依赖",
actions: [
InkWell(
onLongPress: () {
showDebugBtn(context, btnColor: Colors.blue);
WidgetsBinding.instance?.endOfFrame;
},
onTap: () {
submit();
},

View File

@@ -265,7 +265,8 @@ class TaskItemCell extends StatelessWidget {
Row(
mainAxisAlignment: MainAxisAlignment.start,
children: [
Material(
Expanded(
child: Material(
color: Colors.transparent,
child: Text(
bean.name ?? "",
@@ -278,6 +279,7 @@ class TaskItemCell extends StatelessWidget {
),
),
),
),
const SizedBox(
width: 5,
),
@@ -311,6 +313,16 @@ class TaskItemCell extends StatelessWidget {
Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
bean.isDisabled == 1
? const Icon(
Icons.dnd_forwardslash,
size: 12,
color: Colors.red,
)
: const SizedBox.shrink(),
const SizedBox(
width: 5,
),
Material(
color: Colors.transparent,
child: Text(
@@ -323,16 +335,6 @@ class TaskItemCell extends StatelessWidget {
),
),
),
const SizedBox(
width: 5,
),
bean.isDisabled == 1
? const Icon(
Icons.dnd_forwardslash,
size: 12,
color: Colors.red,
)
: const SizedBox.shrink(),
],
),
const SizedBox(