Skip to content
Merged
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
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
## 0.0.1
## [0.0.1] - 22nd March, 2022

* TODO: Describe initial release.
* Initial release
27 changes: 26 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,31 @@ by given encoders. We can use gestures to scroll through the waveforms and also
## Preview
<a href="preview/demo.gif" title="Demo - Simform LLC."><img src="preview/demo.gif" width="390" height="700"></a>

## Platform specific configuration

### Android

Change the minimum Android sdk version to 21 (or higher) in your `android/app/build.gradle` file.
```
minSdkVersion 21
```

Add RECORD_AUDIO permission in `AndroidManifest.xml`
```
<uses-permission android:name="android.permission.RECORD_AUDIO" />
```

### IOS

Add this two rows in `ios/Runner/Info.plist`
```
<key>NSMicrophoneUsageDescription</key>
<string>This app is requires Mic permission.</string>
```
This plugin requires ios 10.0 or higher. So add this line in `Podfile`
```
platform :ios, '10.0'
```
## Installing

1. Add dependency to `pubspec.yaml`
Expand All @@ -16,7 +41,7 @@ by given encoders. We can use gestures to scroll through the waveforms and also
dependencies:
audio_waveforms: <latest-version>
```
*Get the latest version in the 'Installing' tab on [pub.dev](https://pub.dev/packages/audiowaveforms)*
*Get the latest version in the 'Installing' tab on [pub.dev](https://pub.dev/packages/audiowaveforms)*

2. Import the package.
```dart
Expand Down
6 changes: 0 additions & 6 deletions example/ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,5 @@ end
post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
target.build_configurations.each do |config|
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= [
'$(inherited)',
'PERMISSION_MICROPHONE=1'
]
end
end
end
4 changes: 2 additions & 2 deletions example/test/widget_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ void main() {
// Verify that platform version is retrieved.
expect(
find.byWidgetPredicate(
(Widget widget) => widget is Text &&
widget.data!.startsWith('Running on:'),
(Widget widget) =>
widget is Text && widget.data!.startsWith('Running on:'),
),
findsOneWidget,
);
Expand Down
2 changes: 0 additions & 2 deletions lib/src/audio_waveforms.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import 'package:flutter/material.dart';
import '/audio_waveforms.dart';
import '/src/base/wave_style.dart';
import '/src/wave_painter.dart';
import './base/wave_controller.dart';
import 'base/wave_clipper.dart';

class AudioWaveforms extends StatefulWidget {
Expand Down
3 changes: 2 additions & 1 deletion lib/src/base/constants.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
class Constants {
Constants._();

static const String methodChannelName = 'simform_audio_waveforms_plugin/methods';
static const String methodChannelName =
'simform_audio_waveforms_plugin/methods';
static const String initRecorder = 'initRecorder';
static const String startRecording = 'startRecording';
static const String stopRecording = 'stopRecording';
Expand Down
1 change: 1 addition & 0 deletions lib/src/base/wave_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ class WaveController extends ChangeNotifier {
}

notifyListeners();
return null;
}

void _reset() {
Expand Down
4 changes: 3 additions & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
name: audio_waveforms
description: A Flutter package that allow you to generate waveform and record audio.
version: 0.0.1
homepage:
homepage: https://github.com/SimformSolutionsPvtLtd/audio_waveforms
issue_tracker: https://github.com/SimformSolutionsPvtLtd/audio_waveforms/issues

environment:
sdk: ">=2.12.0 <3.0.0"
flutter: ">=1.20.0"

dependencies:
flutter:
Expand Down