than_pkg 6.0.0 copy "than_pkg: ^6.0.0" to clipboard
than_pkg: ^6.0.0 copied to clipboard

PlatformAndroid

My personal Flutter plugin with support for both Android and Linux platforms.

example/lib/main.dart

// ignore_for_file: avoid_print, unused_local_variable

import 'package:flutter/material.dart';
import 'package:than_pkg/than_pkg.dart';

void main() {
  runApp(MaterialApp(home: const MyApp()));
}

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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text('Than Pkg ')),
      body: Placeholder(),
      floatingActionButton: FloatingActionButton(
        onPressed: () async {
          try {
            if (await ThanPkg.platform.isStoragePermissionGranted()) {}
            final path = '/home/thancoder/Downloads/The Room 2019.mp4';
            final outpath =
                '/home/thancoder/projects/dart_plugins/than_pkg/thumb.jpg';
            // final pkg = ThanPkg.newpkg.video;
            // print(await pkg.getVideoDuration(path));
          } catch (e) {
            debugPrint('[MyApp]: ${e.toString()}');
          }
        },
      ),
    );
  }
}
2
likes
150
points
237
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

My personal Flutter plugin with support for both Android and Linux platforms.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter, mime, plugin_platform_interface, window_manager

More

Packages that depend on than_pkg

Packages that implement than_pkg