Skip to content

Instantly share code, notes, and snippets.

View rostand2017's full-sized avatar

Fotso Rostand rostand2017

  • Douala, Cameroun
View GitHub Profile
class ListNode:
def __init__(self, val=0, nextt=None):
self.val = val
self.nextt = nextt
def size(self):
i = 1
nextt = self.nextt
while nextt != None:
nextt = nextt.nextt
i += 1
Container(
child: Image.network(
Uri.parse(widget.url.small).toString(),
loadingBuilder: (BuildContext context, Widget widget, ImageChunkEvent imageChunk){
if(imageChunk == null)
return widget;
final percentage = imageChunk!=null? imageChunk.cumulativeBytesLoaded / imageChunk.expectedTotalBytes : 0.0;
print("percentage: $percentage");
return Container(
margin: EdgeInsets.all(8.0),