Created
October 7, 2020 21:17
-
-
Save usimsek/3cea96df97d828e2ebb05f912e634426 to your computer and use it in GitHub Desktop.
flutter random color
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//import 'dart:math' as math; | |
Color((math.Random().nextDouble() * 0xFFFFFF).toInt()).withOpacity(1.0) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment