-
-
Save Khanin-devmode/9226a69aff7d49b1ef094dcd9ef30a84 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WidgetbookUseCase( | |
name: 'Usecase1', | |
builder: (BuildContext context) { | |
final width = context.knobs.double.slider( | |
label: 'width', min: 10, max: 100, initialValue: 50); | |
final height = context.knobs.double.slider( | |
label: 'height', min: 10, max: 100, initialValue: 50); | |
return Scaffold( | |
body: Center( | |
child: Container( | |
color: Colors.purpleAccent, | |
width: width, | |
height: height, | |
), | |
), | |
); | |
}, | |
), |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment