keep_it_simple 0.0.11
keep_it_simple: ^0.0.11 copied to clipboard
This package is made with all my heart. made based on personal experience that I use to make my projects much simpler.
Keep It Simple #
This package is made with all my heart. made based on personal experience that I use to make my projects much simpler. I hope this package can make my work easier and that of all my friends.
Features #
- add space for width and height (AddWidth / AddHeight)
- radius for corner (Corner)
- format rupiah
- easy snackbar
Usage AddWidth / AddHeight #
This widget is used to increase the width or height distance
import 'package:keep_it_simple/keep_it_simple.dart';
// or
import 'package:keep_it_simple/components/add_space.dart';
const AddWidth(20),
const AddHeight(20),
Usage Corner #
This widget is used to make the corners of the widget to be curved as a whole
import 'package:keep_it_simple/keep_it_simple.dart';
// or
import 'package:keep_it_simple/components/corner.dart';
Corner(
corner: 30,
child: Container(
color: Colors.red,
width: 100,
height: 100,
),
)
Usage rupiah #
this function is used to make the nominal format into rupiah
import "package:keep_it_simple/keep_it_simple.dart";
// or
import "package:keep_it_simple/helpers/rupiah.dart";
Text(rupiah(1000).toString());
Usage snackbar #
This function makes it easier for you to call snackbar
import "package:keep_it_simple/keep_it_simple.dart";
// or
import "package:keep_it_simple/helpers/snackbar.dart";
await snackBar(context,
bgColor: Colors.teal,
isFLoating: false,
text: 'Success',
actionLabel: 'woi', actionPress: () {
// do something
});