gliheng / flutter-app-template Goto Github PK
View Code? Open in Web Editor NEWDesktop flutter app template
License: MIT License
Desktop flutter app template
License: MIT License
I am using Azure pipelines because it allows you to build and test on real desktops and mobiles.
I have not tried it with flutter and python but it should work.
It is easy to use and connects to github.
Its also very fast. Maybe 20 seconds and the app is built.
You can pick different OS versions, so you will see when things break before users do.
I noticed that you using python for build and packaging. I have not checked if you can use python easily using azure pipelines.
https://docs.microsoft.com/en-us/azure/devops/pipelines/languages/python?view=azure-devops
Maybe its possible to also incorporate fastlane and signing and expose that from the pything scripts ?
I'm starting a fresh project using the latest flutter version, but when I run ./scripts/run.py
I get the following error at the end of the compilation steps:
...
Compiling tokio-tcp v0.1.3
Compiling tokio v0.1.18
Compiling cargo_toml v0.4.0
Compiling flutter-engine v0.2.1
Compiling shannon_editor v0.1.0 (/Users/duane/Projects/flutter-app/rust)
Finished dev [unoptimized + debuginfo] target(s) in 1m 01s
Running `target/debug/shannon_editor`
dyld: Library not loaded: @rpath/FlutterEmbedder.framework/Versions/A/FlutterEmbedder
Referenced from: /Users/duane/Projects/flutter-app/rust/target/debug/shannon_editor
Reason: image not found
I'm not sure what @rpath
should expand to, so I'm not sure where to look for this library.
Mac OS X 10.14.3
Rust:
rustc --version
rustc 1.32.0 (9fda7c223 2019-01-16)
Flutter:
~/flutter/bin/flutter --version
Flutter 1.2.1 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 8661d8aecd (7 weeks ago) • 2019-02-14 19:19:53 -0800
Engine • revision 3757390fa4
Tools • Dart 2.1.2 (build 2.1.2-dev.0.0 0a7dcf17eb)
In https://github.com/gliheng/flutter-app-template/blob/master/README.md, the links on top are broken.
I think the best license will be Apache 2
because it allows to make application based on this template under any over license.
I got the below error once running cargo run
, I'm at Windows 10:
Compiling flutter-app v0.1.2 (C:\Users\hasan_yousef\Downloads\flutter-app-template-master\flutter-app-template-master\rust)
error[E0432]: unresolved import `cargo_toml::TomlManifest`
--> build.rs:3:5
|
3 | use cargo_toml::TomlManifest;
| ^^^^^^^^^^^^^^^^^^^^^^^^ no `TomlManifest` in the root. Did you mean to use `Manifest`?
error[E0277]: the size for values of type `str` cannot be known at compilation time
--> build.rs:21:9
|
21 | let version = manifest.package.metadata.expect("Flutter config in Cargo.toml invalid").flutter.version;
| ^^^^^^^ doesn't have a size known at compile-time
|
= help: the trait `std::marker::Sized` is not implemented for `str`
= note: to learn more, visit <https://doc.rust-lang.org/book/second-edition/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
= note: all local variables must have a statically known size
= help: unsized locals are gated as an unstable feature
error: aborting due to 2 previous errors
Some errors occurred: E0277, E0432.
For more information about an error, try `rustc --explain E0277`.
error: Could not compile `flutter-app`.
warning: build failed, waiting for other jobs to finish...
error: build failed
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.