Rename asset to sample_data.json

pull/13/head
singerdmx 4 years ago
parent 530a494e9e
commit bb1e50474d
  1. 0
      app/assets/sample_data.json
  2. 2
      app/lib/pages/home_page.dart

@ -29,7 +29,7 @@ class _HomePageState extends State<HomePage> {
Future<void> _loadFromAssets() async { Future<void> _loadFromAssets() async {
try { try {
final result = await rootBundle.loadString('assets/welcome.note'); final result = await rootBundle.loadString('assets/sample_data.json');
final doc = Document.fromJson(jsonDecode(result)); final doc = Document.fromJson(jsonDecode(result));
setState(() { setState(() {
_controller = QuillController( _controller = QuillController(

Loading…
Cancel
Save