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
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), |
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 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 |