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.

Libraries

codeview