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

Update README.md usage example to wrap all routes. #3

Merged
merged 1 commit into from
Oct 26, 2021
Merged
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
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,14 @@ Import the package in your Dart code:
import 'package:touch_indicator/touch_indicator.dart';
```

Wrap your app in the `TouchIndicator` widget:
Wrap all routes in your app in the `TouchIndicator` widget:

```dart
class MyApp extends StatelessWidget {
MaterialApp(
title: 'Touch indicator example',
home: TouchIndicator(
child: MyHomePage(title: 'Flutter Demo Home Page'),
),
builder: (context, child) => TouchIndicator(child: child),
home: MyHomePage(title: 'Flutter Demo Home Page'),
);
}
```
Expand Down