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

A useful palette

example/lib/main.dart

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

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Dooadex Package Test App',
      theme: ThemeData(
        primarySwatch: MaterialColor(DooadexColor.primaryMaterialColor.colorHex,
            DooadexColor.primaryMaterialColor.swatch),
      ),
      home: const MyHomePage(title: 'Dooadex Home Page'),
    );
  }
}

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

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

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(
        child: Column(
          children: [
            Padding(
              padding: const EdgeInsets.all(8.0),
              child: Row(
                children: [
                  Container(
                    width: 20,
                    height: 20,
                    color: DooadexColor.primary,
                  ),
                  Container(
                    width: 20,
                    height: 20,
                    color: DooadexColor.secondary,
                  ),
                  Container(
                    width: 20,
                    height: 20,
                    color: DooadexColor.tertiary,
                  ),
                  Spacer(),
                  Container(
                    width: 20,
                    height: 20,
                    color: DooadexColor.pinkLavender,
                  ),
                  Container(
                    width: 20,
                    height: 20,
                    color: DooadexColor.lilac,
                  ),
                  Container(
                    width: 20,
                    height: 20,
                    color: DooadexColor.bilobaFlower,
                  ),
                  Container(
                    width: 20,
                    height: 20,
                    color: DooadexColor.veryPeri,
                  ),
                  Container(
                    width: 20,
                    height: 20,
                    color: DooadexColor.purpleMountainMajesty,
                  ),
                  Container(
                    width: 20,
                    height: 20,
                    color: DooadexColor.royalPurple,
                  ),
                  Container(
                    width: 20,
                    height: 20,
                    color: DooadexColor.deepPurple,
                  ),
                  Container(
                    width: 20,
                    height: 20,
                    color: DooadexColor.tyrianPurple,
                  ),
                  Container(
                    width: 20,
                    height: 20,
                    color: DooadexColor.mahoganyRed,
                  ),
                  Container(
                    width: 20,
                    height: 20,
                    color: DooadexColor.carmine,
                  ),
                  Container(
                    width: 20,
                    height: 20,
                    color: DooadexColor.oldLavender,
                  ),
                  Container(
                    width: 20,
                    height: 20,
                    color: DooadexColor.grey,
                  ),
                ],
              ),
            ),
            Text("NotoSansKR 노토산스", style: NotoSansKR.thin(fontSize: 20)),
            Text("NotoSansKR 노토산스", style: NotoSansKR.light(fontSize: 20)),
            Text("NotoSansKR 노토산스", style: NotoSansKR.regular(fontSize: 20)),
            Text("NotoSansKR 노토산스", style: NotoSansKR.medium(fontSize: 20)),
            Text("NotoSansKR 노토산스", style: NotoSansKR.bold(fontSize: 20)),
            Text("NotoSansKR 노토산스", style: NotoSansKR.black(fontSize: 20)),
            Text("Roboto 로보토", style: Roboto.thin(fontSize: 20)),
            Text("Roboto 로보토", style: Roboto.light(fontSize: 20)),
            Text("Roboto 로보토", style: Roboto.regular(fontSize: 20)),
            Text("Roboto 로보토", style: Roboto.medium(fontSize: 20)),
            Text("Roboto 로보토", style: Roboto.bold(fontSize: 20)),
            Text("Roboto 로보토", style: Roboto.black(fontSize: 20)),
            Text("SFPro 샌프란시스코프로", style: SFPro.thin(fontSize: 20)),
            Text("SFPro 샌프란시스코프로", style: SFPro.light(fontSize: 20)),
            Text("SFPro 샌프란시스코프로", style: SFPro.regular(fontSize: 20)),
            Text("SFPro 샌프란시스코프로", style: SFPro.medium(fontSize: 20)),
            Text("SFPro 샌프란시스코프로", style: SFPro.bold(fontSize: 20)),
            Text("SFPro 샌프란시스코프로", style: SFPro.black(fontSize: 20)),
            Text(
              "Google 구글",
              style: M3Typo.headlineMedium,
            ),
            Text(
              "Google 구글",
              style: Roboto.regular(fontSize: 28),
            ),
            Text(
              "Apple 애플",
              style: HIGTypo.title1,
            ),
            Text(
              "Apple 애플",
              style: SFPro.regular(fontSize: 28),
            ),
          ],
        ),
      ),
    );
  }
}
1
likes
140
points
46
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A useful palette

License

MIT (license)

Dependencies

flutter

More

Packages that depend on dooadex_palette