codeview 0.0.11 codeview: ^0.0.11 copied to clipboard
A package with header, codeview, paragraph and much more to help you make an article style page.
Want to show some code blocks inside your flutter project?
Features #
CodeView with a lot of optioal features.
Getting started #
Explore the usage section.
Usage #
class Example extends StatelessWidget {
const Example({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: CodeView(
code: """
MaterialButton(
child: Text("Click here"),
onPressed: () {
print("Clicked")
},
),
""",
backgroundColor: Colors.black45,
textColor: Colors.white,
),
),
);
}
}
Additional information #
Do not leave without leaving a like.