commit
b6b6f3426f
|
|
@ -7,6 +7,7 @@
|
||||||
"org_name": "com.flet",
|
"org_name": "com.flet",
|
||||||
"company_name": "Your Company",
|
"company_name": "Your Company",
|
||||||
"copyright": "Copyright (c) 2023 Your Company",
|
"copyright": "Copyright (c) 2023 Your Company",
|
||||||
|
"flutter": null,
|
||||||
"sep": "/",
|
"sep": "/",
|
||||||
"kotlin_dir": "{{ cookiecutter.org_name.replace('.', cookiecutter.sep) }}{{ cookiecutter.sep }}{{ cookiecutter.project_name }}{{ cookiecutter.sep }}",
|
"kotlin_dir": "{{ cookiecutter.org_name.replace('.', cookiecutter.sep) }}{{ cookiecutter.sep }}{{ cookiecutter.project_name }}{{ cookiecutter.sep }}",
|
||||||
"hide_loading_animation": true,
|
"hide_loading_animation": true,
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,10 @@ import 'package:path/path.dart' as path;
|
||||||
import 'package:serious_python/serious_python.dart';
|
import 'package:serious_python/serious_python.dart';
|
||||||
import 'package:url_strategy/url_strategy.dart';
|
import 'package:url_strategy/url_strategy.dart';
|
||||||
|
|
||||||
|
{% for dep in cookiecutter.flutter.dependencies %}
|
||||||
|
import 'package:{{ dep }}/{{ dep }}.dart' as {{ dep }};
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
const bool isProduction = bool.fromEnvironment('dart.vm.product');
|
const bool isProduction = bool.fromEnvironment('dart.vm.product');
|
||||||
|
|
||||||
const assetPath = "app/app.zip";
|
const assetPath = "app/app.zip";
|
||||||
|
|
@ -19,6 +23,12 @@ final hideLoadingPage =
|
||||||
const outLogFilename = "out.log";
|
const outLogFilename = "out.log";
|
||||||
const errorExitCode = 100;
|
const errorExitCode = 100;
|
||||||
|
|
||||||
|
var createControlFactories = [
|
||||||
|
{% for dep in cookiecutter.flutter.dependencies %}
|
||||||
|
{{ dep }}.createControl,
|
||||||
|
{% endfor %}
|
||||||
|
];
|
||||||
|
|
||||||
const pythonScript = """
|
const pythonScript = """
|
||||||
import certifi, os, runpy, socket, sys, traceback
|
import certifi, os, runpy, socket, sys, traceback
|
||||||
|
|
||||||
|
|
@ -79,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) {
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ dependencies:
|
||||||
# path: src/serious_python
|
# path: src/serious_python
|
||||||
# ref: 'd059aef'
|
# ref: 'd059aef'
|
||||||
|
|
||||||
flet: ^0.19.0
|
flet: ^0.20.0
|
||||||
# flet:
|
# flet:
|
||||||
# git:
|
# git:
|
||||||
# url: https://github.com/flet-dev/flet.git
|
# url: https://github.com/flet-dev/flet.git
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
importScripts("https://cdn.jsdelivr.net/pyodide/v0.24.1/full/pyodide.js");
|
importScripts("https://cdn.jsdelivr.net/pyodide/v0.25.0/full/pyodide.js");
|
||||||
|
|
||||||
self.pythonModuleName = null;
|
self.pythonModuleName = null;
|
||||||
self.initialized = false;
|
self.initialized = false;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue