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

A new Flutter plugin

example/lib/main.dart

import 'dart:developer';

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

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

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

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

class _MyAppState extends State<MyApp> {
  final _imagesGetterPlugin = ImagesGetter();

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Center(
            child: TextButton(
          child: const Text('Get Images'),
          onPressed: () async {
            final images = await _imagesGetterPlugin.getImages();
            log(images.toString());
          },
        )),
      ),
    );
  }
}
2
likes
140
points
24
downloads

Publisher

unverified uploader

Weekly Downloads

A new Flutter plugin

Homepage

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, flutter_web_plugins, plugin_platform_interface

More

Packages that depend on images_getter