assigning a unique id for button [on hold]

57
January 11, 2019, at 6:50 PM

suppose there exist a form and has two button ,i want one button to get disabled until all parameter is filled by user while other Enabled,for users to navigate to back panel.Is there exist a function to assign unique id to buttons?

Answer 1

You don't need a unique id for that

FlatButton(Text('foo'), onPressed: areAllParametersFilled ? _onFooPressed : null),
FlatButton(Text('bar'), onPressed: !areAllParametersFilled ? _onBarPressed : null),
READ ALSO
Representing an ArrayList in a TextView

Representing an ArrayList in a TextView

I have created an ArrayList in an Android

53
CMake Error:Error occurred while communicating with CMake server

CMake Error:Error occurred while communicating with CMake server

When I new a CMake project by the Android Studio,it occures a problem when I open it by the first time:

96
How to prevent double items but also prevent entire list from refreshing?

How to prevent double items but also prevent entire list from refreshing?

I am getting a JSON Array of user ids strings from a database:

34