idkit_button
This package mainly deals with the convenient construction of button components that interact with users in the development of the flutter project.
Features included in this package
-
Text button
factory IDKitButton.title(...) -> IDKitButton
-
Image button
factory IDKitButton.image(...) -> IDKitButton
-
Image and text button
factory IDKitButton.imageAndText(...) -> IDKitButton
-
Cut corner type button
factory IDKitButton.corner(...) -> IDKitButton
-
Gradient type button
factory IDKitButton.gradient(...) -> IDKitButton
-
Border type button
factory IDKitButton.outline(...) -> IDKitButton
-
Custom type button
const IDKitButton(...) -> IDKitButton
The package function example demonstration
-
Text button
IDKitButton.title( 'Next', height: 44, width: 300, decoration: BoxDecoration( borderRadius: BorderRadius.circular(8), color: Colors.blue, ), onTap: () { print('Button on click!'); }, )
-
Image button
IDKitButton.image( imgpath, width: 100, bgColor: Colors.red, onTap: () { print('Button on click!'); }, ),
-
Image and text button
IDKitButton.imageAndText( imgpath, 'Setup', height: 120, imgSize: const Size(100, 200), bgColor: Colors.blue, onTap: () { print('Button on click!'); }, )
-
Cut corner type button
IDKitButton.corner( bgColor: Colors.blue, height: 60, width: 100, onTap: () { print('Button on click!'); }, )
-
Gradient type button
IDKitButton.gradient( const <Color>[Colors.red, Colors.green], width: 200, height: 60, title: 'Finish', onTap: () { print('Button on click!'); }, )
-
Border type button
IDKitButton.outline( title: 'Border Button', padding: const EdgeInsets.all(20), onTap: () { print('Button on click!'); }, )
-
Custom type button
IDKitButton( decoration: BoxDecoration( image: DecorationImage( image: NetworkImage(imgpath), fit: BoxFit.fill, ), ), title: 'Backgrount button', height: 60, )