Context Extension

It can enable you to write better code using the power of context.

width:context.dynamicWidth(val),

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Container(
        height: context.dynamicHeight(0.1),
        width: context.dynamicWidth(0.5),
        color: context.colorScheme.onBackground,
        child: Text("extension", style: context.theme.textTheme.titleLarge),
      ),
    );
  }

Zerom Button

It allows you to configure the button usage more easily.

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: ZeromButton(
            title: "Zerom Button",
            onTap: () {
              print("object");
            },
          ),
    );
  }

Zerom Input

This allows you to configure input usage more easily.

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: ZeromPasswordInput(
              width: context.dynamicWidth(0.6),
              height: context.dynamicHeight(0.06),
              iconColor: Colors.black,
              labelText: "Password",
              border: OutlineInputBorder(
                borderRadius: BorderRadius.circular(20),
              ),
              fillColor: Colors.lightGreenAccent,
            ),
    );
  }

Padding Extension

It can enable you to write better code using the power of context.

Padding All

- padding: context.paddinglow,
- padding: context.paddingMedium,
- padding: context.paddingHard,

Padding Horizontal

- padding: context.paddingHorizontalLow,
- padding: context.paddingHorizontalMedium,
- padding: context.paddingHorizontalHard,
- padding: context.paddingHorizontalHarder,
- padding: context.paddingHorizontalHardest,

Padding Vertical

- padding: context.paddingVerticalLow,
- padding: context.paddingVerticalMedium,
- padding: context.paddingVerticalHard,
- padding: context.paddingVerticalHarder,
- padding: context.paddingVerticalHardest,
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Container(
        padding: context.paddingAlowHorizontalHrd,
        color: context.colorScheme.onBackground,
        child: Text("extension", style: context.theme.textTheme.titleLarge),
      ),
    );
  }

It can enable you to write better code using the power of context. Can work with all kinds of buttons

context.next(const RouteExample());
context.back();

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Column(
        children: [
          TextButton(
            onPressed: () {
              context.next(const RouteExample());
            },
            child: const Text("Next Page"),
          ),
          TextButton(
            onPressed: () {
              context.back();
            },
            child: const Text("Zerom"),
          ),
        ],
      ),
  }

Libraries

zerom