ffr_hex_color 0.0.1
ffr_hex_color: ^0.0.1

Flutter Android iOS web

A hex color string converter which can be used in flutter and dart by the ffr-devteam.

ffr_hex_color #

FFR Hex Color package to convert a color from a hex string to colordata used in flutter.

The source code is 100% Dart and Flutter, and all necessary files are located in the /lib folder

Installation #

In the dependencies: section of your pubspec.yaml, add the following line:

ffr_hex_color: <latest_version>

Import in your project:

import 'package:ffr_hex_color/ffr_hex_color.dart';

Basic Ussage #

class HomeScreen extends StatefulWidget {
  @override
  _HomeScreenState createState() => _HomeScreenState();
}

class _HomeScreenState extends State<HomeScreen> {

  String hexColor = '#eb34db';

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('FFR Custom Switch Example'),
      ),
      body: Center(
          child: Container(
              width: 100,
              height: 100,
              color: FFRHexColor(hexColor),
          ),
      ),
    );
  }
}
0
likes
100
pub points
21%
popularity

A hex color string converter which can be used in flutter and dart by the ffr-devteam.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

devteam@fair-rates.ch

License

BSD (LICENSE)

Dependencies

flutter

More

Packages that depend on ffr_hex_color