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

discontinued
outdated

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 WebImagePicker.pickImage();
          setState(() {
            image = _image;
          });
        },
      ),
      body: Center(child: image != null ? image : Text('No data...')),
    );
  }
}
22
likes
0
pub points
61%
popularity

Publisher

unverified uploader

A package designed for input images on web flutter.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on flutter_web_image_picker