single_child_two_dimensional_scroll_view
0.1.0, released 8 months ago by hornmicro.com
A widget that allows a single child to scroll in two dimensions.
What it does
Provides a SingleChildTwoDimensionalScrollView widget inspired by SingleChildScrollView that enables scrolling in both vertical and horizontal axes simultaneously. It allows diagonal scrolling or axis locking using the diagonalDragBehavior parameter.
AI-written summary of version 0.1.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a single large child widget to scroll in both horizontal and vertical directions
- You want a behavior similar to SingleChildScrollView but in two dimensions
Skip it when
- You are displaying large lists or grids that benefit from lazy loading (use a two-dimensional grid or table instead)
- You only need standard single-axis scrolling
Strengths
- Enables two-dimensional scrolling for a single child widget
- Supports diagonal scrolling and axis locking options
- Includes cache extent and scroll position restoration features
Weaknesses
- Relies on a single child, so it is not optimized for massive lazy-loaded data sets
- Core two-dimensional functionality depends on underlying framework foundations
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
not documented
import 'package:single_child_two_dimensional_scroll_view/single_child_two_dimensional_scroll_view.dart';
SingleChildTwoDimensionalScrollView(
child: Container(
width: 2000,
height: 2000,
child: Text('2D Scrollable Content'),
),
)Alternatives
Packages that do the same job and could replace single_child_two_dimensional_scroll_view.
- pretty_diff_text
Widget that displays differences between two texts using RichText
53Compare - before_after
A Flutter widget that makes it easier to display the difference between two images using a slider.
50Compare - table_sticky_headers
A two-dimensional table widget with both sticky headers and a sticky legend cell.
50Compare - bubble_box
A customizable bubble-shaped container widget for Flutter.
44Compare