v1.0.0
widget_size
一個在構建並附加到組件樹後計算其大小的組件
38喜歡 2300近 30 天下載150Pub 分數
AndroidiOSWebmacOSWindowsLinux
一個在構建並附加到組件樹後計算其大小的組件
以下為英文專案原文快照,最新內容請造訪 GitHub。
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,
),
)
依賴清單 3 項
{"sdk":"flutter"}{"sdk":"flutter"}^1.0.0先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗