simple_utils 0.0.1 copy "simple_utils: ^0.0.1" to clipboard
simple_utils: ^0.0.1 copied to clipboard

A new Flutter package.

sample_utils #

A simple utils package. Include color,date simple utils

Getting Started #

1.transform color from rgb string "#23bde3" #

Color colorValue = SimpleUtil.transColor("23bde3");

2.isToday #

DateTime tempDate1 = DateTime.parse("2019-06-20 15:32:41");
bool isToday = SimpleUtil.isToday(tempDate1.millisecondsSinceEpoch);

DateTime tempDate2 = DateTime.now();
bool isToday = SimpleUtil.isToday(tempDate2.millisecondsSinceEpoch);

3.isSameDay #

DateTime tempDate1 = DateTime.parse("2019-06-20 15:32:41");
DateTime tempDate2 = DateTime.now();

bool isSameDay = SimpleUtil.dayIsEqual(tempDate1.millisecondsSinceEpoch, tempDate2.millisecondsSinceEpoch);

This project is a starting point for a Dart package, a library module containing code that can be shared easily across multiple Flutter or Dart projects.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

1
likes
20
pub points
11%
popularity

Publisher

unverified uploader

A new Flutter package.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on simple_utils