fix: metal issue on macos
This commit is contained in:
parent
befadf9e8f
commit
71e77ef3cf
2 changed files with 10 additions and 13 deletions
|
|
@ -65,7 +65,7 @@ class _MyAppState extends State<MyApp> {
|
|||
|
||||
Uint8List mockPicture(int width, int height) {
|
||||
final pic = List.generate(width * height * 4, (index) {
|
||||
return (index + 1) % 4 == 0 ? 1 : random.nextInt(255);
|
||||
return random.nextInt(255);
|
||||
});
|
||||
return Uint8List.fromList(pic);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue