Update codebase
This commit is contained in:
@@ -2,7 +2,7 @@ import 'package:flutter/material.dart';
|
||||
import 'package:get/get.dart';
|
||||
import '../../constant/colors.dart';
|
||||
import '../../../controller/gamification/challenges_controller.dart';
|
||||
import '../widgets/ui/siro_ui.dart';
|
||||
import '../widgets/ui/tripz_ui.dart';
|
||||
|
||||
class ChallengesPage extends StatelessWidget {
|
||||
ChallengesPage({super.key});
|
||||
@@ -13,7 +13,7 @@ class ChallengesPage extends StatelessWidget {
|
||||
return Scaffold(
|
||||
body: GetBuilder<ChallengesController>(builder: (cc) {
|
||||
if (cc.isLoading) {
|
||||
return const SiroLoading();
|
||||
return const TripzLoading();
|
||||
}
|
||||
return CustomScrollView(
|
||||
physics: const BouncingScrollPhysics(),
|
||||
@@ -42,7 +42,7 @@ class ChallengesPage extends StatelessWidget {
|
||||
background: Stack(fit: StackFit.expand, children: [
|
||||
Container(
|
||||
decoration: BoxDecoration(
|
||||
gradient: SiroUi.brandGradient(context))),
|
||||
gradient: TripzUi.brandGradient(context))),
|
||||
PositionedDirectional(
|
||||
end: -30,
|
||||
top: -10,
|
||||
@@ -81,20 +81,20 @@ class ChallengesPage extends StatelessWidget {
|
||||
|
||||
Widget _sectionHeader(
|
||||
BuildContext context, String title, int done, int total) {
|
||||
return SiroSectionTitle(
|
||||
return TripzSectionTitle(
|
||||
title,
|
||||
trailing: SiroTag('$done/$total', color: SiroUi.interactive(context)),
|
||||
trailing: TripzTag('$done/$total', color: TripzUi.interactive(context)),
|
||||
);
|
||||
}
|
||||
|
||||
Widget _challengeCard(
|
||||
BuildContext context, Challenge c, ChallengesController cc) {
|
||||
final isAr = Get.locale?.languageCode == 'ar';
|
||||
return SiroCard(
|
||||
return TripzCard(
|
||||
accent: c.isCompleted ? c.color : null,
|
||||
child: Column(crossAxisAlignment: CrossAxisAlignment.start, children: [
|
||||
Row(children: [
|
||||
SiroIconBadge(c.icon, color: c.color, size: 22),
|
||||
TripzIconBadge(c.icon, color: c.color, size: 22),
|
||||
const SizedBox(width: 12),
|
||||
Expanded(
|
||||
child: Column(
|
||||
@@ -112,7 +112,7 @@ class ChallengesPage extends StatelessWidget {
|
||||
?.copyWith(fontSize: 11)),
|
||||
])),
|
||||
const SizedBox(width: 8),
|
||||
SiroTag('+${c.reward}',
|
||||
TripzTag('+${c.reward}',
|
||||
color: AppColor.yellowColor, icon: Icons.star_rounded),
|
||||
]),
|
||||
const SizedBox(height: 14),
|
||||
@@ -132,7 +132,7 @@ class ChallengesPage extends StatelessWidget {
|
||||
Container(
|
||||
height: 8,
|
||||
decoration: BoxDecoration(
|
||||
color: SiroUi.border(context),
|
||||
color: TripzUi.border(context),
|
||||
borderRadius: BorderRadius.circular(4))),
|
||||
LayoutBuilder(
|
||||
builder: (ctx, cons) => AnimatedContainer(
|
||||
|
||||
Reference in New Issue
Block a user