Skip to content

Latest commit

 

History

19 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

splittable_view

A splittable view is a widget that manages child widgets in a separated (split) areas. I supports more that 2 children in a single splittable view. This was an experimental project which is not completed so it still has bugs.

Example

SplitterTheme(
  data: SplitterThemeData(
    indent: 16.0,
    endIndent: 16.0,
    space: 12.0,
  ),
  child: SplittableColumn(
    initialWeights: initialWeights,
    onSplittingEnd: (weights) => preferences.setStringList(
        storageKey, weights.map((ratio) => '$ratio').toList()),
    onResetWeights: () => preferences.remove(storageKey),
    children: [
      Scrollbar(
        child: ListView(
          children: List.generate(
            50,
            (index) => ListTile(
              title: Text('Location $index'),
            ),
          ),
        ),
      ),
      Scrollbar(
        child: ListView(
          children: List.generate(
            50,
            (index) => ListTile(
              title: Text('Camera $index'),
            ),
          ),
        ),
      ),
    ],
  ),
),

This project is a starting point for a Dart package, a library module containing code that can be shared easily across multiple Flutter or Dart projects.

About

A splittable view is a widget that manages child widgets in a separated (split) areas. I supports more that 2 children in a single splittable view.

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages