The named parameter 'intialWeight' isn't defined

57 views Asked by At

Try correcting the name to an existing named parameter's name, or defining a named parameter with the name 'intialWeight'. iam using package split_view

 intialWeight: widget.initialWeight,
3

There are 3 answers

0
Nayan Babariya On

Use the class "WeightLimit" instead of "initialWeight" See the changelog of v3.0.0 on pub.dev.

https://pub.dev/packages/split_view/changelog

0
Muazam R On

there isn't any 'initialWeight' parameter in SplitView

0
Loïc Yabili On

Since the version 3.0.0 the package split_view doesn't have any parameter named initialWeight

Removed fields minWidthSidebar/maxWidthSidebar/minHeightSidebar/maxHeightSidebar and initialWeight. Instead, Added the WeightLimit class so that we can specify the weight.

Check the package page to see how to use the split_view with the newest versions.

You can check the complete logs here.