v_platform 2.1.4 copy "v_platform: ^2.1.4" to clipboard
v_platform: ^2.1.4 copied to clipboard

VPlatformFile is a Dart package that provides easy handling of files from paths, URLs, assets, and bytes, with utilities for metadata, MIME type, and serialization support.

example/lib/main.dart

import 'package:example/ui/home_screen.dart';
import 'package:flutter/material.dart';
import 'package:v_platform/v_platform.dart';

void main() {
  VPlatformFileUtils.baseMediaUrl = "xxx";
  final x = VPlatformFile.fromUrl(
    networkUrl: "https://dl.espressif.com/dl/audio/ff-16b-2c-44100hz.mp3",
  );
  print(x.fullNetworkUrl!);

  runApp(const MediaPickerApp());
}

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Media Picker App',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const HomeScreen(),
    );
  }
}
2
likes
150
pub points
80%
popularity

Publisher

unverified uploader

VPlatformFile is a Dart package that provides easy handling of files from paths, URLs, assets, and bytes, with utilities for metadata, MIME type, and serialization support.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

crypto, file_sizes, flutter, http, http_parser, mime, mime_type, path, universal_html

More

Packages that depend on v_platform