Move ensureInitialized
This commit is contained in:
parent
2546c20766
commit
6c78ea8471
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue