JulyWitch / animated_snack_bar

Easily show beautiful snack bars directly using overlays. Create custom snack bars and show them with awesome animations.
https://pub.dev/packages/animated_snack_bar
GNU General Public License v3.0
16 stars 12 forks source link

some way to managing the top distance #12

Closed pmella16 closed 1 year ago

pmella16 commented 1 year ago

hi, is it possible to handle the top margin ??

image

JulyWitch commented 1 year ago

Hi, Yeah It's actually on the master branch and available for AnimatedSnackBar default constructor.

I'll add it to other constructors and release it.

JulyWitch commented 1 year ago

Update it to 0.3.1 then you can use the mobilePositionSettings property:

AnimatedSnackBar.material(
    'This a snackbar with info type',
    type: AnimatedSnackBarType.info,
    mobilePositionSettings: const MobilePositionSettings(
      topOnAppearance: 100,
      // topOnDissapear: 50,
      // bottomOnAppearance: 100,
      // bottomOnDissapear: 50,
      // left: 20,
      // right: 70,
    ),
).show(context);