Skip to content

Commit 2a2da26

Browse files
authored
Update README.md
1 parent 99ea3cd commit 2a2da26

1 file changed

Lines changed: 40 additions & 6 deletions

File tree

Submit/README.md

Lines changed: 40 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -770,12 +770,46 @@ After the first launch, if the application is closed and reopened, it will resto
770770

771771
</summary>
772772

773-
- `package:flutter/material.dart` -> Default library
774-
- `dart:async` -> Library for thread management
775-
- `dart:isolate` -> Library for thread management
776-
- `dart:io` -> Library for interacting with system files
777-
- `package:process_run/shell.dart` -> Library for interacting with the shell
778-
- `dart:ffi` -> Library for memory allocation, used to allocate the thread
773+
- `package:flutter/material.dart` -> Default library, **No comment required**
774+
- `dart:async` -> Library for thread management, **No comment required**
775+
- `dart:isolate` -> Library for thread management, **No comment required**
776+
- `dart:io` -> Library for interacting with system files, **No comment required**
777+
- `package:process_run/shell.dart` -> Library for interacting with the shell <br> <details> <summary> **Commento** </summary>
778+
779+
##### Available Libraries (alternatives)
780+
781+
- `dart:io` with the commands:
782+
- Process.start
783+
- Process.run <br><br>
784+
**Example** <br>
785+
786+
```dart
787+
import 'dart:io';
788+
789+
void main() async {
790+
var result = await Process.run('ls', ['-l']);
791+
print(result.stdout);
792+
}
793+
```
794+
- `package:process_runner/process_runner.dart` <br><br>
795+
**Example** <br>
796+
```dart
797+
import 'package:process_runner/process_runner.dart';
798+
799+
Future<void> main() async {
800+
ProcessRunner processRunner = ProcessRunner();
801+
ProcessRunnerResult result = await processRunner.runProcess(['ls']);
802+
803+
print('stdout: ${result.stdout}');
804+
print('stderr: ${result.stderr}');
805+
}
806+
```
807+
808+
Among the three possible alternatives, the `shell.dart` library was chosen because it is the most stable library on Linux for executing terminal commands.
809+
810+
</details>
811+
812+
- `dart:ffi` -> Library for memory allocation, used to allocate the thread, **No comment required**
779813

780814
</details>
781815

0 commit comments

Comments
 (0)