ionicfirebaseapp / getwidget

Most popular and easy to use open source UI library with 1000+ Widgets to build flutter app.
https://www.getwidget.dev
MIT License
4.52k stars 602 forks source link

when GFToggle in Expanded(Row),whatever value(true/false),display is disable #354

Closed windinternet closed 6 months ago

windinternet commented 6 months ago

Describe the bug when GFToggle in Expanded(Row),whatever value(true/false),display is disable

To Reproduce

Row(
                children: [
                  const Text('Show'),
                  SizedBox(
                    width: UIState.padding,
                  ),
                  GFToggle(
                    value: true,
                    onChanged: (bool? checked) {
                      if (checked != null) {
                        // to do
                      }
                    },
                  )
                ],
)

Expected behavior none

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

windinternet commented 6 months ago

Correction: The cause of this issue should be an issue with the animation and state logic of GFToggle, rather than a layout issue.

Reproduction steps: Create a Statefull Widget, then create a Boolean field in the state class with an initial value set to false. Then, in a network request or a Future then, set the State field to true. You will find that GFToggle is still in the off state

windinternet commented 6 months ago

Unfortunately this library is no longer active, will be looking for other solutions