hex_alpha 1.0.3+1 copy "hex_alpha: ^1.0.3+1" to clipboard
hex_alpha: ^1.0.3+1 copied to clipboard

Get an ARGB color by specifying a hex string and an alpha value.

example/main.dart

import 'package:flutter/material.dart';
//Import the package, the line below will be different
import 'package:hex_alpha/hex_alpha.dart';
void main(){
  return runApp(
    MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: Text(
            "Hex Alpha",
          ),
          backgroundColor: hexAlpha('#8f6787', 0.8),
        ),
        body: Center(
          child: Icon(
            Icons.memory,
            color: hexAlpha('#ff7373', 1),
            size: 50,
          ),
        ),
      ),
    ),
  );
}
2
likes
120
pub points
51%
popularity

Publisher

unverified uploader

Get an ARGB color by specifying a hex string and an alpha value.

Homepage

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on hex_alpha