`simple_shader`: Add a README (#1669)

pull/1673/head
Brett Morgan 2 years ago committed by GitHub
parent 0b8be3e43f
commit 139c9efce9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,7 @@
# `simple_shader`
A simple [Flutter fragment shaders][] sample project.
[Flutter fragment shaders]: https://docs.flutter.dev/development/ui/advanced/shaders
![Screenshot of the `simple_shader` app](screenshot.png)

@ -14,7 +14,7 @@ class MyApp extends StatelessWidget {
return MaterialApp(
title: 'Simple Shader Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
colorSchemeSeed: Colors.blue,
useMaterial3: true,
),
home: const MyHomePage(),
@ -42,7 +42,7 @@ class _MyHomePageState extends State<MyHomePage> {
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('Simple Shader'),
title: const Text('Simple Shader Demo'),
),
body: FutureBuilder<ui.FragmentProgram>(
future: program,

Binary file not shown.

After

Width:  |  Height:  |  Size: 713 KiB

Loading…
Cancel
Save