responsive_widgets 0.1.0 copy "responsive_widgets: ^0.1.0" to clipboard
responsive_widgets: ^0.1.0 copied to clipboard

outdated

This plugin helps to create responsive widgets, that makes a auto-size with the proportion between reference Screen Size and the screen that the app is running. The package only changed the original w [...]

Responsive Widgets #

MediaQuery.of(context).size.shortestSide;

ContainerResponsive
  • ContainerResponsive(
    child: ,
    height: , // double Responsive wight
    heightResponsive: , // bool Enable/Disable Responsive height
    width: , // double Responsive width
    widthResponsive: , // bool Enable/Disable Responsive width
    )
EdgeInsetsResponsive (Can be used in any widget with padding)
  • Padding(
    child: ,
    padding: EdgeInsetsResponsive.all(50), // EdgeInsets Responsive padding
    )
IconResponsive
  • IconResponsive(
    icon
    size: double,// Responsive size
    )
IconButtonResponsive
  • IconButtonResponsive(
    icon
    size: double, // Responsive size
    )
TextResponsive
  • TextResponsive(
    text // Responsive fontSize
    )

Função para recalcular tamanho responsivelmente #

Existem casos especiais que não possuem Widgets Responsivos criados, um caso disso é o Positioned, para resolver o problema é apenas colocar essa função getSizeByDp(double size) que retornará o valor correto para a tela.

Examples #

ContainerResponsive

Container responsive and EdgeInsets

IconResponsive

IconResponsive

TextResponsive

TextResponsive

getSizeByDp(size)

Function getSizeByDp

64
likes
0
pub points
72%
popularity

Publisher

verified publisherpolazzo.dev

This plugin helps to create responsive widgets, that makes a auto-size with the proportion between reference Screen Size and the screen that the app is running. The package only changed the original widgets, like "Container" to apply a function that make this calculation.

Homepage
Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on responsive_widgets