Last updated:
0 purchases
idkit button
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
copied to clipboard
Image button
factory IDKitButton.image(...) -> IDKitButton
copied to clipboard
Image and text button
factory IDKitButton.imageAndText(...) -> IDKitButton
copied to clipboard
Cut corner type button
factory IDKitButton.corner(...) -> IDKitButton
copied to clipboard
Gradient type button
factory IDKitButton.gradient(...) -> IDKitButton
copied to clipboard
Border type button
factory IDKitButton.outline(...) -> IDKitButton
copied to clipboard
Custom type button
const IDKitButton(...) -> IDKitButton
copied to clipboard
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!');
},
)
copied to clipboard
Image button
IDKitButton.image(
imgpath,
width: 100,
bgColor: Colors.red,
onTap: () {
print('Button on click!');
},
),
copied to clipboard
Image and text button
IDKitButton.imageAndText(
imgpath,
'Setup',
height: 120,
imgSize: const Size(100, 200),
bgColor: Colors.blue,
onTap: () {
print('Button on click!');
},
)
copied to clipboard
Cut corner type button
IDKitButton.corner(
bgColor: Colors.blue,
height: 60,
width: 100,
onTap: () {
print('Button on click!');
},
)
copied to clipboard
Gradient type button
IDKitButton.gradient(
const <Color>[Colors.red, Colors.green],
width: 200,
height: 60,
title: 'Finish',
onTap: () {
print('Button on click!');
},
)
copied to clipboard
Border type button
IDKitButton.outline(
title: 'Border Button',
padding: const EdgeInsets.all(20),
onTap: () {
print('Button on click!');
},
)
copied to clipboard
Custom type button
IDKitButton(
decoration: BoxDecoration(
image: DecorationImage(
image: NetworkImage(imgpath),
fit: BoxFit.fill,
),
),
title: 'Backgrount button',
height: 60,
)
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.