Skip to content

Commit

Permalink
去掉多余
Browse files Browse the repository at this point in the history
  • Loading branch information
hbolin committed Sep 27, 2020
1 parent a0d3b96 commit c67d65a
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions lib/flutter_toast_package.dart
Original file line number Diff line number Diff line change
Expand Up @@ -92,17 +92,13 @@ class FlutterToast {
// toast text绘制
static Widget _buildToastTextWidget(BuildContext context, String message, Color bgColor, Color textColor) {
return Center(
child: Material(
borderRadius: BorderRadius.circular(6),
color: bgColor ?? Colors.black.withOpacity(0.8),
child: Padding(
padding: EdgeInsets.symmetric(horizontal: 12.0, vertical: 6.0),
child: Text(
message,
style: TextStyle(
fontSize: Theme.of(context).textTheme.caption.fontSize,
color: textColor ?? Colors.white,
),
child: Padding(
padding: EdgeInsets.symmetric(horizontal: 12.0, vertical: 6.0),
child: Text(
message,
style: TextStyle(
fontSize: Theme.of(context).textTheme.caption.fontSize,
color: textColor ?? Colors.white,
),
),
),
Expand Down

0 comments on commit c67d65a

Please sign in to comment.