[英]How to create a transformable grid UI on Flutter for mobile?
What is the name of this UI below?下面这个 UI 的名称是什么?
How do I create one in Flutter?如何在 Flutter 中创建一个?
These are the desired characteristics:这些是所需的特性:
Is there a library that can serve this function?有图书馆可以服务这个function吗?
Thank you for your help!谢谢您的帮助!
Use the transformable package found on pub.dev .使用 pub.dev 上的可转换package 。 See the example lib.dart file in the Github example folder .
请参阅Github 示例文件夹中的示例 lib.dart 文件。
A code snippet from the pud.dev page:来自 pud.dev 页面的代码片段:
LayoutBuilder(
builder: (context, constraints) => Transformable(
child: Grid(),
viewerSize: viewerSize,
controller: TransformController(
config: TransformConfig(
initialTransform: Transformation(offset: startOffset),
initialSize: childStartSize,
innerBoundRect: innerRect,
outerBoundRect: outerRect,
),
),
);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.