profileStory top-level property
Story
profileStory
getter/setter pair
Implementation
Story profileStory = Story(
name: 'Profile Screen',
builder: (context) {
final userName = context.knobs.text(
label: 'User Name',
initial: 'SamLee',
);
final showLogout = context.knobs.boolean(
label: 'Show Logout Button',
initial: true,
);
return Scaffold(
body: ProfileScreen(
userName: userName,
showLogout: showLogout,
avatarBackgroundColor: Colors.blue,
),
);
},
);