v1.0.5resizable_widget
允許使用者透過拖曳來調整內部組件的大小。此套件包含簡單的 API,但如有需要,您也可以靈活地自訂 ResizableWidget。
187喜歡 59.5萬近 30 天下載160Pub 分數
AndroidiOSWebmacOSWindowsLinux
一個 Flutter 套件,可讓使用者透過拖曳來調整內部組件的大小。
以下為英文專案原文快照,最新內容請造訪 GitHub。
ResizableWidget enables users to resize the internal widgets by dragging.
This package contains simple APIs, but if needed, you can customize ResizableWidget flexibly.
Shows a simple code example below.
import 'package:flutter/material.dart';
import 'package:resizable_widget/resizable_widget.dart';
class MyPage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
body: ResizableWidget(
children: [ // required
Container(color: Colors.greenAccent),
Container(color: Colors.yellowAccent),
Container(color: Colors.redAccent),
],
isHorizontalSeparator: false, // optional
isDisabledSmartHide: false, // optional
separatorColor: Colors.white12, // optional
separatorSize: 4, // optional
percentages: [0.2, 0.5, 0.3], // optional
onResized: (infoList) => // optional
print(infoList.map((x) => '(${x.size}, ${x.percentage}%)').join(", ")),
),
);
}
}
https://pub.dev/packages/resizable_widget
https://pub.dev/documentation/resizable_widget/latest/resizable_widget/resizable_widget-library.html
依賴清單 3 項
{"sdk":"flutter"}{"sdk":"flutter"}^1.0.0-0先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗