images_keys 0.0.4 copy "images_keys: ^0.0.4" to clipboard
images_keys: ^0.0.4 copied to clipboard

A simple and easy command-line generation tool generating image assets keys for Dart and Flutter projects.

example/lib/main.dart

import 'package:example/res/images/images_keys.images_keys.dart';
import 'package:flutter/material.dart';

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
        visualDensity: VisualDensity.adaptivePlatformDensity,
      ),
      home: MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  MyHomePage({Key key, this.title}) : super(key: key);

  final String title;

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            Image.asset(ImagesKeys.logo_dart_png),
            Image.asset(ImagesKeys.baseline_sentiment_png),
          ],
        ),
      ),
    );
  }
}
1
likes
140
pub points
39%
popularity

Publisher

unverified uploader

A simple and easy command-line generation tool generating image assets keys for Dart and Flutter projects.

Repository (GitHub)
View/report issues

Documentation

Documentation
API reference

License

MIT (LICENSE)

Dependencies

args, path

More

Packages that depend on images_keys