flutter_lexical_reader 0.0.15 flutter_lexical_reader: ^0.0.15 copied to clipboard
is a powerful and flexible library for reading and analyzing lexical structures in text data inside Flutter applications. This package provides intuitive tools for extracting, analyzing and manipulati [...]
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
useMaterial3: true,
),
home: MyHomePage(),
);
}
}
class MyHomePage extends StatefulWidget {
MyHomePage({super.key});
@override
State<MyHomePage> createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
final mockData = {
"root": {
"children": [
{
"children": [
{
"detail": 0,
"format": 0,
"mode": "normal",
"style": "",
"text": "Hello world",
"type": "text",
"version": 1
}
],
"direction": "ltr",
"format": "",
"indent": 0,
"type": "paragraph",
"version": 1
}
],
"direction": "ltr",
"format": "",
"indent": 0,
"type": "root",
"version": 1
}
};
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(),
body: const Center(
// child: LexicalParser(),
),
);
}
}