This commit is contained in:
Deven Joshi
2021-05-05 17:23:38 +05:30
parent 9d05cd20e0
commit cca2e38103
@@ -2,7 +2,6 @@ import 'package:flutter/material.dart';
/// Neumorphic button /// Neumorphic button
class StreamNeumorphicButton extends StatelessWidget { class StreamNeumorphicButton extends StatelessWidget {
/// Constructor for creating [StreamNeumorphicButton] /// Constructor for creating [StreamNeumorphicButton]
const StreamNeumorphicButton({ const StreamNeumorphicButton({
Key? key, Key? key,
@@ -18,24 +17,24 @@ class StreamNeumorphicButton extends StatelessWidget {
@override @override
Widget build(BuildContext context) => Container( Widget build(BuildContext context) => Container(
margin: const EdgeInsets.all(8), margin: const EdgeInsets.all(8),
height: 40, height: 40,
width: 40, width: 40,
decoration: BoxDecoration( decoration: BoxDecoration(
color: backgroundColor, color: backgroundColor,
shape: BoxShape.circle, shape: BoxShape.circle,
boxShadow: [ boxShadow: [
BoxShadow( BoxShadow(
color: Colors.grey.shade700, color: Colors.grey.shade700,
offset: const Offset(0, 1), offset: const Offset(0, 1),
blurRadius: 0.5, blurRadius: 0.5,
), ),
const BoxShadow( const BoxShadow(
color: Colors.white, color: Colors.white,
blurRadius: 0.5, blurRadius: 0.5,
), ),
], ],
), ),
child: child, child: child,
); );
} }