flutter_file_uploader 1.1.1 copy "flutter_file_uploader: ^1.1.1" to clipboard
flutter_file_uploader: ^1.1.1 copied to clipboard

Flutter widgets that simplify the creation and use of the en_file_uploader library. They include both the UI and business logic for file management.

example/lib/main.dart

import 'package:example/examples/examples.dart';
import 'package:example/l10n/l10n.dart';
import 'package:example/utils.dart';
import 'package:flutter/material.dart';

void main() {
  backend.clear();
  runApp(const App());
}

final _routes = <String, Widget Function(BuildContext)>{
  '/default': (_) => DefaultFilesUpload(),
  '/default_restorable_chunked': (_) => DefaultRestorableChunkedFilesUpload(),
  './self_ref_management': (_) => SelfRefManagementFilesUpload(),
};

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      theme: ThemeData(
        appBarTheme: AppBarTheme(
          backgroundColor: Theme.of(context).colorScheme.inversePrimary,
        ),
        useMaterial3: true,
      ),
      localizationsDelegates: AppLocalizations.localizationsDelegates,
      supportedLocales: AppLocalizations.supportedLocales,
      routes: {'/': (_) => ShowCase(), ..._routes},
    );
  }
}

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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Padding(
        padding: const EdgeInsets.all(8.0),
        child: Center(
          child: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            crossAxisAlignment: CrossAxisAlignment.center,
            children: _routes.keys.map((name) {
              return ElevatedButton(
                onPressed: () {
                  Navigator.pushNamed(context, name);
                },
                child: Text(name),
              );
            }).toList(),
          ),
        ),
      ),
    );
  }
}
6
likes
0
pub points
56%
popularity

Publisher

verified publishermattiapispisa.it

Flutter widgets that simplify the creation and use of the en_file_uploader library. They include both the UI and business logic for file management.

Homepage
Repository (GitHub)
View/report issues

Topics

#file #upload #widget #en-file-uploader

License

unknown (license)

Dependencies

en_file_uploader, flutter, mobkit_dashed_border, provider

More

Packages that depend on flutter_file_uploader