resizable_widget 1.0.2 copy "resizable_widget: ^1.0.2" to clipboard
resizable_widget: ^1.0.2 copied to clipboard

outdated

ResizableWidget Holds resizable widgets as children. Users can resize inner widgets by dragging.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:resizable_widget/resizable_widget.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Resizable Widget Example',
      theme: ThemeData.dark(),
      home: const MyPage(),
    );
  }
}

class MyPage extends StatelessWidget {
  const MyPage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('Resizable Widget Example'),
      ),
      body: ResizableWidget(
        isColumnChildren: false,
        separatorColor: Colors.white12,
        separatorSize: 4,
        children: [
          Container(color: Colors.greenAccent),
          ResizableWidget(
            isColumnChildren: true,
            separatorColor: Colors.blue,
            separatorSize: 10,
            children: [
              Container(color: Colors.greenAccent),
              ResizableWidget(
                children: [
                  Container(color: Colors.greenAccent),
                  Container(color: Colors.yellowAccent),
                  Container(color: Colors.redAccent),
                ],
                percentages: const [0.2, 0.5, 0.3],
              ),
              Container(color: Colors.redAccent),
            ],
          ),
          Container(color: Colors.redAccent),
        ],
      ),
    );
  }
}
164
likes
0
pub points
90%
popularity

Publisher

verified publisheribako-piyo.com

ResizableWidget Holds resizable widgets as children. Users can resize inner widgets by dragging.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on resizable_widget