flutter_web_image_picker 0.0.2 copy "flutter_web_image_picker: ^0.0.2" to clipboard
flutter_web_image_picker: ^0.0.2 copied to clipboard

discontinued

A package designed for input images on web flutter.

example/lib/main.dart

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

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

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

class ImagePickerPage extends StatefulWidget {
  @override
  _ImagePickerPageState createState() => _ImagePickerPageState();
}

class _ImagePickerPageState extends State<ImagePickerPage> {
  Image image;
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(image?.semanticLabel ?? ""),
      ),
      floatingActionButton: FloatingActionButton(
        child: Icon(Icons.open_in_browser),
        onPressed: () async {
          final _image = await FlutterWebImagePicker.getImage;
          setState(() {
            image = _image;
          });
        },
      ),
      body: Center(child: image != null ? image : Text('No data...')),
    );
  }
}
22
likes
30
pub points
61%
popularity

Publisher

unverified uploader

A package designed for input images on web flutter.

Repository (GitHub)
View/report issues

License

GPL-3.0 (license)

Dependencies

flutter, flutter_web_plugins

More

Packages that depend on flutter_web_image_picker