update UI color

master
小赖 4 years ago
parent 74c57d7741
commit c972545147

@ -18,8 +18,19 @@ class _DioErrorBuilderState extends State<DioErrorBuilder> {
color: Colors.red.withOpacity(0.1), color: Colors.red.withOpacity(0.1),
child: ListTile( child: ListTile(
onTap: () {}, onTap: () {},
title: Text(_request.path), title: Text(
subtitle: Text(widget.data.message), _request.path,
style: TextStyle(
color: Colors.black87,
),
),
subtitle: Text(
widget.data.message,
style: TextStyle(
color: Colors.black45,
fontWeight: FontWeight.w300,
),
),
trailing: Row( trailing: Row(
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
children: [ children: [

@ -23,7 +23,12 @@ class _DioResponseBuilderState extends State<DioResponseBuilder> {
color: Colors.green.withOpacity(0.1), color: Colors.green.withOpacity(0.1),
child: ListTile( child: ListTile(
onTap: action, onTap: action,
title: Text(_request.path), title: Text(
_request.path,
style: TextStyle(
color: Colors.black87,
),
),
trailing: Row( trailing: Row(
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
children: [ children: [

@ -17,6 +17,7 @@ class BoxView extends StatelessWidget {
return Padding( return Padding(
padding: EdgeInsets.all(5), padding: EdgeInsets.all(5),
child: Material( child: Material(
color: Colors.white,
borderRadius: BorderRadius.circular(5), borderRadius: BorderRadius.circular(5),
elevation: 4, elevation: 4,
child: Padding( child: Padding(

Loading…
Cancel
Save