Git Product home page Git Product logo

flutter-app-demo's Introduction

flutter-rs

Crates.io flutter version Discord chat MIT licensed

Build flutter desktop app in dart & rust.

flutter-app-template

Get Started

Install requirements

Develop

  • install the cargo flutter command

    cargo install cargo-flutter

  • create your new project from the template

    git clone https://github.com/flutter-rs/flutter-app-template

  • To develop with cli hot-reloading:

    cd flutter-app-template

    cargo flutter run

Distribute

  • To build distribution, use: cargo flutter --format appimage build --release

Contribution

To contribute to flutter-rs, please see CONTRIBUTING.

ChangeLog

CHANGELOG.

flutter-app-demo's People

Contributors

999eagle avatar dvc94ch avatar gliheng avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

flutter-app-demo's Issues

AppImageKit and gpg

Hi, you should add those kind of resources in the documentation as tools to release the app ๐Ÿ˜Ž

running error

Traceback (most recent call last):
File "scripts/run.py", line 55, in
cwd = PROJ_DIR, check = True)
File "/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py", line 472, in run
with Popen(*popenargs, **kwargs) as process:
File "/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py", line 775, in init
restore_signals, start_new_session)
File "/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py", line 1522, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'flutter': 'flutter'

Demo segfaults on start up after FlutterEngineRun

Distro: Arch Linux
Kernel ver: 5.3.8
Flutter ver: 1.10.16-pre.93
Rust ver: 1.38.0

This also occurs for me in the template.

Initially I had though that the problem was isolated to window creation, but I threw in thread sleeps to narrow down where the cause of the problem was and it looks like a deadlock is happening after flutter_engine_sys::FlutterEngineRun is run within the engine. The segfault happens directly after that function when calling thread::sleep.

dmesg output:
io.flutter.ui[63336]: segfault at 0 ip 00007f4e900d966c sp 00007f4e8b2dc0d0 error 4 in libflutter_engine.so[7f4e8fc9d000+a20000]
This might indicate a null pointer?

It might be more appropriate to put this in the flutter-rs repo.

Fail to run the demo

โฏ cargo flutter run                                    
flutter build bundle lib/main.dart
gzip: warning: <stdin>: trailing junk was ignored                       
tar: Child returned status 1                                            
tar: Error is not recoverable: exiting now                              
gzip: warning: <stdin>: trailing junk was ignored                       
tar: Child returned status 1                                            
tar: Error is not recoverable: exiting now                              
Failed to extract .tar.gz stream to /home/lucius/GitHub/flutter/.pub-cache/_temp/dirFAUDNT (exit code 2).
package:pub/src/io.dart 873:5               extractTarGz                
===== asynchronous gap ===========================                      
package:pub/src/source/hosted.dart 323:11   BoundHostedSource._download 
===== asynchronous gap ===========================                      
package:pub/src/source/hosted.dart 217:13   BoundHostedSource.downloadToSystemCache
package:pub/src/entrypoint.dart 388:48      Entrypoint._get.<fn>        
package:pub/src/http.dart 271:51            withDependencyType          
package:pub/src/entrypoint.dart 384:12      Entrypoint._get             
dart:async                                  Future.wait                 
package:pub/src/entrypoint.dart 245:18      Entrypoint.acquireDependencies
dart:async                                  _completeOnAsyncReturn      
package:pub/src/solver/version_solver.dart  VersionSolver.solve         
dart:async                                  _completeOnAsyncReturn      
package:pub/src/solver/version_solver.dart  VersionSolver._result       
This is an unexpected error. Please run                                 
                                                                        
    pub --trace '--verbosity=warning' get --no-precompile               
                                                                        
and include the logs in an issue on https://github.com/dart-lang/pub/issues/new
Running "flutter pub get" in flutter-app-template...                    
pub get failed (1; and include the logs in an issue on https://github.com/dart-lang/pub/issues/new)
Error: Flutter did not exit successfully

Latest commit breaks the demo

5cf2df4 seems to break the demo. Reverting it allowed the demo to launch.

expected reference, found struct `std::string::String`
help: consider borrowing here: `&CHANNEL_NAME.to_string()`

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.