flutter_assets 0.0.6 copy "flutter_assets: ^0.0.6" to clipboard
flutter_assets: ^0.0.6 copied to clipboard

Help you quickly generate resource files or detect invalid resource references in the project.

example/lib/main.dart

import 'package:example/app_res/app_image.dart';
import 'package:flutter/material.dart';

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

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

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: const MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key, required this.title});
  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: Wrap(
          spacing: 10,
          runSpacing: 10,
          children: <Widget>[
            Image.asset(AppImages.stopCircleFill, width: 50, height: 50),
            Image.asset(AppImages.pauseCircleFill, width: 50, height: 50),
            Image.asset(AppImages.playCircleFill, width: 50, height: 50),
          ],
        ),
      ),
    );
  }
}
2
likes
150
points
74
downloads

Publisher

unverified uploader

Weekly Downloads

Help you quickly generate resource files or detect invalid resource references in the project.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on flutter_assets