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
    but this may be wrong because of VPNs and NAT’ed addresses.
    so what’s your actual goal?
    juanjoserodrigolazaro
    @juanjoserodrigolazaro
    I wanted lo get the latitud and longitud for getting near people
    Randal L. Schwartz
    @RandalSchwartz
    Yeah, desktops don’t provide that. The best you can do is reverse-geo the IP address, and that’s not reliable.
    juanjoserodrigolazaro
    @juanjoserodrigolazaro
    Thanks
    not sure if that works via dart:html or not....
    whereisdarran
    @whereisdarran_twitter
    juanjoserodrigolazaro
    @juanjoserodrigolazaro
    @wstrange working i found documentation at dart html you cant get lat and long with navigator. It has some exceptions like chrome that is only with https!
    So you cant test on yout localhost
    QubiSmartLocks
    @QubiSmartLocks
    Hi everybody!
    Any one knows how to focus next TextFormField when user type TAB/ENTER keys on desktop keyboard, using any web navigator (Safari/Chrome/etc)? I am trying using FocusNode with no success.
    Atakan Mert Kaya
    @Sekaiichi4_gitlab
    @QubiSmartLocks I'm also trying to figure this out right now, will let you know if I found a way to do it.
    Atakan Mert Kaya
    @Sekaiichi4_gitlab
    @QubiSmartLocks Figured it out, just wrap your TextField/TextFormField in a RawKeyboardListener like below.
    RawKeyboardListener(
         focusNode: FocusNode(),
         onKey: (event) {
              if (event.runtimeType == RawKeyDownEvent && (event.logicalKey.keyId == 54)) {
                   print("ENTER Key pressed");
                   //Do something
              }
         },
         child: TextFormField()),
    Atakan Mert Kaya
    @Sekaiichi4_gitlab
    I have to add to this, that it does somehow screw up your FocusNode of your TextFormFields...so be warned depending on your usecase.
    Dima Rostopira
    @rostopira
    Does anyone know how to preserve firebase auth when using firebase run? I have to reauth on every launch, it's annoying
    QubiSmartLocks
    @QubiSmartLocks
    @Sekaiichi4_gitlab my problem is not to get ENTER key presses, as you wrote, is keyId 54 (Digit 6???) and TAB key, keyId "Digit 2" (don't ask). My real problem is to focus next node. When I put node.nextFocus(); it jumps twice! Try it: Put 3+ TextFormField with all focusNode assigned... then, when ENTER key pressed, just go next... it jumps twice!
    clearsense
    @clearsense
    Hi, guys! I'm writing front for new project on flutter_web.
    Is there good way to rewrite url when using onGenerateRoute+MaterialPageRoute?
    There is workaround that i found so far: pass path param to page widget and do manual rewrite in initState:
    window.history.replaceState(null, widget.title, widget.path);
    But it isn't so great way, not very convenient, but mainly case of such scenario:
    "/#/" -> "/" -> press button -> "/profile" -> press "Back" browser button -> "/#/" (not "/")
    UPD. This is slightly better, but still hope to find "out of the box" way to do it
    window.history.replaceState(null, widget.title, '/#'+widget.path);
    Atakan Mert Kaya
    @Sekaiichi4_gitlab
    @QubiSmartLocks To be honest I have the same problem, even when you don't use the nextfocus() but instead manually request focus on the focus fields it skips. But I believe that it only happens because the next RawKeyboardListener is also active, so when you press ENTER, the next field also corresponds to that keypress. I wonder if there is a way to disable a RawKeyboardListener when it's focus node isn't focussed.
    Atakan Mert Kaya
    @Sekaiichi4_gitlab
    @QubiSmartLocks One solution is to have a boolean value "canEnter" check to see if you can focus on the next TextFormField, and have it go false as soon as the user presses ENTER. After which you can allow the user to only press Enter again by putting the boolean back on true only with OnChanged() of the TextFormField.
    JianyingLi
    @lijy91
    @yjbanov If I embed a flutter web project into an iframe, its Navigator won't work. Have you ever encountered such a problem?
    Erin
    @Erinziyi
    any one try lottie in flutter?
           child: LottieView.fromFile(
              filePath: "assets/animation_books.json",
              autoPlay: true,
              loop: true,
              onViewCreated: onViewCreatedFile,
            ),
    dont know why cant work
    agreensh
    @agreensh
    @Erinziyi I didn't have success with that package, but I used https://github.com/simolus3/fluttie (though it doesn't have iOS support yet)
    Atakan Mert Kaya
    @Sekaiichi4_gitlab

    Anyone here who has experience with the Dart version of Chartjs?

    I am trying to create a chart that will scale my data based on its time,

    var xAx = charts.ChartXAxe(
        display: true,
        barThickness: 2,
        type: 'time',
        time: charts.TimeScale(
          parser: "HH:mm:ss",
          unit: 'hour',
          unitStepSize: 1,
          //round: 'hour', // this will round the data.
          tooltipFormat: "HH:mm:ss",
          displayFormats: charts.TimeDisplayFormat(hour: 'HH:mm:ss'),
        ),
      );

    putting this xAxis configuration inside of my ChartConfiguration

    var config = charts.ChartConfiguration(
        type: 'line',
        data: data,
        options: charts.ChartOptions(
          responsive: true,
          scales:
              charts.ChartScales<charts.TickOptions>(xAxes: [xAx], yAxes: [yAx]),
        ),
      );

    This, however, crashes without any error messages.

    agreensh
    @agreensh
    @Erinziyi OK, I got it working. What problem are you seeing?
    Ephenodrom
    @Ephenodrom
    Ist it possible to run a flutter web application inside a certain div within a website ?
    for example, i have a site made with bootstrap and i want to include a flutter application under the navbar, so it will fit inside my website
    clearsense
    @clearsense
    @Ephenodrom have you consider using iFrame? i don't do this, just idea
    Ephenodrom
    @Ephenodrom
    i am just thinking of using flutter web ... i looked at the example code and what is created if you build a release
    <!DOCTYPE html>
    <html lang="en">
    <head>
      <meta charset="UTF-8">
      <title></title>
      <script defer src="main.dart.js" type="application/javascript"></script>
    </head>
    <body>
    </body>
    </html>
    No idea how to tell the main.dart.js to render the app under a certain <div> instead of the <body>
    ok seems not to be possible at the moment ... flutter/flutter#32329
    Dima Rostopira
    @rostopira
    Actually, there is separate repo for firebase on web https://github.com/FirebaseExtended/firebase-dart
    Moulik Aggarwal
    @moulikcipherX
    Hy Everyone, I want to contribute to the flutter web codebase. But I can't find repo to contribute to issues.
    Ephenodrom
    @Ephenodrom
    Would be interesting, because I found out some widgets are not up to date to the native flutter widgets
    Randal L. Schwartz
    @RandalSchwartz
    @moulikcipherX I believe it is part of the flutter/flutter repo now.
    Ephenodrom
    @Ephenodrom
    Quote from the repo
    Since we are developing this in a separate fork to the main Flutter repo, we are not yet ready to accept GitHub pull requests at this time. However, GitHub issues are very welcome.
    Randal L. Schwartz
    @RandalSchwartz
    I beleive that statement is also old.
    the core flutter command can generate flutter-web templates now
    no need to pull a separate repo like last month
    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.