Last active
August 8, 2023 07:47
-
-
Save veloce/e1d19d8e98ce0bfe5b2df1340315e04c to your computer and use it in GitHub Desktop.
Impeller demo
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(const MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
const MyApp({super.key}); | |
@override | |
Widget build(BuildContext context) { | |
return const MaterialApp( | |
home: MyHomePage(), | |
); | |
} | |
} | |
class MyHomePage extends StatelessWidget { | |
const MyHomePage({super.key}); | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
body: GridView.builder( | |
gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount( | |
crossAxisCount: 16, | |
crossAxisSpacing: 5, | |
mainAxisSpacing: 5, | |
), | |
itemCount: 2000, | |
itemBuilder: (context, index) { | |
return Image.network( | |
'https://storage.googleapis.com/cms-storage-bucket/0dbfcc7a59cd1cf16282.png', | |
color: const Color.fromRGBO(255, 255, 255, 1), | |
colorBlendMode: BlendMode.modulate, | |
); | |
}, | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment