image_editor_pro 1.0.8 copy "image_editor_pro: ^1.0.8" to clipboard
image_editor_pro: ^1.0.8 copied to clipboard

outdated

Image Editor Plugin with simple, easy support for image editing using paints,text and emoji like stories.

example/lib/main.dart

import 'dart:io';
import 'package:image_editor_pro/image_editor_pro.dart';
import 'package:firexcode/firexcode.dart';

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return HomePage().xMaterialApp();
  }
}

class HomePage extends StatefulWidget {
  @override
  _HomePageState createState() => _HomePageState();
}

class _HomePageState extends State<HomePage> {
  File _image;

  Future<void> getimageditor() =>
      Navigator.push(context, MaterialPageRoute(builder: (context) {
        return ImageEditorPro(
          appBarColor: Colors.blue,
          bottomBarColor: Colors.blue,
        );
      })).then((geteditimage) {
        if (geteditimage != null) {
          setState(() {
            _image = geteditimage;
          });
        }
      }).catchError((er) {
        print(er);
      });

  @override
  Widget build(BuildContext context) {
    return condition(
            condtion: _image == null,
            isTue: 'Open Editor'.text().xRaisedButton(
              onPressed: () {
                getimageditor();
              },
            ).toCenter(),
            isFalse: Image.file(_image).toCenter())
        .xScaffold(
            appBar:
                'Image Editor Pro example'.textMaterialColorWhite().xAppBar(),
            floatingActionButton:
                Icons.add.xIcons().xFloationActiobButton(color: Colors.red));
  }
}

Widget condition({bool condtion, Widget isTue, Widget isFalse}) {
  return condtion ? isTue : isFalse;
}
339
likes
0
pub points
68%
popularity

Publisher

unverified uploader

Image Editor Plugin with simple, easy support for image editing using paints,text and emoji like stories.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

cupertino_icons, dio, flutter, flutter_colorpicker, font_awesome_flutter, image_gallery_saver, image_picker, path_provider, permission_handler, screenshot, signature, zoom_widget

More

Packages that depend on image_editor_pro