amazingcard 0.0.1 amazingcard: ^0.0.1 copied to clipboard
A new Flutter Custom Card.
##instalation
-
add the latest version of package to your pubspec.yaml (and run pub get): '''yaml dependencies: amazing_card: ^0.0.1,
-
Import the package and use it in your Flutter App.
import 'package:'amazing_card/amazing_card.dart
##Example There are a number of properties that you can modify:
- height
- width
- cardColor
- cardShadowColor
- borderRadius
- offset
- blurRadius
- spreadRadius
- Widget as Child
class AmazingClass extends StatelessWidget { const AmazingClass({Key? key}) : super(key: key);
@override Widget build(BuildContext context) { return Scaffold( body: Center(child: AmazingCard( height: 100, width: double.infinity, decoration: BoxDecoration( boxShadow: [ BoxShadow( offset : Offset(0,2), blurRadius : 2, spreadRadius : 3, color : Colors.black.withOpacity(0.2), ) ], color: Colors.white, borderRadius : BorderRadius.circular(20) ),
child: Widget(),
),),
);
} }