Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
leku
@leku451
hello..
I'm trying to integrate the Nodle SDK into my flutter app, it says to configure my Class name in the AndroidManifest.xml (https://developer.nodle.com/nodle-sdk/)
<!-- Put your application class name below -->
    <application
        android:name="App">
    </application>
whatever I put in there it says it can't find
leku
@leku451
nevermind id ont think that is my problem..
Fred Grott
@fredgrott
This is how to implement BLoC with something you already know Notifier listeners https://fredgrott.medium.com/bloc-with-training-wheels-1ae977f0cb2f?sk=6242d6cd9b6d48121d578a8871d2d8f5
fu2re4l
@fu2re4l:matrix.org
[m]
hello guys
fu2re4l
@fu2re4l:matrix.org
[m]
is this channel alive?
Randal L. Schwartz
@RandalSchwartz
Yes. but discord is far more lively
Arun S Acharya
@arunsacharyadev
which is the backend we need to choose for the cab service application other than firebase ?
Johannes Milke
@JohannesMilke_twitter
Hello! I have created another video about "Flutter Tutorial - Add Package From Pub.dev [2021] (http)" https://www.youtube.com/watch?v=_tCgIwza9bU alt
KlintLee115
@KlintLee115
Anyone here using flutterweb? I am wondering about the performance of it as I am trying to build a company website using it. However, reddit and youtube videos say that its really bad? So hows the update?
Randal L. Schwartz
@RandalSchwartz
there are some operations like scrolling that seem slower than they should.
but animation is on par with the mobile platform
KlintLee115
@KlintLee115
@RandalSchwartz what about the seo? I saw this package https://pub.dev/packages/seo_renderer but unsure if it is a good seo renderer
Randal L. Schwartz
@RandalSchwartz
I have some code I was working on to do that, but I hadn’t uploaded it to pub yet
I hook in to the router, to populate the meta tags of the web page with unique information for that url
it seemed to work well, but I haven’t tested it yet.
as in the web page HTML was updated even before the first paint
KlintLee115
@KlintLee115
Oh, I am actually just trying to use flutter for the website cuz gosh, css is really confusing
showtestlog
@showtestlog
Is it possible to generate maco files with this command? The current product is ELF, which causes a bit of a problem with the offset when symbolically parsing the dart.
thank you.
image.png
thanks
Steven Parker
@ConnectSteven_twitter
A Video Player For Vimeo Videos in Flutter. This plugin allows us to play video from Vimeo and it supports Android and iOS platforms.https://github.com/Mindinventory/vimeo_video_player
Mohammed Nabil
@nabilmohammed:matrix.org
[m]

Hello

I'm integrating mastercard payment gateway sdk in my project, this is the link
https://github.com/Mastercard-Gateway/gateway-android-sdk/wiki/3d-secure-authentication
I want to display 3-D Secure authentication screen but when the app launches it crash and the error it is displaying "java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity". I checked in stackoverflow but unfortunately no success.

Daniel Ardison
@dardison
Hi guys anyone I have this problem with Streams, I have 2 behaviorSubject one have an initialValue of N and the other one have sucesive values of N produced by a textField, I need to provide a new Stream<N> that returns initialValue until edited values arrives then it should emit only that values. I checked the rxdart docs but I couldn't found any function that could provide this result. Any idea would be helpful, thanks
Randal L. Schwartz
@RandalSchwartz
See async * subroutine attribute and yield
Daniel Ardison
@dardison
Hi @RandalSchwartz thanks for your answer. I know that I could use yield to emit a new stream listen to one of the streams but in this case I need more to combine both streams but without the restrictions that both need to emit at least one value, because I need to emit initialValue until the other stream (edited value) emits, when that happens I need to emit the edited values instead
I was thinking that maybe MergeStream could do the trick I am testing that solution right now
Randal L. Schwartz
@RandalSchwartz
My solution is probably the easiest.
But I am on mobile right now so it’s hard to type.
Daniel Ardison
@dardison
Not sure how can I mix both streams with an async * function. If you have the time later to elaborate on that I will appreciated. Thanks again.
Randal L. Schwartz
@RandalSchwartz

import 'dart:async';

final stream1 = Stream.periodic(Duration(seconds: 1), ((n) => (n)));
final stream2 = Stream.periodic(Duration(seconds: 1), ((n) => (n * 1000)));

main(List<String> arguments) async {
  await for (var e in action()) {
    print(e);
  }
}

Stream<int> action() async* {
  await for (var e in stream1) {
    yield e;
    if (e == 5) {
      break;
    }
  }
  yield* stream2;
}
that’ll do it
that prints 0 1 2 3 4 5 0 1000 2000 ...
Oh, not quite what you wanted.
I guess you need to explain better.
Daniel Ardison
@dardison
Ok, I see your point, I will try to code that in my use case, thanks
Frank Pepermans
@frankpepermans
@dardison rxDart has takeUntil, so you could indeed do a MergeStream, but add takeUntil to the initialValue Stream and pass the other one in
...if the initialValue Stream only has one single event and then closes, then asyncExpand is also an option
Randal L. Schwartz
@RandalSchwartz
also consider package:async (https://pub.dev/packages/async) something there might inspire.
markburt
@markburt:matrix.org
[m]
Hi 😀
scotter
@scotter:matrix.org
[m]

Hi! I'm looking for more reading on the lint rule no_logic_in_create_state, the documentation I've found so far doesn't really explain why a StatefulWidget passing data to the State obj in createState is a bad idea.

In my use case, it allows me to provide initialization data for a field in State directly vs initializing in initState so the null checker can know its never null.

Randal L. Schwartz
@RandalSchwartz
use late in initstate
that’s the traditional response
scotter
@scotter:matrix.org
[m]
Doing it in initState means I either declare my field as nullable (which in practice its not, but dart doesn't know that), or just initialize the field with some arbitrary data so that I can leave it as non-null.
So that's what I was trying to do by passing state via a constructor argument, and the docs just say "using widget.<field> is preferred so do it that way". So I was trying to understand why its not OK to do it via a constructor argument
Randal L. Schwartz
@RandalSchwartz
use late