resizable_columns 0.0.2 resizable_columns: ^0.0.2 copied to clipboard
A Flutter widget that provides a flexible, resizable layout with draggable dividers. It allows you to create multi-pane layouts where users can resize the panes by dragging the dividers between them. [...]
import 'package:flutter/material.dart';
import 'package:resizable_columns/resizable_columns.dart';
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Resizable Columns Demo',
home: Scaffold(
appBar: AppBar(title: const Text('Resizable Columns')),
body: ResizableColumns(
orientation: ResizableOrientation.horizontal,
dividerThickness: 8.0,
initialProportions: const [1, 1, 1],
minChildSize: 100.0,
children: [
(context) => Container(color: Colors.red),
(context) => Container(color: Colors.blue),
(context) => Container(color: Colors.green),
],
),
),
);
}
}