adaptive_breakpoints_freezed 0.0.1 copy "adaptive_breakpoints_freezed: ^0.0.1" to clipboard
adaptive_breakpoints_freezed: ^0.0.1 copied to clipboard

adaptive_breakpoints with freezed functionality

material design adaptive_breakpoints with freezed functionality

Features #

  • Detect current screen size according to material design implementing of it's own break point
  • Support both material 2 and material 3 design system

Usage #

Check example tab

AdaptiveBuilder(
        builder: (context, entry, constraints) {
          return entry.type.when(
            xs: () {
              return Text("xs $_counter");
            },
            s: () {
              return Text("s $_counter");
            },
            m: () {
              return Text("m $_counter");
            },
            l: () {
              return Text("l $_counter");
            },
            xl: () {
              return Text("xl $_counter");
            },
          );
        },
      )
context.adaptive.maybeWhen(
    l: () {
        print("large");
    },
    orElse: () {
        print("other sizes")
    }
)
2
likes
130
pub points
38%
popularity

Publisher

unverified uploader

adaptive_breakpoints with freezed functionality

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, freezed_annotation

More

Packages that depend on adaptive_breakpoints_freezed