Skip to content

Commit

Permalink
Name and readme updates
Browse files Browse the repository at this point in the history
  • Loading branch information
justinmc committed Mar 22, 2021
1 parent 595426a commit d6a7bdd
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 2 deletions.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# Flutter Lazy Performance

Examples of widgets extending off-screen.
Examples of widgets extending off-screen and various ways of handling this. Demos with "naive" in the title optimize nothing at all, and they probably shouldn't be used except in trivial cases. Other examples attempt various performance improvements.

Check out the live demo at: [https://justinmc.github.io/flutter-lazy-performance/](https://justinmc.github.io/flutter-lazy-performance/).

Thanks to the Marty McFly asset from Rive: [https://rive.app/community/17-marty_v6/](https://rive.app/community/17-marty_v6/).

![Screenshot of menu](https://raw.githubusercontent.com/justinmc/flutter-lazy-performance/main/assets/menu.png)
![Screenshot of list](https://raw.githubusercontent.com/justinmc/flutter-lazy-performance/main/assets/1d.png)
![Screenshot of grid](https://raw.githubusercontent.com/justinmc/flutter-lazy-performance/main/assets/2d.png)
![Screenshot of procedural generation demo](https://raw.githubusercontent.com/justinmc/flutter-lazy-performance/main/assets/proc_gen.png)
8 changes: 8 additions & 0 deletions lib/iv_builder_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,14 @@ class _IVBuilderPageState extends State<IVBuilderPage> {
appBar: AppBar(
title: const Text('Two Dimensions'),
actions: <Widget>[
IconButton(
icon: const Icon(Icons.add_alert),
tooltip: 'Show Snackbar',
onPressed: () {
ScaffoldMessenger.of(context).showSnackBar(
const SnackBar(content: Text('This is a snackbar')));
},
),
],
),
body: Center(
Expand Down
2 changes: 1 addition & 1 deletion macos/Runner/Configs/AppInfo.xcconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// 'flutter create' template.

// The application's name. By default this is also the title of the Flutter window.
PRODUCT_NAME = performance
PRODUCT_NAME = Lazy Flutter Performance

// The application's bundle identifier
PRODUCT_BUNDLE_IDENTIFIER = com.example.proceduralGeneration
Expand Down
Binary file added screenshots/1d.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/2d.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/menu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/proc_gen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d6a7bdd

Please sign in to comment.