Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
martijn00 committed Aug 3, 2024
1 parent c7b0502 commit d5b332a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,10 @@ dependencies:
Then, run `flutter packages get` in your terminal.

## Example
## Example

Wrap your widget which should be recorded in a `ScreenRecorder`:

```dart
ScreenRecorder(
height: 200,
Expand All @@ -59,7 +60,7 @@ ScreenRecorder(
);
```

Then use `ScreenRecorderController.start()` to start recording and
Then use `ScreenRecorderController.start()` to start recording and
`ScreenRecorderController.stop()` to stop the recording.
`final gif = await ScreenRecorderController.export()` gives you the result which can be written to disk.

Expand Down Expand Up @@ -94,4 +95,3 @@ In order to convert the gif to a video, you can try one of the following librari
<a href="https://github.com/ueman/screenrecorder/graphs/contributors">
<img src="https://contrib.rocks/image?repo=ueman/screenrecorder" />
</a>

1 change: 1 addition & 0 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ linter:
always_use_package_imports: false
omit_local_variable_types: false
directives_ordering: true
eol_at_end_of_file: true

1 change: 1 addition & 0 deletions example/analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ linter:
always_use_package_imports: false
omit_local_variable_types: false
directives_ordering: true
eol_at_end_of_file: true

0 comments on commit d5b332a

Please sign in to comment.