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

PlatformAndroid

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

example/lib/main.dart

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()) {}
            debugPrint('done');
          } catch (e) {
            debugPrint('[MyApp]: ${e.toString()}');
          }
        },
      ),
    );
  }
}
2
likes
140
points
254
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, intl, mime, plugin_platform_interface, timeago, window_manager

More

Packages that depend on than_pkg

Packages that implement than_pkg