ookami-kb / storybook_flutter

A storybook for Flutter widgets.
https://pub.dev/packages/storybook_flutter
MIT License
288 stars 66 forks source link

The getter 'knobs' isn't defined for the type 'BuildContext'. #139

Closed Raagull100 closed 5 months ago

Raagull100 commented 5 months ago

when i run the example in the main.dart file i get this error exactly in the below code snippet and also wherever i use context.knobs appBar: AppBar( title: Text(

              //here i get this error in the below line
              context.knobs.text(
                label: 'Title',
                initial: 'Scaffold',
                description: 'The title of the app bar.',
              ),
            ),
Raagull100 commented 5 months ago

it works with this version of storybook_flutter: ^0.14.1