ag_widgets 0.0.2 copy "ag_widgets: ^0.0.2" to clipboard
ag_widgets: ^0.0.2 copied to clipboard

This package will contain daily to use smart widgets

example/lib/main.dart

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

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

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

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: SizedBox(
          width: MediaQuery.of(context).size.width,
          child: Column(
            crossAxisAlignment: CrossAxisAlignment.center,
            mainAxisAlignment: MainAxisAlignment.center,
            children: [
              /// IconImage: This will help you to set the icon which are being loaded from assets or network.
              Text("Example of IconImage()"),
              SizedBox(height: 16),
              "assets/images/placeholder.jpg".iconImage(),
            ],
          ),
        ),
      ),
    );
  }
}