1
0
mirror of https://github.com/flutter/samples.git synced 2026-04-27 09:58:50 +00:00
Files
samples/simple_sdf/test/widget_test.dart
Andy Wolff a7be276f22 Add new sample simple_sdf (#2835)
Add a new sample, `simple_sdf`. This is similar to `simple_shader`, but
it focuses on using Signed Distance Functions within the fragment
shader.

Relates to issue
[#183043](https://github.com/flutter/flutter/issues/183043)

## Pre-launch Checklist

- [x] I read the [Flutter Style Guide] _recently_, and have followed its
advice.
- [x] I signed the [CLA].
- [x] I read the [Contributors Guide].
- [ ] I have added sample code updates to the [changelog].
- [x] I updated/added relevant documentation (doc comments with `///`).


If you need help, consider asking for advice on the #hackers-devrel
channel on [Discord].

<!-- Links -->
[Flutter Style Guide]:
https://github.com/flutter/flutter/blob/master/docs/contributing/Style-guide-for-Flutter-repo.md
[CLA]: https://cla.developers.google.com/
[Discord]:
https://github.com/flutter/flutter/blob/master/docs/contributing/Chat.md
[Contributors Guide]:
https://github.com/flutter/samples/blob/main/CONTRIBUTING.md
[changelog]: ../CHANGELOG.md
2026-04-23 09:42:27 -07:00

10 lines
242 B
Dart

import 'package:flutter_test/flutter_test.dart';
import 'package:simple_sdf/main.dart';
void main() {
testWidgets('Smoke test', (tester) async {
// Build our app and trigger a frame.
await tester.pumpWidget(const MyApp());
});
}