Skip to content

Instantly share code, notes, and snippets.

@veloce
Last active August 8, 2023 07:47
Show Gist options
  • Save veloce/e1d19d8e98ce0bfe5b2df1340315e04c to your computer and use it in GitHub Desktop.
Save veloce/e1d19d8e98ce0bfe5b2df1340315e04c to your computer and use it in GitHub Desktop.
Impeller demo
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