caduandrade / multi_split_view

Provides horizontal or vertical multiple split view for Flutter.
https://caduandrade.github.io/multi_split_view/
MIT License
129 stars 24 forks source link

Resize doesn't seem to work #53

Closed valebar closed 3 months ago

valebar commented 3 months ago

Hi,

I just wanted to say thank you for creating such an amazing plugin! However, I have noticed that the resize feature doesn't seem to be working properly. Is there anything that can be done to fix this? I would really appreciate your help as I believe this feature would greatly benefit my work.

The problem can be seen in this example app repo link. To be more precise in lib/widgets/draggable_tree_multilist_view.dart

@override
Widget build(BuildContext context) {
    return MultiSplitView(
        key: _rootKey,
        resizable: false,
        antiAliasingWorkaround: false,
        controller: _controllers[_rootKey]!,
        axis: widget.axis,
        children: _widgets,
        onWeightChange: () {
          _areaMap[_rootKey] = List<double>.generate(
            _widgets.length,
            (index) => _controllers[_rootKey]!.areas[index].weight!,
          );
          debugPrint("Root AreaMap: ${_areaMap[_rootKey]}");
        });
  }

Thank you!

valebar commented 3 months ago

Never mind... it was a problem on my side :) :) :)