direct_link 0.2.3 copy "direct_link: ^0.2.3" to clipboard
direct_link: ^0.2.3 copied to clipboard

Direct link extractor from URL to stream and download directly.

example/lib/main.dart

import 'package:direct_link/direct_link.dart';
import 'package:example/src/home/presentation/screens/home_screen.dart';
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';

Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();

  await DirectLink().init(
    allowNotification: true,
    androidInitializationSettings:
        const AndroidInitializationSettings('launch_background'),
  );

  runApp(const ProviderScope(child: MyApp()));
}

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Direct Link',
      darkTheme: ThemeData.dark(useMaterial3: true),
      theme: ThemeData.light(useMaterial3: true),
      debugShowCheckedModeBanner: false,
      home: const HomeScreen(),
    );
  }
}
69
likes
150
pub points
81%
popularity

Publisher

unverified uploader

Direct link extractor from URL to stream and download directly.

Repository (GitHub)
View/report issues

Documentation

API reference

Funding

Consider supporting this project:

paypal.me
ko-fi.com

License

MIT (license)

Dependencies

easy_downloader, easy_downloader_flutter_lib, flutter, flutter_inappwebview, flutter_local_notifications, html, puppeteer

More

Packages that depend on direct_link