v1.0.0
widget_size
Um widget para calcular seu tamanho após ser construído e anexado a uma árvore de widgets
38Curtidas 2,3 milDownloads em 30 dias150Pontos Pub
AndroidiOSWebmacOSWindowsLinux
Um widget para calcular seu tamanho após ser construído e anexado a uma árvore de widgets
Texto original em inglês. Visite o GitHub para a versão atual.
A widget to calculate it's size after being built and attached to a widget tree

To use this plugin, add widget_size as a dependency in your pubspec.yaml file.
dependencies:
widget_size: ^lastVersion
double _yourHeight = 50;
double _yourWidth = 50;
WidgetSize(
onChange: (Size size) {
// your Widget size available here
_yourHeight = size.height;
_yourWidth = size.width;
},
child: Container(
height: _yourHeight,
width: _yourWidth,
color: Theme.of(context).primaryColor,
),
)
Lista de dependências 3 itens
{"sdk":"flutter"}{"sdk":"flutter"}^1.0.0Filtre pelo caso de uso, compare a atividade e confira o projeto original antes de adotá-lo.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗