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

Get the persistent bottom status padding height.

Readme #

Get the persistent bottom status padding height.

Use case. #

Step 1 #

config the FixedStatusBottomHeight to MaterialApp

MaterialApp.router(
  routerConfig: goRouter,
  title: AppConfig.appName,
  builder: (BuildContext context, Widget? child) {
    return Stack(
      children: [
        child ?? Container(),
        const FixedStatusBottomHeight(),
      ],
    );
  },
  theme: AppTheme.theme(),
);

the FixedStatusBottomHeight is empty content so will not affect the app content.

Step 2 #

use the FixedStatusBottomHeight.maxBottomPaddingHeight to get the padding bottom height.

          ValueListenableBuilder<double>(
              valueListenable: FixedStatusBottomHeight.maxBottomPaddingHeight,
              builder: (BuildContext context, double maxBottomPaddingHeight,
                  Widget? child) {
                return SizedBox(height: maxBottomPaddingHeight);
              })
0
likes
140
points
20
downloads

Publisher

unverified uploader

Weekly Downloads

Get the persistent bottom status padding height.

Documentation

API reference

License

MIT (license)

Dependencies

flutter, shared_preferences

More

Packages that depend on fixed_status_bottom_height