Guest User

Untitled

a guest
Jun 23rd, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.35 KB | None | 0 0
  1. Dismissible(
  2. direction: DismissDirection.endToStart,
  3. key: Key(widget.data[i]),
  4. onDismissed: (direction) {
  5. widget.onRemoveRequest(i, widget.data[i]);
  6. },
  7. background: Container(
  8. color: Colors.red,
  9. child: Row(
  10. crossAxisAlignment: CrossAxisAlignment.center,
  11. mainAxisAlignment: MainAxisAlignment.end,
  12. children: <Widget>[
  13. Padding(
  14. padding: const EdgeInsets.only(right: 20.0),
  15. child: Text(
  16. "Delete",
  17. textAlign: TextAlign.right,
  18. style: TextStyle(
  19. color: Colors.white,
  20. fontWeight: FontWeight.w500,
  21. fontSize: 16.0,
  22. ),
  23. ),
  24. ),
  25. ],
  26. ),
  27. ),
  28. child: CustomTextField(
  29. padding: const EdgeInsets.only(left: 30.0, right: 30.0),
  30. hintText: widget.newEntryHint,
  31. text: widget.data[i],
  32. keyboardType: TextInputType.multiline,
  33. onChanged: (val) {
  34. widget.onChanged(i, val);
  35. },
  36. ),
  37. )
  38.  
  39. Dismissible(
  40. key: UniqueKey(),
  41. ...
  42. )
Add Comment
Please, Sign In to add comment