ios_platform_images 0.2.0-nullsafety copy "ios_platform_images: ^0.2.0-nullsafety" to clipboard
ios_platform_images: ^0.2.0-nullsafety copied to clipboard

outdated

A plugin to share images between Flutter and iOS in add-to-app setups.

example/lib/main.dart

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

void main() => runApp(MyApp());

/// Main widget for the example app.
class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  void initState() {
    super.initState();

    IosPlatformImages.resolveURL("textfile").then((value) => print(value));
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Center(
          // "pug" is a resource in Assets.xcassets.
          child: Image(image: IosPlatformImages.load("flutter")),
        ),
      ),
    );
  }
}
30
likes
0
points
516
downloads

Publisher

verified publisherflutter.dev

Weekly Downloads

A plugin to share images between Flutter and iOS in add-to-app setups.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on ios_platform_images