ind_utils 0.0.4 copy "ind_utils: ^0.0.4" to clipboard
ind_utils: ^0.0.4 copied to clipboard

ind_utils package use this package for SizedBox and also Padding. No Need to write long code for these`

ind_utils #

ind_utils package use this package for SizedBox, Padding , Text , Show Toast , Get height and width of Screen. No Need to write long code for these`

Installation #

  1. Add the latest version of package to your pubspec.yaml (and rundart pub get):
dependencies:
  ind_utils: ^0.0.4
  1. Import the package and use it in your Flutter App.
import 'package:ind_utils/ind_utils.dart';

Example #

Use for SizedBox, Padding , Text , Show Toast , Get height and width of Screen. No Need to write long code for these

  • SizedBox
  • Padding
  • Text
  • Go to Next
  • Show Toast Message
  • Get Height and Width of Screen


class INDWidgets extends StatelessWidget {
  const INDWidgets({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: ListView(
        children: [
          /// don't use like this
          ///  Padding(
          ///  padding:  EdgeInsets.symmetric(vertical: 8.0 , horizontal: 10),
          ///  child: const Text("Welcome"),
          /// )
          /// User Like this
          const Text("Welcome").pSym(v: 10, h: 20),

          /// don't use like this
          ///    Padding(
          ///        padding: const EdgeInsets.only(left: 8.0 , right: 0 , bottom: 9 , top: 4),
          ///        child: Text("Welcome"),
          ///     )
          /// use like this
          const Text("Welcome").pOnly(b: 10, l: 10, r: 10, t: 10),

          ///  Don't use like this
          ///   Padding(
          /// padding: EdgeInsets.all(10),
          ///      child: const Text("Welcome"),
          /// )
          ///  Use Like This
          const Text("Welcome").pAll(a: 10),

          ///  Don't use like this
          ///  Padding(
          ///  padding: EdgeInsets.zero,
          ///    child: const Text("Welcome"),
          /// )
          /// use like this
          const Text("Welcome").pZ(),

          /// Don't use like this if you wanna space between two widgets
          /// SizedBox(
          ///   height: 50,
          /// )
          /// Use like this
          50.hBox,

          /// Don't use like this if you wanna space between two widgets
          /// SizedBox(
          ///   width: 50,
          /// )
          /// Use like this
          50.wBox,
          /// Text("Welcome").pOnly(b: 10, l: 10, r: 10, t: 10),
          ///"Get height of Screen ${context.height(v: 1.5)}"
          ///"Get width of Screen ${context.width(v: 1.5)}"
          ///"Change Feet to Meter of Any number ${10.fToMeter()}"
          ///"Change Meter to Feet of Any number ${10.mToFeet()}"
          ///"Multiple of any value with it self ${10.5.powValue(v: 3)}"
          ///// Write For only GestureDetector and in this only one function onTap
          const Text("Welcome").pZ().onTab(() {
            // context.showMessage(text: "Hello In IndianCreator");
            // context.go(page: NextPage());
          })
        ],
      ),
    );
  }
}

Next Goals #

  • ✅ We will Explore More Utils
8
likes
0
pub points
54%
popularity

Publisher

verified publisherindiancreator.in

ind_utils package use this package for SizedBox and also Padding. No Need to write long code for these`

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on ind_utils