image_picker_widget 1.0.2
image_picker_widget: ^1.0.2 copied to clipboard

Flutter Android iOS

Flutter package to integrate image_picker with a simple Flutter widget, allowing you to edit an image without any problems with design code development.

example/lib/main.dart

import 'dart:io';

import 'package:flutter/material.dart';
import 'package:image_picker_widget/enum/image_picker_widget_shape.dart';
import 'package:image_picker_widget/image_picker_widget.dart';

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  MyHomePage({Key key, this.title}) : super(key: key);

  final String title;

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    //
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(
          child: ImagePickerWidget(
        diameter: 180,
        initialImage:
            "https://strattonapps.com/wp-content/uploads/2020/02/flutter-logo-5086DD11C5-seeklogo.com_.png",
        shape: ImagePickerWidgetShape.circle,
        isEditable: true,
        onChange: (File file) {
          print("I changed the file to: ${file.path}");
        },
      )),
    );
  }
}
2
likes
100
pub points
56%
popularity

Flutter package to integrate image_picker with a simple Flutter widget, allowing you to edit an image without any problems with design code development.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

julio.cesar.g.c125@gmail.com

License

BSD (LICENSE)

Dependencies

flutter, image_picker

More

Packages that depend on image_picker_widget