flutter_ymodem 0.0.1 copy "flutter_ymodem: ^0.0.1" to clipboard
flutter_ymodem: ^0.0.1 copied to clipboard

discontinued

A package that allows you to run ymodem in dart, super YModem-1K.

example/lib/main.dart

import 'dart:typed_data';

import 'package:flutter/material.dart';
import 'package:flutter_ymodem/flutter_ymodem.dart';
import 'package:get/get.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatefulWidget {
  const MyApp({super.key});

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  void initState() {
    super.initState();

    FlutterYmodem().run(
      fileData: Uint8List.fromList([]),
      cmd: Uint8List.fromList([]),
      feedback: (successful, msg) {},
      progress: (progress) {},
      onSendData: (data) {
        // send data use serial port
      },
      onReceiveData: Uint8List.fromList([]).obs, // past data from serial port
    );
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: const Center(),
      ),
    );
  }
}
2
likes
0
pub points
15%
popularity

Publisher

unverified uploader

A package that allows you to run ymodem in dart, super YModem-1K.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

crclib, flutter, get

More

Packages that depend on flutter_ymodem