wo_form_service 1.0.2 copy "wo_form_service: ^1.0.2" to clipboard
wo_form_service: ^1.0.2 copied to clipboard

An implementation of services from wo_form.

wo_form_service #

An implementation of services from wo_form.

Features #

  • Implements MediaInput with MediaField & WoMediaService
  • Beautiful date pickers whith DateTimeService

Getting started #

To use WoMediaService, extend it with the features of your choice.

class WoMediaServiceImpl extends WoMediaService {
  const WoMediaServiceImpl({required super.permissionService});

  ...
}

Usage #

Provide the services you need with the following code above your MaterialApp.

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

  @override
  Widget build(BuildContext context) {
    return MultiRepositoryProvider(
      providers: [
        RepositoryProvider<MediaService>(
          create: (context) => WoMediaServiceImpl(
            permissionService: context.read(),
            // storageRepository: context.read(),
          ),
        ),
        RepositoryProvider<WoMediaService>(
          create: (context) =>
              context.read<MediaService>() as WoMediaServiceImpl,
        ),
        RepositoryProvider(create: (context) => const DateTimeService()),
      ],
      child: MaterialApp(), // Your app here
    );
  }
}

1
likes
120
points
24
downloads

Publisher

verified publisherwomotaq.com

Weekly Downloads

An implementation of services from wo_form.

Repository (GitHub)
View/report issues

Documentation

API reference

Funding

Consider supporting this project:

ko-fi.com

License

GPL-3.0 (license)

Dependencies

collection, dotted_border, flutter, flutter_bloc, http, image_cropper, image_picker, intl, path_provider, wo_form

More

Packages that depend on wo_form_service