Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Aug 19 21:53
    Coveralls flutter/flutter (master) -81.05%
  • Jul 26 16:52
    Coveralls flutter/flutter (HEAD) -2.5%
  • Jul 03 06:58
    Coveralls flutter/flutter (docs_crosslink) -70%
  • Apr 15 16:23
    Coveralls flutter/flutter (HEAD) -1.6%
  • Mar 09 04:01
    Coveralls flutter/flutter (HEAD) 1.3%
  • Mar 08 03:51
    Coveralls flutter/flutter (HEAD) 1.05%
  • Mar 07 23:43
    Coveralls flutter/flutter (HEAD) -1.04%
  • Jan 31 22:57
    crystallinering starred flutter/flutter
  • Jan 31 22:45
    skjagini edited #27372
  • Jan 31 22:44
    skjagini edited #27372
  • Jan 31 22:44
    skjagini edited #27372
  • Jan 31 22:44
    skjagini opened #27372
  • Jan 31 22:34
    pedromassango commented #17099
  • Jan 31 22:34
    pedromassango commented #17099
  • Jan 31 22:28

    Hixie on master

    [H] Add ImageStreamCompleter.ha… (compare)

  • Jan 31 22:28
    Hixie closed #25865
  • Jan 31 22:27
    Hixie commented #25865
  • Jan 31 22:21
    mkustermann commented #27250
  • Jan 31 22:21
    mkustermann commented #27250
  • Jan 31 22:16
    eseidelGoogle labeled #23838
agreensh
@agreensh
You haven’t got the alignment in your code
Amit Katz
@TheOnlyArtz
image.png
agreensh
@agreensh
In the Column
Amit Katz
@TheOnlyArtz
Ay! thank you
it was the cross axis that helped that btw
agreensh
@agreensh
Because in your gist you had a Column, then you removed it.
Amit Katz
@TheOnlyArtz
I still have a Column
It's in the same place
Sorry if I confused you tho with whatever is there
Amit Katz
@TheOnlyArtz
Did someone ever try to have a column which can change with a state?
My issue is that whenever I move something from the column it always removes from the bottom, no matter what
class _QueueSongListState extends State<QueueSongList> {
  List<Widget> songs;
  List songHelper;

  _QueueSongListState() {
    songs =  [
      QueueSongPresentation("Do I Wanna know?", "Arctic Monkeys", "3:36", true, 1, onQueuedSongSelected),
      QueueSongPresentation("Bad Guy", "Billie Eilish", "3:25", false, 2, onQueuedSongSelected),
      QueueSongPresentation("Thunder", "Imagine Dragons", "4:49", false, 3, onQueuedSongSelected),
      QueueSongPresentation("God's Plan", "Drake", "6:54", false, 4, onQueuedSongSelected),
    ];
  }

  @override
  Widget build(BuildContext context) {
    return Column(children: songs);
  }

  void onQueuedSongSelected(_QueueSongPresentationState song) {
    setState(() {
      songs.removeRange(0, song.queuePos - 1);
    });
  }
}
Doesn't matter what I do it will remove from the bottom of the list
I tried to have a loop which runs backwards, nothing helps
I added something which can help me to debug
I added another array, it's contents the same as songs
And when I remove elements from it and log the array it works as intended, but when plugging it in to a widget like Column it just breaks
https://gyazo.com/e6958bb8f3a8c422c92d96f423b11a35 Take a look (I pressed more than once in this video)
Someone has an idea?
Randal L. Schwartz
@RandalSchwartz
do your elements have unique keys?
as in “key: …” when created?
Amit Katz
@TheOnlyArtz
Hm no
Randal L. Schwartz
@RandalSchwartz
I know that’s needed for the system to figure out unique elements.
Amit Katz
@TheOnlyArtz
How would I add a key?
Randal L. Schwartz
@RandalSchwartz
watch that
Amit Katz
@TheOnlyArtz
OMG Thank you so much @RandalSchwartz
Randal L. Schwartz
@RandalSchwartz
Glad to be of assistance.
Amit Katz
@TheOnlyArtz
How can I convert List<dynamic> to List<Widget> ?
Because I would like to store the songs as their objects and not Widgets and only convert them to the widget when providing them to the Column
Rolly Peres
@RollyPeres
Is it me or Colors on emulators are not properly rendered. Anyone else having this issue ?
Amit Katz
@TheOnlyArtz
For me they are rendered perfectly
Rolly Peres
@RollyPeres
https://imgur.com/OnmXFGl
I overlapped the two and it's clearly a difference there.
Ephenodrom
@Ephenodrom
I have a screen A and B. Now I want to transist from A to B. I am using a widget that loads data and transfers to screen B. A - > Loading Screen - > B.
Is it possible to define that if someone pops back to the loading widget it should pop one more step?
So you pop from B back to A.
agreensh
@agreensh
Look at popUntil()
Or just replace the widgets on A with the loading data (waiting) widgets while load in progress, then navigate?
Guillermo O. Freschi
@Tordek
The proper way to pass initial data to a StatefulWidget's state is to pass it to the Widget's constructor, then use the state's initState to read widget.foo and store it in the State?
Tarek Badr
@TarekBadr93
hey guys I have question about the bloc pattern ... should every stateful component be a bloc or only components with complex logic ?
anderezende
@anderezende

Hello guys I'm starting in Flutter and I have a problem that I can't go through ...

If anyone could help me, I would be very grateful. I'm already lost ... :(
This is my doubt
https://stackoverflow.com/questions/57583213/when-implementing-firebase-flutter-notifications-im-getting-an-error

Ryan DiMaria
@rdimaria_gitlab
I came here for my own questions but this is just a room full of questions
Must be late hours for this room.
I'm trying to get through the basic tutorial on https://flutter.dev/docs/get-started/editor?tab=vscode
I've followed the steps and went through all of the checks but no app shows up. It doesn't appear on its own on the AVD and I cannot find it within the app drawer. Searching for the project's name yields no results. Why?
I can't find answers for this and the only people that report the issue are people who have syntax errors. I'm not even editing the code.
Where can I get better support for this?
How can things go wrong so early? I've tried starting up new projects... I don't know what the problem is.
Ryan DiMaria
@rdimaria_gitlab
I don't even know how I can do things differently..
Erin
@Erinziyi
image.png