### Basic Audio Recording Usage in Dart Source: https://github.com/josephcrowell/flutter_sound_record/blob/master/README.md Example demonstrating the basic steps to use the plugin: importing, checking permissions, starting recording with path and optional parameters, stopping recording, and checking the current recording state. ```Dart // Import package import 'package:record/record.dart'; // Check and request permission bool result = await Record.hasPermission(); // Start recording await Record.start( path: 'aFullPath/myFile.m4a', // required encoder: AudioEncoder.AAC, // by default bitRate: 128000, // by default sampleRate: 44100, // by default ); // Stop recording await Record.stop(); // Get the state of the recorder bool isRecording = await Record.isRecording(); // There's nothing to dispose, this done internally each time you call stop method. // The plugin is aware of activity lifecycle. // So exiting, your app or activity will stop the recording (but won't delete the // output file). ``` -------------------------------- ### Opening iOS Project in Xcode Source: https://github.com/josephcrowell/flutter_sound_record/blob/master/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md This command opens the iOS runner workspace file in Xcode, allowing you to manage project settings, assets, and code for the iOS platform. ```Shell open ios/Runner.xcworkspace ``` -------------------------------- ### Loading Flutter Web App with Service Worker - JavaScript Source: https://github.com/josephcrowell/flutter_sound_record/blob/master/example/web/index.html This JavaScript code initializes variables, defines a function to append the main Flutter script to the DOM, checks for browser support for service workers, registers or updates the service worker, waits for its activation, and includes a timeout to fall back to direct script loading if the service worker approach fails. ```JavaScript var serviceWorkerVersion = null; var scriptLoaded = false; function loadMainDartJs() { if (scriptLoaded) { return; } scriptLoaded = true; var scriptTag = document.createElement('script'); scriptTag.src = 'main.dart.js'; scriptTag.type = 'application/javascript'; document.body.append(scriptTag); } if ('serviceWorker' in navigator) { // Service workers are supported. Use them. window.addEventListener('load', function () { // Wait for registration to finish before dropping the