Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/data/repositories/firebase_social_repository.dart
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,7 @@ class FirebaseSocialRepository implements SocialRepository {

// add the check-in as a post
int timeStamp = DateTime.now().millisecondsSinceEpoch;
DocumentReference doc = await _database.collection("posts").add({
await _database.collection("posts").add({
"title": title ?? "",
"location": monumentDoc['city'] + ", " + monumentDoc['country'],
"imageUrl": "",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class _DiscoverViewDesktopState extends State<DiscoverViewDesktop> {
child: BackdropFilter(
filter: ImageFilter.blur(sigmaX: 10, sigmaY: 10),
child: Container(
color: Colors.black.withOpacity(0.5),
color: const Color.fromRGBO(0, 0, 0, 0.5),
),
),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class _DiscoverPostCardWidgetState extends State<DiscoverPostCardWidget> {
fit: BoxFit.cover,
colorFilter: isHovered
? ColorFilter.mode(
Colors.black.withOpacity(0.6),
const Color.fromRGBO(0, 0, 0, 0.6),
BlendMode.darken,
)
: null,
Expand All @@ -55,7 +55,10 @@ class _DiscoverPostCardWidgetState extends State<DiscoverPostCardWidget> {
children: [
SvgPicture.asset(
Assets.icons.icHeart.path,
color: Colors.white,
colorFilter: ColorFilter.mode(
Colors.white,
BlendMode.srcIn,
),
height: 18.sp,
),
const SizedBox(
Expand All @@ -73,7 +76,10 @@ class _DiscoverPostCardWidgetState extends State<DiscoverPostCardWidget> {
),
SvgPicture.asset(
Assets.icons.icComment.path,
color: Colors.white,
colorFilter: ColorFilter.mode(
Colors.white,
BlendMode.srcIn,
),
height: 18.sp,
),
const SizedBox(
Expand Down
4 changes: 2 additions & 2 deletions lib/presentation/discover/mobile/discover_view_mobile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class _DiscoverViewMobileState extends State<DiscoverViewMobile> {
child: BackdropFilter(
filter: ImageFilter.blur(sigmaX: 10, sigmaY: 10),
child: Container(
color: Colors.black.withOpacity(0.5),
color: const Color.fromRGBO(0, 0, 0, 0.5),
),
),
),
Expand Down Expand Up @@ -309,7 +309,7 @@ class _DiscoverViewMobileState extends State<DiscoverViewMobile> {
color: Colors.white,
boxShadow: [
BoxShadow(
color: Colors.black.withOpacity(0.1),
color: const Color.fromRGBO(0, 0, 0, 0.1),
blurRadius: 8,
offset: Offset(0, 3),
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class _ScaffoldWithNavigationRail extends StatelessWidget {
VerticalDivider(
thickness: 1,
width: 1,
color: colorScheme.primary.withOpacity(0.2),
color: colorScheme.primary.withAlpha((255 * 0.02).round()),
),
Expanded(
child: body,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class NotificationListWidget extends StatelessWidget {
Icon(
Icons.notifications_none_outlined,
size: 64,
color: AppColor.appPrimary.withOpacity(0.5),
color: AppColor.appPrimary.withAlpha((255 * 0.5).round()),
),
const SizedBox(height: 16),
Text(
Expand All @@ -101,7 +101,7 @@ class NotificationListWidget extends StatelessWidget {
"We'll notify you when something interesting happens",
style: TextStyle(
fontSize: 14,
color: AppColor.appSecondary.withOpacity(0.7),
color: AppColor.appSecondary.withAlpha((255 * 0.7).round()),
),
textAlign: TextAlign.center,
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class MonumentDetailsCard extends StatelessWidget {
image: imageProvider,
fit: BoxFit.cover,
colorFilter: ColorFilter.mode(
Colors.black.withOpacity(0.4),
const Color.fromRGBO(0, 0, 0, 0.4),
BlendMode.srcOver,
),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ class _MonumentDetailedPageState extends State<MonumentDetailedPage> {
Container(
padding: const EdgeInsets.symmetric(horizontal: 10, vertical: 4),
decoration: BoxDecoration(
color: AppColor.appPrimary.withOpacity(0.1),
color: AppColor.appPrimary.withAlpha((255 * 0.1).round()),
borderRadius: BorderRadius.circular(16),
),
child: Text(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ class _ScanMonumentsScreenState extends State<ScanMonumentsScreen> {
borderRadius: BorderRadius.circular(5.sp),
boxShadow: [
BoxShadow(
color: AppColor.appSecondary.withOpacity(0.2),
color: AppColor.appSecondary.withAlpha((255 * 0.2).round()),
offset: const Offset(2, 1))
],
color: AppColor.appPrimary),
Expand Down