keep_it_simple 0.0.14
keep_it_simple: ^0.0.14 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 (rupiah)
- easy snackbar (snackBar)
- simple shimmer (SimpleShimmer)
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";
// simple way
snackBar(context, text: 'Hallo');
// or
snackBar(context,
bgColor: Colors.teal,
isFLoating: false,
text: 'Success',
actionLabel: 'Dismiss', actionPress: () {
// do something
});
Usage SimpleShimmer #
This widget is used to create a simple shimmer/loading effect.
import "package:keep_it_simple/keep_it_simple.dart";
// or
import "package:keep_it_simple/components/simple_shimmer.dart";
// simple way
const SimpleShimmer()
// or
const SimpleShimmer(
bgColor: Colors.black,
isCircle: false,
looping: 1,
height: 50,
),