Slidable position is reseting after refresh.

Aperta
#445 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
22/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
dart, flutter
Ambito
mobile

Direzione di ricerca

The payload names no files or entry points, so start from the Slidable widget and how its open position is kept across rebuilds triggered by a parent's notifyListeners(). Build a minimal list example with a delete action that swaps in a spinner, and check whether the slide state is lost when the item is rebuilt. Done means the reporter's scenario keeps the slide position, or the cause is written up with a reproduction. The issue has no comments and has been open about three years, so expect little maintainer input.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

I want to have a behaviour like this:

  • have a delete button
  • when delete is pressed i have a waitingLogic
  • in that waiting time i want to replace the delete button with a loading spinner (based on a variable)
    my problem is that when i use notifyListeners(), slidable position is reseted.

How can i achieve that behaviour?

Lingua principale
Dart
Stelle
2.9k
Fork
646
Merge medio
5m
PR unite (30g)
9

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di letsar/flutter_slidable

Tutte le issue di letsar/flutter_slidable

Issue simili

Altre issue su Dart

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.