Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Ephenodrom
    @Ephenodrom
    Ah ok interesting
    Yegor
    @yjbanov
    @Ephenodrom we are moving everything into the main Flutter repo right now.
    Randal L. Schwartz
    @RandalSchwartz
    I know, I’ve done it already.
    no more need for require “flutter_web.dart” like before. it’s just flutter now
    Yegor
    @yjbanov
    @RandalSchwartz package:flutter_web is the less unstable of the two as of today :)
    But if your pain threshold is high feel free to try out the main version.
    Ephenodrom
    @Ephenodrom
    @yjbanov where do I find it? I can only find the normal flutter files. Currently on my smartphone... maybe I miss something.
    Randal L. Schwartz
    @RandalSchwartz
    where do you find what? flutter_web is becoming part of flutter.
    you enable it with flutter config —enable-web
    just like flutter-desktop is also being folded in.
    although I didn’t have as much success with that.
    Ephenodrom
    @Ephenodrom
    As Yegor said they are moving the files to the flutter repo right no, so I thought you can take a look at them on the dev branch.
    Randal L. Schwartz
    @RandalSchwartz
    yeah, I’m on master branch for now, with the associated risks. :)
    but I need it for a demo next weekend.
    Ephenodrom
    @Ephenodrom
    @yjbanov little hint, rendering the flutter web version under a certain <div> would be really really great! Currently working on a website for my package and I want to include a live example. The site is build with laravel + bootstrap and on the example page I want to integrate live examples.
    So I could add a little preview window of the typical smartphone format.
    Currently I can only create a full page application.
    Randal L. Schwartz
    @RandalSchwartz
    I would presume an IFrame would work
    Abhilash Chandran
    @Abhilash-Chandran
    Anybody know how to embed a script tage dynamically into a flutter_web page. I tried this simple approach https://stackoverflow.com/questions/19467115/in-dart-parse-html-string-to-dom still it gets removed by the either the browser or flutter itself. I want to embed a bokeh plot which is actually a script tag.
    Atakan Mert Kaya
    @Sekaiichi4_gitlab

    @Ephenodrom we are moving everything into the main Flutter repo right now.

    :o So wait... does that mean that we can create Flutter web applications without forking to the Flutter_web, like RIGHT NOW. . .or do we still have to wait a litte?

    Randal L. Schwartz
    @RandalSchwartz
    If you’re on master, just flutter config —enable-web and there’s one more command to issue.
    flutter create —web .
    yes
    @Sekaiichi4_gitlab ^^
    Atakan Mert Kaya
    @Sekaiichi4_gitlab
    @RandalSchwartz Thank you! I will try it out right now!
    Randal L. Schwartz
    @RandalSchwartz
    those double dashes got collapsed
    flutter config dash dash enable-web
    flutter create dash dash web .
    but be sure you choose “flutter branch master” first
    Atakan Mert Kaya
    @Sekaiichi4_gitlab
    @RandalSchwartz Got it!
    Randal L. Schwartz
    @RandalSchwartz
    “flutter channel master"
    and then to launch on web: flutter run -d chrome
    that was a single dash. :)
    Atakan Mert Kaya
    @Sekaiichi4_gitlab

    @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?
    Atakan Mert Kaya
    @Sekaiichi4_gitlab
    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
    Atakan Mert Kaya
    @Sekaiichi4_gitlab
    I did do that one, and it worked.
    Randal L. Schwartz
    @RandalSchwartz
    hmm.
    Atakan Mert Kaya
    @Sekaiichi4_gitlab
    I was also able to create a web project
    Randal L. Schwartz
    @RandalSchwartz
    and you’re on master branch?
    Atakan Mert Kaya
    @Sekaiichi4_gitlab
    Yes
    Randal L. Schwartz
    @RandalSchwartz
    “flutter upgrade"
    I gotta drive for a bit… I’ll check back in 15 minutes or so.
    Atakan Mert Kaya
    @Sekaiichi4_gitlab

    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.
    Atakan Mert Kaya
    @Sekaiichi4_gitlab

    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?