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
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
scotter
@scotter:matrix.org
[m]
what is late? I'm not familiar
Randal L. Schwartz
@RandalSchwartz
Google dart late
thanks!
Randal L. Schwartz
@RandalSchwartz
That’s not the situation you have. Do you want to use late on the variables in its state so that you can fill them in later but they remain non-noble
scotter
@scotter:matrix.org
[m]
yeah I understand, it was just the first useful result google gave me haha
Randal L. Schwartz
@RandalSchwartz
Sorry speech to text not working well with all these technical terms
Google flutter initstate late
Johannes Milke
@JohannesMilke_twitter
Hello! I have created another video about "Flutter Tutorial - How to make AppBar Transparent [2022]" https://www.youtube.com/watch?v=Bxkj0gIAbnw alt
ROHIT KUMAR
@RKROHITCHAMP
hlo
7zმiբმ
@zoom88088_twitter
Hi all, can you help me out or provide some suggestions to solve the problem that I posted on https://stackoverflow.com/questions/70480643/retrieving-the-authorization-code-from-fitbit-api-with-flutter
Johannes Milke
@JohannesMilke_twitter
Hello! I have created another video about "Flutter Tutorial - Firebase Setup [2022] Easy and Quick Firebase Setup!" https://www.youtube.com/watch?v=sz4slPFwEvs alt
Johannes Milke
@JohannesMilke_twitter
Hello! I have created another video about "Flutter Tutorial - Create Document & Write Data In Cloud Firestore [2022] 1/3 Flutter Firestore CRUD" https://www.youtube.com/watch?v=21vHY9P90jE alt
Steven Parker
@ConnectSteven_twitter
This package will help you create a modern animated fancy segment. It shows the selection of a tab using elastic way animation. https://github.com/Mindinventory/animated_segment
Johannes Milke
@JohannesMilke_twitter
Hello! I have created another video about "Flutter Tutorial - CRUD With Firestore - READ Data & Get Document [2022] 2/3 Firestore CRUD" https://www.youtube.com/watch?v=G4INTsatBew alt
Andrious Solutions
@Andrious
Hello all. Now, where could I get a finite list of all the 'function names' chosen to be used in Flutter? I mean every function and getter in Flutter! You know what I mean? toStringShort()
createElement()
debugFillProperties()
canUpdate()....etc.
It's huge list no doubt. I would like a slick means to collect a list.
Randal L. Schwartz
@RandalSchwartz
do you mean “anything in the Dart/Flutter SDK”?