This file contains 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
CheckboxListTile( | |
value: toggle, | |
onChanged: (bool){ | |
setState(() { | |
if(!bool){ | |
toggle = false; | |
} | |
else{ | |
toggle = true; | |
} |
This file contains 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
bool toggle = false; |
This file contains 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
CheckboxListTile( | |
value: true, | |
onChanged: null, | |
key: Key(item), | |
title: _strikeThrough(todoText: item, todoToggle: false), | |
) |
This file contains 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
CheckboxListTile( | |
value: false, | |
onChanged: null, | |
key: Key(item), | |
title: _strikeThrough(todoText: item, todoToggle: false), | |
) |
This file contains 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
class _strikeThrough extends StatelessWidget{ | |
bool todoToggle; | |
String todoText; | |
_strikeThrough({this.todoToggle, this.todoText}) : super(); | |
Widget _strikewidget(){ | |
if(todoToggle==false){ | |
return Text( | |
todoText, |
This file contains 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
CheckboxListTile( | |
value: false, | |
onChanged: null, | |
key: Key(value), | |
title: | |
Text( | |
value, | |
key: Key(value), | |
style: TextStyle( | |
fontSize: 22.0 |
This file contains 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
for(final value in items) | |
Text( | |
value, | |
key: Key(value), | |
style: TextStyle( | |
fontSize: 22.0 | |
), | |
) |
This file contains 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
Text( | |
value, | |
key: Key(value), | |
style: TextStyle( | |
fontSize: 22.0 | |
), | |
) |
This file contains 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 'package:flutter/material.dart'; | |
void main(){ | |
runApp(MaterialApp( | |
title: "Todo App with Re-orderable Lists & Swipe Cards", | |
home: App(), | |
)); | |
} | |
List<String> items = ["Item 1 - I will stick to the new position!", "Item 2 - I will stick to the new position!", "Item 3 - I will stick to the new position!"]; |
This file contains 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 'package:flutter/material.dart'; | |
void main(){ | |
runApp(MaterialApp( | |
title: "Todo App with Re-orderable Lists & Swipe Cards", | |
home: App(), | |
)); | |
} | |
List<String> items = ["Item 1 - I will stick to the new position!", "Item 2 - I will stick to the new position!", "Item 3 - I will stick to the new position!"]; |
NewerOlder