v1.0.5resizable_widget
사용자가 드래그하여 내부 위젯의 크기를 조정할 수 있도록 합니다. 이 패키지는 간단한 API를 포함하고 있지만, 필요 시 ResizableWidget을 유연하게 사용자 지정할 수 있습니다.
187좋아요 39.1만30일 다운로드160Pub 점수
AndroidiOSWebmacOSWindowsLinux
사용자가 드래그하여 내부 위젯의 크기를 조정할 수 있도록 해주는 플러터 패키지입니다.
{"sdk":"flutter"}{"sdk":"flutter"}^1.0.0-0아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
ResizableWidget enables users to resize the internal widgets by dragging.
This package contains simple APIs, but if needed, you can customize ResizableWidget flexibly.
example
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