From d5b332a304a3ac187ec770fd3bdd0b72f1cacf1a Mon Sep 17 00:00:00 2001 From: Martijn van Dijk Date: Sat, 3 Aug 2024 16:21:17 +0200 Subject: [PATCH] Format --- README.md | 6 +++--- analysis_options.yaml | 1 + example/analysis_options.yaml | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 94f04e6..ce658c0 100644 --- a/README.md +++ b/README.md @@ -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, @@ -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. @@ -94,4 +95,3 @@ In order to convert the gif to a video, you can try one of the following librari - diff --git a/analysis_options.yaml b/analysis_options.yaml index 914b0ca..9c4e752 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -12,4 +12,5 @@ linter: always_use_package_imports: false omit_local_variable_types: false directives_ordering: true + eol_at_end_of_file: true \ No newline at end of file diff --git a/example/analysis_options.yaml b/example/analysis_options.yaml index 914b0ca..9c4e752 100644 --- a/example/analysis_options.yaml +++ b/example/analysis_options.yaml @@ -12,4 +12,5 @@ linter: always_use_package_imports: false omit_local_variable_types: false directives_ordering: true + eol_at_end_of_file: true \ No newline at end of file