Keep It Simple

This package is made to make it easier for us in the process of developing applications using Flutter. already available components and functions that you can use according to your needs. I hope this package can make your life easier. Your support and support means a lot to us. Please click the image below to donate. please click saweria for you Indonesian people. best regards from us. Thank You

Support

Buy Me A Coffee
Click the image above to donate to always support us

Features

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,
),

Usage PreviewImage

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/preview_image.dart";

// simple way
TextButton(
  onPressed: () {
    Navigator.push(context, MaterialPageRoute(builder: (_) {
      return const PreviewImage(
        image: 'https://docs.flutter.dev/assets/images/shared/brand/flutter/logo/flutter-lockup.png',
      );
    }));
  },
  child: const Text('click to preview')
)
// or
TextButton(
  onPressed: () {
    Navigator.push(context, MaterialPageRoute(builder: (_) {
      return const PreviewImage(
        iconBackColor: Colors.white,
        bgColor: Colors.green,
        appBarColor: Colors.red,
        image: 'https://docs.flutter.dev/assets/images/shared/brand/flutter/logo/flutter-lockup.png',
      );
    }));
  },
  child: const Text('click to preview')
)