From bb1e50474dc7df1bf90224468138fd44de72c1f1 Mon Sep 17 00:00:00 2001 From: singerdmx Date: Tue, 22 Dec 2020 01:54:25 -0800 Subject: [PATCH] Rename asset to sample_data.json --- app/assets/{welcome.note => sample_data.json} | 0 app/lib/pages/home_page.dart | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename app/assets/{welcome.note => sample_data.json} (100%) diff --git a/app/assets/welcome.note b/app/assets/sample_data.json similarity index 100% rename from app/assets/welcome.note rename to app/assets/sample_data.json diff --git a/app/lib/pages/home_page.dart b/app/lib/pages/home_page.dart index 190db173..d77228c0 100644 --- a/app/lib/pages/home_page.dart +++ b/app/lib/pages/home_page.dart @@ -29,7 +29,7 @@ class _HomePageState extends State { Future _loadFromAssets() async { try { - final result = await rootBundle.loadString('assets/welcome.note'); + final result = await rootBundle.loadString('assets/sample_data.json'); final doc = Document.fromJson(jsonDecode(result)); setState(() { _controller = QuillController(