Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

- Added Visibility Widget Example #59

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ How to contribute new examples:
- [Andrei Lesnitsky](https://lesnitsky.dev)
- [Vyacheslav Egorov](https://twitter.com/mraleph)
- [Tiago Almeida](https://twitter.com/TiagoHenriq)
- [Milan Surelia](https://twitter.com/milanpsurelia)


## License

Expand Down
5 changes: 5 additions & 0 deletions recipes/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import LoadingIndicatorWhileSmthIsLoading from './loading-indicator-while-smth-i
import Navigation from './navigation.md';
import Debounce from './debounce.md';
import CheckIfDev from './check-if-dev.md';
import VisiblityWidget from './visiblity-widget.md';

<div className="toc-container">

Expand Down Expand Up @@ -126,3 +127,7 @@ import CheckIfDev from './check-if-dev.md';
## Debounce

<Debounce />

## Visiblity Widget

<VisiblityWidget />
13 changes: 13 additions & 0 deletions recipes/visiblity-widget.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import Example from '../components/md/Example';

<Example flutter>

```dart
bool showContainer = true;
Visibility(
visible: showContainer == true,
child: Text("Visible")
)
```

</Example>
Loading