Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Randal L. Schwartz
    @RandalSchwartz
    “flutter channel master"
    and then to launch on web: flutter run -d chrome
    that was a single dash. :)
    Ghost
    @ghost~5d254470d73408ce4fc5ac40

    @RandalSchwartz

    and then to launch on web: flutter run -d chrome

    Everything worked except for this line. As I get an error saying, "No devices found with name or id matching 'chrome' "

    Randal L. Schwartz
    @RandalSchwartz
    yeah, was working for me last weekend.
    did you do the config?
    Ghost
    @ghost~5d254470d73408ce4fc5ac40
    Do I need to do the config in the project terminal? or overal cmd ?
    Randal L. Schwartz
    @RandalSchwartz
    flutter config dash dash enable-web
    anywhere
    Ghost
    @ghost~5d254470d73408ce4fc5ac40
    I did do that one, and it worked.
    Randal L. Schwartz
    @RandalSchwartz
    hmm.
    Ghost
    @ghost~5d254470d73408ce4fc5ac40
    I was also able to create a web project
    Randal L. Schwartz
    @RandalSchwartz
    and you’re on master branch?
    Ghost
    @ghost~5d254470d73408ce4fc5ac40
    Yes
    Randal L. Schwartz
    @RandalSchwartz
    “flutter upgrade"
    I gotta drive for a bit… I’ll check back in 15 minutes or so.
    Ghost
    @ghost~5d254470d73408ce4fc5ac40

    I gotta drive for a bit… I’ll check back in 15 minutes or so.

    Alright ^^

    @RandalSchwartz Got it to start building, seems like I missed one more dash before the enable-web command. I do however get a new issue right now.
    PS C:\Users\guest3\FlutterProjects\new_web_test> flutter run -d chrome 
    Bad state: Unable to start build daemon.
    #0      _handleDaemonStartup (package:build_daemon/client.dart:82:5)    
    <asynchronous suspension>
    #1      BuildDaemonClient.connect (package:build_daemon/client.dart:183:11)
    <asynchronous suspension>
    #2      BuildDaemonCreator._connectClient
    (package:flutter_tools/src/build_runner/web_fs.dart:306:30)
    #3      BuildDaemonCreator.startBuildDaemon
    (package:flutter_tools/src/build_runner/web_fs.dart:271:46)
    <asynchronous suspension>
    #4      WebFs.start (package:flutter_tools/src/build_runner/web_fs.dart:143:8)
    <asynchronous suspension>
    #5      ResidentWebRunner.run
    (package:flutter_tools/src/build_runner/resident_web_runner.dart:156:34)
    <asynchronous suspension>
    #6      RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:458:37)
    <asynchronous suspension>
    #23     Future._propagateToListeners (dart:async/future_impl.dart:707:32)
    #24     Future._completeWithValue (dart:async/future_impl.dart:522:5)
    #25     Future._asyncComplete.<anonymous closure> (dart:async/future_impl.dart:552:7)
    #26     _rootRun (dart:async/zone.dart:1124:13)
    #27     _CustomZone.run (dart:async/zone.dart:1021:19)
    #28     _CustomZone.runGuarded (dart:async/zone.dart:923:7)
    #29     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:963:23)       
    #30     _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
    #31     _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
    #32     _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:116:13)
    #33     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:173:5)        
    
    
    Building application for the web...                                18.0s
    Failed to build application for the web.
    Randal L. Schwartz
    @RandalSchwartz
    weird. just worked for me.
    Ghost
    @ghost~5d254470d73408ce4fc5ac40

    Do you perhaps have

    dev_dependencies:
    build_daemon: ^1.0.0
    build_runner: ^1.4.0
    build_web_compilers: ^2.0.0

    in your pubspec.yaml?

    LiJianying
    @lijy91
    ezgif-4-106b68f419ae.gif
    Ghost
    @ghost~5d254470d73408ce4fc5ac40

    Do you perhaps have

    dev_dependencies:
    build_daemon: ^1.0.0
    build_runner: ^1.4.0
    build_web_compilers: ^2.0.0

    in your pubspec.yaml?

    Or would these not be necessary anymore?

    Jonah Williams
    @jonahwilliams
    The build_runner dependencies are not necessary if you are using the flutter tool (in fact, they are completely ignored). There does seem to be an issue with windows though, I'm looking at that currently
    Ghost
    @ghost~5d254470d73408ce4fc5ac40
    @jonahwilliams Ah I see, thank you for the notice. Guess I will wait a little longer then.

    @jonahwilliams As I couldn't run the flutter run -d chrome, I tried to debug it with by running pub run build_runner daemon . . .which then gave me the following error;

    Could not find a file named "pubspec.yaml" in "C:\Users\guest3\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\petitparser-2.4.0".

    Jonah Williams
    @jonahwilliams
    you won't be able to run it with build runner manually
    Ghost
    @ghost~5d254470d73408ce4fc5ac40
    @jonahwilliams Hm... So I guess the best action I can take for the moment is to wait for the windows issue to be fixed? Or is there anything that I can do on my side to make it work?
    Ephenodrom
    @Ephenodrom
    @RandalSchwartz I switched from the flutter web to the normal flutter
    create a new web project and compared the files
    before i had a /web/main.dart file
    with flutter create --web
    there is no /web/main.dart file ... any idea if this file is not necessary anymore ?
    Ghost
    @ghost~5d254470d73408ce4fc5ac40
    @Ephenodrom Are you able to flutter run -d chrome tho?
    Ephenodrom
    @Ephenodrom
    yeah its working
    but i am on Ubunto 18.04
    Ghost
    @ghost~5d254470d73408ce4fc5ac40

    but i am on Ubunto 18.04

    I see ;3 tnx for the info.

    Ephenodrom
    @Ephenodrom

    but i normally started the app with

    webdev serve --auto restart

    So i can use any other browser

    but that seems not to work anymore after switching to flutter instead of flutter_web
    Ephenodrom
    @Ephenodrom
    flutter pub global run webdev serve
    webdev could not run for this project.
    You have a dependency on `flutter` which is not supported for flutter_web tech preview. See https://flutter.dev/web for more details.
    pub finished with exit code 78
    Ephenodrom
    @Ephenodrom
    someone knows the alternativ to webdev serve --auto restart it is anoying to always start an extra instance of chrome with flutter run -d chrome
    Dima Rostopira
    @rostopira
    Could anyone bring some light on this PR flutter/flutter#37819 ?
    It's not merging 19 days already, I'm tired explaining to my PM such delay
    Ephenodrom
    @Ephenodrom
    how can i add chromium as a device ?
    or Firefox ?
    thomashbailey
    @thomashbailey

    Does anyone know of a good way to share mobile code with flutter_web?
    I am wanting something like

    ifdef FLUTTER_WEB

    import 'package:flutter_web/material.dart';

    else

    import 'package:flutter/material.dart';

    endif

    Randal L. Schwartz
    @RandalSchwartz
    and package:flutter_web is going away.
    it’ll all be just package:flutter soon.
    thomashbailey
    @thomashbailey
    ok I'll check that out.
    I knew it was going away when it is out of the preview. Any idea when that will be?