app_color 0.0.3 copy "app_color: ^0.0.3" to clipboard
app_color: ^0.0.3 copied to clipboard

Collection of color with advanced controlling system.

example/lib/main.dart

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

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      title: 'App Colors',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: const Home(),
    );
  }
}

class Home extends StatelessWidget {
  const Home({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    // HEX COLOR
    var hexColor = AppColor.fromHex("#c7c7c7");
    return Scaffold(
      backgroundColor: hexColor,
      body: Center(
        child: AspectRatio(
          aspectRatio: 1,
          child: Container(
            color: AppDefaultColors.red,
            margin: const EdgeInsets.all(90),
          ),
        ),
      ),
    );
  }
}
4
likes
0
pub points
72%
popularity

Publisher

unverified uploader

Collection of color with advanced controlling system.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on app_color