From 1213cab5d81360e643b795b003d35c6b99c33efd Mon Sep 17 00:00:00 2001 From: Carlos Eduardo Leite de Andrade Date: Thu, 13 Jun 2024 09:12:24 -0300 Subject: [PATCH] Version 3.2.0 --- CHANGELOG.md | 3 ++- example/pubspec.lock | 2 +- lib/src/controller.dart | 2 +- lib/src/multi_split_view.dart | 1 - pubspec.yaml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1732e1f..f9c9090 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,8 @@ ## 3.2.0 * `Area` - * Adding `id` to be used as an internal Key and facilitating reconfiguration of the layout while maintaining the state of the widgets. + * Adding `id` to be used as an internal Key and facilitating reconfiguration of the layout while maintaining the state of the widgets. +* Avoiding rebuilding areas when hovering over the divider. ## 3.1.0 diff --git a/example/pubspec.lock b/example/pubspec.lock index c48d193..9d0d551 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -129,7 +129,7 @@ packages: path: ".." relative: true source: path - version: "3.1.0" + version: "3.2.0" path: dependency: transitive description: diff --git a/lib/src/controller.dart b/lib/src/controller.dart index 0d03479..5070d25 100644 --- a/lib/src/controller.dart +++ b/lib/src/controller.dart @@ -70,7 +70,7 @@ class MultiSplitViewController extends ChangeNotifier { int index = 0; for (Area area in _areas) { if (!ids.add(area.id)) { - throw StateError('Area with duplicate id.'); + throw StateError('Duplicate area id.'); } AreaHelper.setIndex(area: area, index: index); if (area.flex != null) { diff --git a/lib/src/multi_split_view.dart b/lib/src/multi_split_view.dart index e0ccd6c..ce8e26b 100644 --- a/lib/src/multi_split_view.dart +++ b/lib/src/multi_split_view.dart @@ -1,4 +1,3 @@ -import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; import 'package:flutter/widgets.dart'; import 'package:multi_split_view/src/area.dart'; diff --git a/pubspec.yaml b/pubspec.yaml index dcabc1c..53c3cd7 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: multi_split_view description: Provides horizontal or vertical multiple split view for Flutter. -version: 3.1.0 +version: 3.2.0 repository: https://github.com/caduandrade/multi_split_view screenshots: