主页面字体颜色调整

master
章文轩 3 years ago
parent 36b8013275
commit 72ce5742be

@ -21,14 +21,14 @@ class DioErrorBuilder extends StatelessWidget {
), ),
); );
}, },
title: Text(data.requestOptions.path), title: Text(data.requestOptions.path,style: TextStyle(fontSize: 16,color: Color(0xFF333333)),),
subtitle: Text('${data.message}\n$date'), subtitle: Text('${data.message}\n$date',style: TextStyle(fontSize: 14,color: Color(0xFF666666)),),
trailing: Row( trailing: Row(
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
children: [ children: [
Chip( Chip(
backgroundColor: Colors.blue.withOpacity(0.4), backgroundColor: Colors.blue.withOpacity(0.4),
label: Text(data.requestOptions.method), label: Text(data.requestOptions.method,style: TextStyle(fontSize: 14,color: Colors.black),),
), ),
], ],
), ),

@ -18,14 +18,14 @@ class DioResponseBuilder extends StatelessWidget {
builder: (context) => DioResponseView(data: data), builder: (context) => DioResponseView(data: data),
), ),
), ),
title: Text(data.requestOptions.path), title: Text(data.requestOptions.path,style: TextStyle(fontSize: 16,color: Color(0xFF333333)),),
subtitle: Text(date.toString()), subtitle: Text(date.toString(),style: TextStyle(fontSize: 14,color: Color(0xFF666666)),),
trailing: Row( trailing: Row(
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
children: [ children: [
Chip( Chip(
backgroundColor: Colors.blue.withOpacity(0.8), backgroundColor: Colors.blue.withOpacity(0.8),
label: Text(data.requestOptions.method), label: Text(data.requestOptions.method,style: TextStyle(fontSize: 14,color: Colors.black),),
), ),
], ],
), ),

@ -9,8 +9,8 @@ class FlutterErrorBuilder extends StatelessWidget {
Widget build(BuildContext context) { Widget build(BuildContext context) {
return ListTile( return ListTile(
tileColor: Colors.red.withOpacity(0.4), tileColor: Colors.red.withOpacity(0.4),
title: Text(details.exception.toString()), title: Text(details.exception.toString(),style: TextStyle(fontSize: 14,color: Colors.black),),
trailing: Chip(label: Text('EXCEPTION'), backgroundColor: Colors.red), trailing: Chip(label: Text('EXCEPTION',style: TextStyle(fontSize: 14,color: Colors.black),), backgroundColor: Colors.red),
onTap: () { onTap: () {
Navigator.push( Navigator.push(
context, context,

@ -17,16 +17,16 @@ class UnfocusParser extends StatelessWidget {
MaterialPageRoute( MaterialPageRoute(
builder: (context) => Scaffold( builder: (context) => Scaffold(
appBar: AppBar(title: Text(data.runtimeType.toString())), appBar: AppBar(title: Text(data.runtimeType.toString())),
body: Text(data.toString()), body: Text(data.toString(),style: TextStyle(fontSize: 16,color: Colors.black),),
), ),
), ),
), ),
title: Text( title: Text(
data.toString(), data.toString(),
maxLines: 1, maxLines: 1, style: TextStyle(fontSize: 16,color: Colors.black),
), ),
trailing: Chip( trailing: Chip(
label: Text(tag ?? data.runtimeType.toString()), label: Text(tag ?? data.runtimeType.toString(),style: TextStyle(fontSize: 16,color: Colors.black),),
), ),
), ),
); );

@ -71,7 +71,7 @@ class _InfoViewState extends State<InfoView>
SliverList( SliverList(
delegate: SliverChildListDelegate([ delegate: SliverChildListDelegate([
ListTile( ListTile(
title: Text('Package Info'), title: Text('Package Info',style: TextStyle(fontSize: 18,color: Color(0xff333333))),
tileColor: Colors.blue.withOpacity(0.2), tileColor: Colors.blue.withOpacity(0.2),
), ),
InfoTile(title: 'appName', subTitle: packageInfo!.appName), InfoTile(title: 'appName', subTitle: packageInfo!.appName),
@ -81,7 +81,7 @@ class _InfoViewState extends State<InfoView>
title: 'packageName', subTitle: packageInfo!.packageName), title: 'packageName', subTitle: packageInfo!.packageName),
InfoTile(title: 'version', subTitle: packageInfo!.version), InfoTile(title: 'version', subTitle: packageInfo!.version),
ListTile( ListTile(
title: Text('Device Info'), title: Text('Device Info',style: TextStyle(fontSize: 18,color: Color(0xff333333))),
tileColor: Colors.blue.withOpacity(0.1), tileColor: Colors.blue.withOpacity(0.1),
), ),
])), ])),

@ -15,8 +15,8 @@ class InfoTile extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return ListTile( return ListTile(
title: Text(title), title: Text(title,style: TextStyle(fontSize: 14,color: Color(0xff333333)),),
subtitle: Text(subTitle), subtitle: Text(subTitle,style: TextStyle(fontSize: 14,color: Color(0xff666666))),
onLongPress: () async { onLongPress: () async {
ScaffoldMessenger.of(context).hideCurrentSnackBar(); ScaffoldMessenger.of(context).hideCurrentSnackBar();
Clipboard.setData(ClipboardData(text: subTitle)); Clipboard.setData(ClipboardData(text: subTitle));

@ -14,7 +14,7 @@ class _SettingsViewState extends State<SettingsView> {
return ListView( return ListView(
children: [ children: [
SwitchListTile( SwitchListTile(
title: Text('终端日志'), title: Text('终端日志',style: TextStyle(fontSize: 16,color: Colors.black),),
subtitle: Text(''), subtitle: Text(''),
value: LoggerData.markLogger, value: LoggerData.markLogger,
onChanged: (state) { onChanged: (state) {

Loading…
Cancel
Save