hl_image_picker_ios 1.0.1 copy "hl_image_picker_ios: ^1.0.1" to clipboard
hl_image_picker_ios: ^1.0.1 copied to clipboard

outdated

iOS implementation of the hl_image_picker plugin.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:hl_image_picker_ios/hl_image_picker_ios.dart';

void main() {
  runApp(const MyApp());
}

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

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Center(
          child: ElevatedButton(
              onPressed: () async {
                final picker = await HLImagePickerIOS().openPicker(
                  mediaType: MediaType.image,
                  cropping: true,
                  style: HLPickerStyle(
                    maxFileSizeErrorText: "File too big",
                    tapHereToChangeText: "Tap tap",
                    cropCancelText: "Back",
                    cropDoneText: "Finish"
                  ),
                );
                print(picker);
              },
              child: const Text('Open Picker')),
        ),
      ),
    );
  }
}
3
likes
0
points
1.43k
downloads

Publisher

unverified uploader

Weekly Downloads

iOS implementation of the hl_image_picker plugin.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, hl_image_picker_platform_interface

More

Packages that depend on hl_image_picker_ios

Packages that implement hl_image_picker_ios