Skip to main content

Flutter Sample

This is my first document!

main.dart
void main() async {
runApp(const MainApp());
}

class MainApp extends StatelessWidget {
const MainApp({super.key});


Widget build(BuildContext context) {
return MaterialApp(
theme: ThemeData(),
home: const JsonView(),
);
}
}

class JsonView extends StatelessWidget {
const JsonView({super.key});


Widget build(BuildContext context) {
return Scaffold(
body: SafeArea(
child: Markdown(
extensionSet:
md.ExtensionSet(md.ExtensionSet.gitHubFlavored.blockSyntaxes, [
...md.ExtensionSet.gitHubFlavored.inlineSyntaxes,
]),
data: jsonString,
)),
);
}
}