mirror of
https://github.com/flutter/samples.git
synced 2025-11-09 06:18:49 +00:00
simple_shader: Add a README (#1669)
This commit is contained in:
7
simple_shader/README.md
Normal file
7
simple_shader/README.md
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
# `simple_shader`
|
||||||
|
|
||||||
|
A simple [Flutter fragment shaders][] sample project.
|
||||||
|
|
||||||
|
[Flutter fragment shaders]: https://docs.flutter.dev/development/ui/advanced/shaders
|
||||||
|
|
||||||
|

|
||||||
@@ -14,7 +14,7 @@ class MyApp extends StatelessWidget {
|
|||||||
return MaterialApp(
|
return MaterialApp(
|
||||||
title: 'Simple Shader Demo',
|
title: 'Simple Shader Demo',
|
||||||
theme: ThemeData(
|
theme: ThemeData(
|
||||||
primarySwatch: Colors.blue,
|
colorSchemeSeed: Colors.blue,
|
||||||
useMaterial3: true,
|
useMaterial3: true,
|
||||||
),
|
),
|
||||||
home: const MyHomePage(),
|
home: const MyHomePage(),
|
||||||
@@ -42,7 +42,7 @@ class _MyHomePageState extends State<MyHomePage> {
|
|||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
title: const Text('Simple Shader'),
|
title: const Text('Simple Shader Demo'),
|
||||||
),
|
),
|
||||||
body: FutureBuilder<ui.FragmentProgram>(
|
body: FutureBuilder<ui.FragmentProgram>(
|
||||||
future: program,
|
future: program,
|
||||||
|
|||||||
BIN
simple_shader/screenshot.png
Normal file
BIN
simple_shader/screenshot.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 713 KiB |
Reference in New Issue
Block a user