优化调试

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( home: Builder(
builder: (context) { builder: (context) {
if (!kReleaseMode) {
showDebugBtn(context, btnColor: Colors.blue);
}
return getIt<UserInfoViewModel>().isLogined() ? const HomePage() : const LoginPage(); return getIt<UserInfoViewModel>().isLogined() ? const HomePage() : const LoginPage();
}, },
), ),

View File

@@ -245,6 +245,17 @@ class EnvItemCell extends StatelessWidget {
style: TextStyle(color: primaryColor, fontSize: 12), 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( const SizedBox(
width: 5, 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(), const Spacer(),
], ],
), ),

View File

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

View File

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

View File

@@ -265,16 +265,18 @@ class TaskItemCell extends StatelessWidget {
Row( Row(
mainAxisAlignment: MainAxisAlignment.start, mainAxisAlignment: MainAxisAlignment.start,
children: [ children: [
Material( Expanded(
color: Colors.transparent, child: Material(
child: Text( color: Colors.transparent,
bean.name ?? "", child: Text(
maxLines: 1, bean.name ?? "",
overflow: TextOverflow.ellipsis, maxLines: 1,
style: TextStyle(
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,
color: ref.watch(themeProvider).themeColor.titleColor(), style: TextStyle(
fontSize: 18, overflow: TextOverflow.ellipsis,
color: ref.watch(themeProvider).themeColor.titleColor(),
fontSize: 18,
),
), ),
), ),
), ),
@@ -311,6 +313,16 @@ class TaskItemCell extends StatelessWidget {
Row( Row(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
bean.isDisabled == 1
? const Icon(
Icons.dnd_forwardslash,
size: 12,
color: Colors.red,
)
: const SizedBox.shrink(),
const SizedBox(
width: 5,
),
Material( Material(
color: Colors.transparent, color: Colors.transparent,
child: Text( 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( const SizedBox(