Skip to content

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.

License

Notifications You must be signed in to change notification settings

bambinoua/splittable_view

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages