lint theme

This commit is contained in:
Deven Joshi
2021-05-05 17:18:26 +05:30
parent dad7bb3f8c
commit d63540ba9b
2 changed files with 904 additions and 890 deletions
@@ -1,19 +1,24 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
/// Neumorphic button
class StreamNeumorphicButton extends StatelessWidget { class StreamNeumorphicButton extends StatelessWidget {
final Widget child;
final Color backgroundColor;
/// Constructor for creating [StreamNeumorphicButton]
const StreamNeumorphicButton({ const StreamNeumorphicButton({
Key? key, Key? key,
required this.child, required this.child,
this.backgroundColor = Colors.white, this.backgroundColor = Colors.white,
}) : super(key: key); }) : super(key: key);
/// Child contained in the button
final Widget child;
/// Background color of button
final Color backgroundColor;
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) => Container(
return Container( margin: const EdgeInsets.all(8),
margin: EdgeInsets.all(8),
height: 40, height: 40,
width: 40, width: 40,
decoration: BoxDecoration( decoration: BoxDecoration(
@@ -22,10 +27,10 @@ class StreamNeumorphicButton extends StatelessWidget {
boxShadow: [ boxShadow: [
BoxShadow( BoxShadow(
color: Colors.grey.shade700, color: Colors.grey.shade700,
offset: Offset(0, 1), offset: const Offset(0, 1),
blurRadius: 0.5, blurRadius: 0.5,
), ),
BoxShadow( const BoxShadow(
color: Colors.white, color: Colors.white,
blurRadius: 0.5, blurRadius: 0.5,
), ),
@@ -33,5 +38,4 @@ class StreamNeumorphicButton extends StatelessWidget {
), ),
child: child, child: child,
); );
}
} }
File diff suppressed because it is too large Load Diff