Move ensureInitialized

This commit is contained in:
Feodor Fitsner 2024-02-09 12:53:58 -08:00
parent 2546c20766
commit 6c78ea8471
1 changed files with 4 additions and 4 deletions

View File

@ -29,10 +29,6 @@ var createControlFactories = [
{% endfor %} {% endfor %}
]; ];
{% for dep in cookiecutter.flutter.dependencies %}
{{ dep }}.ensureInitialized();
{% endfor %}
const pythonScript = """ const pythonScript = """
import certifi, os, runpy, socket, sys, traceback import certifi, os, runpy, socket, sys, traceback
@ -93,6 +89,10 @@ void main() async {
debugPrint = (String? message, {int? wrapWidth}) => null; debugPrint = (String? message, {int? wrapWidth}) => null;
} }
{% for dep in cookiecutter.flutter.dependencies %}
{{ dep }}.ensureInitialized();
{% endfor %}
runApp(FutureBuilder( runApp(FutureBuilder(
future: prepareApp(), future: prepareApp(),
builder: (BuildContext context, AsyncSnapshot snapshot) { builder: (BuildContext context, AsyncSnapshot snapshot) {