Search packages, repositories and app categories

resizable_widget cover
Package detailsv1.0.5

resizable_widget

Enables users to resize the internal widgets by dragging. This package contains simple APIs, but if needed, you can customize ResizableWidget flexibly.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
595K
Likes
187
Pub points
160

Install package

flutter pub add resizable_widget

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

The resizable_widget package allows users to dynamically resize internal widgets by dragging their edges or corners. It provides simple, intuitive APIs for adding resizable behavior to any widget, with options for customization when needed. Ideal for creating interactive UIs where users need to adjust component sizes in real time, such as dashboards, layout editors, or design tools. The package supports all major platforms including Android, iOS, Web, macOS, Windows, and Linux.

Use cases

  • Interactive dashboard layouts
  • Resizable UI components in design tools
  • Dynamic form builders
  • Customizable widget containers
  • Real-time layout editing

Key features

  • Drag-to-resize functionality
  • Flexible customization options
  • Cross-platform support
  • Simple API integration
  • Edge and corner resize handles

Suitable for

  • Developers building interactive UIs
  • Design tool creators
  • Dashboard and editor applications
  • UI prototyping
  • Apps requiring dynamic widget sizing

Considerations

  • May require additional logic for complex constraints
  • Performance impact with many resizable widgets
  • Needs careful handling of touch input on mobile
  • Not suitable for static layouts
  • Requires attention to user feedback during resizing

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

resizable_widget

ResizableWidget enables users to resize the internal widgets by dragging.

This package contains simple APIs, but if needed, you can customize ResizableWidget flexibly.

Example

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(", ")),
      ),
    );
  }
}

Package page (pub.dev)

https://pub.dev/packages/resizable_widget

API Document

https://pub.dev/documentation/resizable_widget/latest/resizable_widget/resizable_widget-library.html

Categories

Source repository

Projects using this package

No data available yet.