This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
handleDismiss(DismissDirection direction, int index) { | |
// Get a reference to the swiped item | |
final swipedEmail = items[index]; | |
// Remove it from the list | |
items.removeAt(index); | |
String action; | |
if (direction == DismissDirection.startToEnd) { | |
deleteItem(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Tween<Offset> _offSetTween = Tween( | |
begin: Offset(1, 0), | |
end: Offset.zero, | |
); | |
... | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import "dart:convert"; | |
// Convert Apple devices utsname.machine to Json. See https://gist.github.com/adamawolf/3048717 for the updated list | |
void main() { | |
final splits = sss.split("\n"); | |
final json = Map<String, String>(); | |
splits.forEach((s) { | |
final k = s.split(":"); | |
if (k.length == 2) { |
OlderNewer