color (theme) fixes, NOT FINISHED
This commit is contained in:
@@ -61,7 +61,7 @@ class _FilterBarState extends State<FilterBar> {
|
||||
indicatorSize: TabBarIndicatorSize.tab,
|
||||
indicatorPadding: const EdgeInsets.symmetric(vertical: 8.0),
|
||||
indicator: BoxDecoration(
|
||||
color: Theme.of(context).colorScheme.secondary.withOpacity(0.25),
|
||||
color: Theme.of(context).colorScheme.secondary.withOpacity(.2),
|
||||
borderRadius: BorderRadius.circular(45.0),
|
||||
),
|
||||
overlayColor: MaterialStateProperty.all(const Color(0x00000000)),
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import 'package:refilc/theme/colors/colors.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class RoundBorderIcon extends StatelessWidget {
|
||||
@@ -19,7 +18,9 @@ class RoundBorderIcon extends StatelessWidget {
|
||||
return Container(
|
||||
decoration: BoxDecoration(
|
||||
border: Border.all(
|
||||
color: color ?? AppColors.of(context).text, width: width),
|
||||
color: color ??
|
||||
Theme.of(context).colorScheme.secondary.withOpacity(0.25),
|
||||
width: width),
|
||||
borderRadius: BorderRadius.circular(50.0),
|
||||
),
|
||||
child: Padding(
|
||||
|
||||
@@ -53,8 +53,10 @@ class SplittedPanel extends StatelessWidget {
|
||||
),
|
||||
border: hasBorder
|
||||
? Border.all(
|
||||
color:
|
||||
Theme.of(context).colorScheme.primary.withOpacity(.25),
|
||||
color: Theme.of(context)
|
||||
.colorScheme
|
||||
.secondary
|
||||
.withOpacity(.25),
|
||||
width: 1.0)
|
||||
: null,
|
||||
),
|
||||
|
||||
@@ -91,7 +91,7 @@ class MessageViewTile extends StatelessWidget {
|
||||
decoration: BoxDecoration(
|
||||
borderRadius: BorderRadius.circular(16.0),
|
||||
border: Border.all(
|
||||
color: Theme.of(context).colorScheme.primary.withOpacity(.25),
|
||||
color: Theme.of(context).colorScheme.secondary.withOpacity(.25),
|
||||
width: 1.0,
|
||||
),
|
||||
),
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import 'package:refilc/utils/color.dart';
|
||||
import 'package:refilc_kreta_api/models/note.dart';
|
||||
import 'package:refilc_mobile_ui/common/profile_image/profile_image.dart';
|
||||
import 'package:refilc/utils/format.dart';
|
||||
@@ -31,12 +30,13 @@ class NoteView extends StatelessWidget {
|
||||
: note.teacher.name) ??
|
||||
'',
|
||||
radius: 22.0,
|
||||
backgroundColor: ColorUtils.stringToColor(
|
||||
(note.teacher.isRenamed
|
||||
? note.teacher.renamedTo
|
||||
: note.teacher.name) ??
|
||||
'',
|
||||
),
|
||||
backgroundColor: Theme.of(context).colorScheme.secondary,
|
||||
// backgroundColor: ColorUtils.stringToColor(
|
||||
// (note.teacher.isRenamed
|
||||
// ? note.teacher.renamedTo
|
||||
// : note.teacher.name) ??
|
||||
// '',
|
||||
// ),
|
||||
),
|
||||
title: Text(
|
||||
note.title,
|
||||
|
||||
@@ -58,7 +58,7 @@ class TickTileState extends State<TickTile> {
|
||||
decoration: BoxDecoration(
|
||||
shape: BoxShape.circle,
|
||||
border: Border.all(
|
||||
color: Theme.of(context).colorScheme.primary,
|
||||
color: Theme.of(context).colorScheme.secondary,
|
||||
width: 2.0,
|
||||
),
|
||||
),
|
||||
@@ -67,7 +67,7 @@ class TickTileState extends State<TickTile> {
|
||||
: Icon(
|
||||
FeatherIcons.checkCircle,
|
||||
size: 22.0,
|
||||
color: Theme.of(context).colorScheme.primary,
|
||||
color: Theme.of(context).colorScheme.secondary,
|
||||
),
|
||||
title: Row(
|
||||
children: [
|
||||
|
||||
@@ -164,7 +164,7 @@ class AbsencesPageState extends State<AbsencesPage>
|
||||
name: firstName,
|
||||
backgroundColor: Theme.of(context)
|
||||
.colorScheme
|
||||
.primary, //ColorUtils.stringToColor(user.displayName ?? "?"),
|
||||
.secondary, //ColorUtils.stringToColor(user.displayName ?? "?"),
|
||||
badge: updateProvider.available,
|
||||
role: user.role,
|
||||
profilePictureString: user.picture,
|
||||
@@ -423,7 +423,9 @@ class AbsencesPageState extends State<AbsencesPage>
|
||||
child: filterWidgets[index - (activeData <= 1 ? 1 : 0)],
|
||||
);
|
||||
} else {
|
||||
return _tabController.index == 1 ? Empty(subtitle: "emptyDelays".i18n) : Empty(subtitle: "emptyMisses".i18n);
|
||||
return _tabController.index == 1
|
||||
? Empty(subtitle: "emptyDelays".i18n)
|
||||
: Empty(subtitle: "emptyMisses".i18n);
|
||||
}
|
||||
},
|
||||
),
|
||||
|
||||
@@ -540,7 +540,7 @@ class GradesPageState extends State<GradesPage> {
|
||||
name: firstName,
|
||||
backgroundColor: Theme.of(context)
|
||||
.colorScheme
|
||||
.primary, //ColorUtils.stringToColor(user.displayName ?? "?"),
|
||||
.secondary, //ColorUtils.stringToColor(user.displayName ?? "?"),
|
||||
badge: updateProvider.available,
|
||||
role: user.role,
|
||||
profilePictureString: user.picture,
|
||||
|
||||
@@ -252,7 +252,7 @@ class HomePageState extends State<HomePage> with TickerProviderStateMixin {
|
||||
name: firstName,
|
||||
backgroundColor: Theme.of(context)
|
||||
.colorScheme
|
||||
.primary, //!settings.presentationMode
|
||||
.secondary, //!settings.presentationMode
|
||||
//? ColorUtils.stringToColor(user.displayName ?? "?")
|
||||
//: Theme.of(context).colorScheme.secondary,
|
||||
badge: updateProvider.available,
|
||||
|
||||
@@ -105,7 +105,7 @@ class MessagesPageState extends State<MessagesPage>
|
||||
name: firstName,
|
||||
backgroundColor: Theme.of(context)
|
||||
.colorScheme
|
||||
.primary, //ColorUtils.stringToColor(user.displayName ?? "?"),
|
||||
.secondary, //ColorUtils.stringToColor(user.displayName ?? "?"),
|
||||
badge: updateProvider.available,
|
||||
role: user.role,
|
||||
profilePictureString: user.picture,
|
||||
|
||||
@@ -250,7 +250,7 @@ class NotesPageState extends State<NotesPage> with TickerProviderStateMixin {
|
||||
name: firstName,
|
||||
backgroundColor: Theme.of(context)
|
||||
.colorScheme
|
||||
.primary, //ColorUtils.stringToColor(user.displayName ?? "?"),
|
||||
.secondary, //ColorUtils.stringToColor(user.displayName ?? "?"),
|
||||
badge: updateProvider.available,
|
||||
role: user.role,
|
||||
profilePictureString: user.picture,
|
||||
|
||||
@@ -271,7 +271,7 @@ class TimetablePageState extends State<TimetablePage>
|
||||
name: firstName,
|
||||
backgroundColor: Theme.of(context)
|
||||
.colorScheme
|
||||
.primary, //ColorUtils.stringToColor(user.displayName ?? "?"),
|
||||
.secondary, //ColorUtils.stringToColor(user.displayName ?? "?"),
|
||||
badge: updateProvider.available,
|
||||
role: user.role,
|
||||
profilePictureString: user.picture,
|
||||
@@ -523,7 +523,7 @@ class TimetablePageState extends State<TimetablePage>
|
||||
border: Border.all(
|
||||
color: Theme.of(context)
|
||||
.colorScheme
|
||||
.primary
|
||||
.secondary
|
||||
.withOpacity(0.25),
|
||||
),
|
||||
borderRadius:
|
||||
|
||||
@@ -34,7 +34,7 @@ class NavbarItem extends StatelessWidget {
|
||||
padding: const EdgeInsets.all(12.0),
|
||||
decoration: BoxDecoration(
|
||||
color: active
|
||||
? Theme.of(context).colorScheme.secondary.withOpacity(.4)
|
||||
? Theme.of(context).colorScheme.secondary.withOpacity(.2)
|
||||
: null,
|
||||
borderRadius: BorderRadius.circular(14.0),
|
||||
),
|
||||
|
||||
@@ -30,7 +30,7 @@ class AccountView extends StatelessWidget {
|
||||
AccountTile(
|
||||
profileImage: ProfileImage(
|
||||
name: _firstName,
|
||||
backgroundColor: Theme.of(context).colorScheme.primary,
|
||||
backgroundColor: Theme.of(context).colorScheme.secondary,
|
||||
role: user.role,
|
||||
),
|
||||
name: SelectableText(
|
||||
|
||||
@@ -133,7 +133,7 @@ class SettingsScreenState extends State<SettingsScreen>
|
||||
profilePictureString: account.picture,
|
||||
backgroundColor: Theme.of(context)
|
||||
.colorScheme
|
||||
.primary, //!settings.presentationMode
|
||||
.secondary, //!settings.presentationMode
|
||||
//? ColorUtils.stringToColor(account.name)
|
||||
//: Theme.of(context).colorScheme.secondary,
|
||||
),
|
||||
@@ -319,7 +319,7 @@ class SettingsScreenState extends State<SettingsScreen>
|
||||
profilePictureString: user.picture,
|
||||
backgroundColor: Theme.of(context)
|
||||
.colorScheme
|
||||
.primary, //!settings.presentationMode
|
||||
.secondary, //!settings.presentationMode
|
||||
//? ColorUtils.stringToColor(user.displayName ?? "?")
|
||||
//: Theme.of(context).colorScheme.secondary,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user