Convert colors to const
[skip ci]
This commit is contained in:
parent
770c5082a3
commit
c811e773b5
5 changed files with 15 additions and 15 deletions
|
|
@ -41,7 +41,7 @@ class ProfileCard extends StatelessWidget {
|
|||
foregroundImage: CachedNetworkImageProvider(
|
||||
authStore.user!.profileImageUrl,
|
||||
),
|
||||
backgroundColor: Colors.deepPurple,
|
||||
backgroundColor: const Color(0xFF673AB7),
|
||||
),
|
||||
title: Text(authStore.user!.displayName),
|
||||
onTap: () => _showDialog(context),
|
||||
|
|
|
|||
|
|
@ -263,10 +263,10 @@ abstract class _ChatStoreBase with Store {
|
|||
const SizedBox(height: 5),
|
||||
banDuration == null
|
||||
? (ircMessage.command == Command.clearMessage)
|
||||
? const Text('Message deleted.')
|
||||
: const Text('Permanently Banned.')
|
||||
? const Text('Message Deleted', style: TextStyle(fontWeight: FontWeight.bold))
|
||||
: const Text('User Permanently Banned', style: TextStyle(fontWeight: FontWeight.bold))
|
||||
: Text(
|
||||
'Timed out for $banDuration second(s).',
|
||||
'Timed out for $banDuration second(s)',
|
||||
style: const TextStyle(fontWeight: FontWeight.bold),
|
||||
),
|
||||
],
|
||||
|
|
@ -290,7 +290,7 @@ abstract class _ChatStoreBase with Store {
|
|||
|
||||
// Render sub alerts
|
||||
return Container(
|
||||
color: Colors.purple.withOpacity(0.3),
|
||||
color: const Color(0xFF673AB7).withOpacity(0.25),
|
||||
padding: const EdgeInsets.all(10.0),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ class VideoOverlay extends StatelessWidget {
|
|||
opacity: videoStore.menuVisible ? 1.0 : 0.0,
|
||||
duration: const Duration(milliseconds: 100),
|
||||
child: ColoredBox(
|
||||
color: Colors.black.withOpacity(0.5),
|
||||
color: const Color.fromRGBO(0, 0, 0, 0.5),
|
||||
child: IgnorePointer(
|
||||
ignoring: !videoStore.menuVisible,
|
||||
child: Stack(
|
||||
|
|
@ -41,7 +41,7 @@ class VideoOverlay extends StatelessWidget {
|
|||
IconButton(
|
||||
icon: Icon(
|
||||
Icons.adaptive.arrow_back,
|
||||
color: Colors.white,
|
||||
color: const Color(0xFFFFFFFF),
|
||||
),
|
||||
onPressed: () => Navigator.of(context).pop(),
|
||||
),
|
||||
|
|
@ -49,7 +49,7 @@ class VideoOverlay extends StatelessWidget {
|
|||
IconButton(
|
||||
icon: const Icon(
|
||||
Icons.settings,
|
||||
color: Colors.white,
|
||||
color: Color(0xFFFFFFFF),
|
||||
),
|
||||
onPressed: () {
|
||||
showModalBottomSheet(
|
||||
|
|
@ -73,7 +73,7 @@ class VideoOverlay extends StatelessWidget {
|
|||
Text(
|
||||
userName,
|
||||
style: const TextStyle(
|
||||
color: Colors.white,
|
||||
color: Color(0xFFFFFFFF),
|
||||
fontSize: 20,
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
|
|
@ -87,14 +87,14 @@ class VideoOverlay extends StatelessWidget {
|
|||
IconButton(
|
||||
icon: const Icon(
|
||||
Icons.picture_in_picture_alt_rounded,
|
||||
color: Colors.white,
|
||||
color: Color(0xFFFFFFFF),
|
||||
),
|
||||
onPressed: videoStore.enterPictureInPicture,
|
||||
),
|
||||
IconButton(
|
||||
icon: const Icon(
|
||||
Icons.fullscreen,
|
||||
color: Colors.white,
|
||||
color: Color(0xFFFFFFFF),
|
||||
),
|
||||
onPressed: videoStore.requestFullscreen,
|
||||
)
|
||||
|
|
@ -107,11 +107,11 @@ class VideoOverlay extends StatelessWidget {
|
|||
icon: videoStore.paused
|
||||
? const Icon(
|
||||
Icons.play_arrow,
|
||||
color: Colors.white,
|
||||
color: Color(0xFFFFFFFF),
|
||||
)
|
||||
: const Icon(
|
||||
Icons.pause,
|
||||
color: Colors.white,
|
||||
color: Color(0xFFFFFFFF),
|
||||
),
|
||||
onPressed: videoStore.handlePausePlay,
|
||||
),
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ class _SearchState extends State<Search> {
|
|||
? ClipRRect(
|
||||
borderRadius: BorderRadius.circular(5.0),
|
||||
child: Container(
|
||||
color: Colors.red,
|
||||
color: const Color(0xFFF44336),
|
||||
padding: const EdgeInsets.all(8.0),
|
||||
child: const Text(
|
||||
'LIVE',
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ class StreamCard extends StatelessWidget {
|
|||
padding: const EdgeInsets.symmetric(horizontal: 2.0),
|
||||
child: Text(
|
||||
DateTime.now().difference(DateTime.parse(streamInfo.startedAt)).toString().split('.')[0],
|
||||
style: const TextStyle(fontSize: 12, color: Colors.white),
|
||||
style: const TextStyle(fontSize: 12, color: Color(0xFFFFFFFF)),
|
||||
),
|
||||
)
|
||||
],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue