37 lines
942 B
Dart
37 lines
942 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:matule_uikit/matule_uikit.dart';
|
|
import 'package:storybook_flutter/storybook_flutter.dart';
|
|
|
|
class StorybookApp extends StatelessWidget {
|
|
const StorybookApp({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Storybook(
|
|
wrapperBuilder: (BuildContext context, Widget? widget) {
|
|
return UtilsMaterialWrapper(widget: widget);
|
|
},
|
|
stories: [
|
|
Story(
|
|
name: "test",
|
|
builder: (BuildContext context) {
|
|
var theme = CustomTheme.of(context);
|
|
return SizedBox.expand(
|
|
child: FilledButton(
|
|
onPressed: () {
|
|
debugPrint("test");
|
|
},
|
|
child: Text("Вход", style: theme.styles.title1ExtraBold24),
|
|
),
|
|
);
|
|
},
|
|
),
|
|
],
|
|
);
|
|
}
|
|
}
|
|
|
|
showStorybook() {
|
|
runApp(StorybookApp());
|
|
}
|