Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
WorkWithAfridi committed Jun 22, 2023
1 parent f2fe779 commit 6205ed1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 15 deletions.
6 changes: 3 additions & 3 deletions lib/app/screens/edit_net_balance_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import 'package:pinext/app/shared/widgets/info_widget.dart';

class EditNetBalanceScreen extends StatelessWidget {
EditNetBalanceScreen({
super.key,
required this.netBalance,
super.key,
});

String netBalance;
Expand All @@ -35,8 +35,8 @@ class EditNetBalanceScreen extends StatelessWidget {

class EditNetBalanceView extends StatelessWidget {
EditNetBalanceView({
super.key,
required this.netBalance,
super.key,
});

String netBalance;
Expand Down Expand Up @@ -106,7 +106,7 @@ class EditNetBalanceView extends StatelessWidget {
final regionState = context.watch<RegionCubit>().state;
return Text(
demoBlocState is DemoEnabledState ? '750000 ${regionState.countryData.symbol}' : '$netBalance ${regionState.countryData.symbol}',
style: boldTextStyle.copyWith(
style: regularTextStyle.copyWith(
fontSize: 25,
),
);
Expand Down
10 changes: 4 additions & 6 deletions lib/app/screens/home/widgets/homepage_get_balance_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,7 @@ class HomepageGetBalanceWidget extends StatelessWidget {
children: [
AnimatedCounterTextWidget(
begin: 0,
end: demoBlocState is DemoEnabledState
? double.parse('750000 ${regionState.countryData.symbol}')
: double.parse(state.netBalance),
end: demoBlocState is DemoEnabledState ? double.parse('750000') : double.parse(state.netBalance),
maxLines: 1,
precision: 2,
style: boldTextStyle.copyWith(
Expand All @@ -96,9 +94,9 @@ class HomepageGetBalanceWidget extends StatelessWidget {
curve: Curves.fastOutSlowIn,
),
Text(
regionState.countryData.symbol,
style: boldTextStyle.copyWith(
fontSize: 30,
' ${regionState.countryData.symbol}',
style: regularTextStyle.copyWith(
fontSize: 25,
color: whiteColor,
),
),
Expand Down
11 changes: 5 additions & 6 deletions lib/app/shared/widgets/pinext_goal_minimized.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ import 'package:pinext/app/screens/goals_and_milestones/add_and_edit_goal_and_mi

class PinextGoalCardMinimized extends StatelessWidget {
PinextGoalCardMinimized({
super.key,
required this.pinextGoalModel,
required this.index,
required this.showCompletePercentage,
super.key,
});

late PinextGoalModel pinextGoalModel;
Expand Down Expand Up @@ -97,8 +97,8 @@ class PinextGoalCardMinimized extends StatelessWidget {
);
}
},
child: Row(
children: const [
child: const Row(
children: [
SizedBox(
width: 8,
),
Expand Down Expand Up @@ -145,15 +145,14 @@ class PinextGoalCardMinimized extends StatelessWidget {
),
),
TextSpan(
text: demoBlocState is DemoEnabledState ? '25000 ${regionState.countryData.symbol}' : pinextGoalModel.amount,
text: demoBlocState is DemoEnabledState ? '25000' : pinextGoalModel.amount,
style: boldTextStyle.copyWith(
decoration: completionAmount > 100 ? TextDecoration.lineThrough : TextDecoration.none,
),
),
TextSpan(
text: ' ${regionState.countryData.symbol} for ',
style: regularTextStyle.copyWith(
color: customBlackColor.withOpacity(.6),
style: boldTextStyle.copyWith(
decoration: completionAmount > 100 ? TextDecoration.lineThrough : TextDecoration.none,
),
),
Expand Down

0 comments on commit 6205ed1

Please sign in to comment.