From f1b9d7b8c1c8dab4efcbb69eeb2f3cd169e1a854 Mon Sep 17 00:00:00 2001 From: laiiihz Date: Fri, 19 Mar 2021 10:19:26 +0800 Subject: [PATCH] update fab style --- lib/src/widgets/logger_fab.dart | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/lib/src/widgets/logger_fab.dart b/lib/src/widgets/logger_fab.dart index 39d6a21..bd50fcf 100644 --- a/lib/src/widgets/logger_fab.dart +++ b/lib/src/widgets/logger_fab.dart @@ -98,18 +98,23 @@ class _FabButton extends StatelessWidget { @override Widget build(BuildContext context) { - return ClipOval( - child: Container( - decoration: BoxDecoration( - color: Colors.blueAccent.withOpacity(0.4), - borderRadius: BorderRadius.circular(25), - ), - height: 50, - width: 50, - child: Icon( - Icons.code, - color: Colors.white70, - ), + return Container( + decoration: BoxDecoration( + color: Theme.of(context).accentColor, + borderRadius: BorderRadius.circular(25), + boxShadow: [ + BoxShadow( + offset: Offset(0, 3), + color: Colors.black12, + blurRadius: 4, + ) + ], + ), + height: 48, + width: 48, + child: Icon( + Icons.code, + color: Colors.white70, ), ); }