-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update no activity screen (#1644)
- Loading branch information
Showing
6 changed files
with
48 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63 changes: 35 additions & 28 deletions
63
packages/espressocash_app/lib/features/activities/widgets/no_activity.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,48 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:flutter_screenutil/flutter_screenutil.dart'; | ||
|
||
import '../../../../gen/assets.gen.dart'; | ||
import '../../../../l10n/l10n.dart'; | ||
import '../../../../ui/button.dart'; | ||
import '../../../../ui/navigation_bar/navigation_bar.dart'; | ||
import '../../../ui/colors.dart'; | ||
|
||
class NoActivity extends StatelessWidget { | ||
const NoActivity({super.key, required this.onSendMoneyPressed}); | ||
|
||
final VoidCallback onSendMoneyPressed; | ||
const NoActivity({super.key}); | ||
|
||
@override | ||
Widget build(BuildContext context) => Padding( | ||
padding: const EdgeInsets.symmetric(horizontal: 44), | ||
child: Column( | ||
mainAxisSize: MainAxisSize.min, | ||
children: [ | ||
const Spacer(), | ||
Assets.images.logoIcon.image(height: 101), | ||
const SizedBox(height: 21), | ||
Text( | ||
context.l10n.noActivity, | ||
style: Theme.of(context).textTheme.bodyMedium?.copyWith( | ||
color: CpColors.secondaryTextColor, | ||
), | ||
Widget build(BuildContext context) => Column( | ||
children: [ | ||
SizedBox(height: 60.h), | ||
Assets.icons.money.svg(height: 78.h), | ||
SizedBox(height: 30.h), | ||
Padding( | ||
padding: const EdgeInsets.symmetric(horizontal: 44), | ||
child: Text( | ||
context.l10n.noActivityTitle.toUpperCase(), | ||
textAlign: TextAlign.center, | ||
style: TextStyle( | ||
fontStyle: FontStyle.normal, | ||
fontSize: 32.sp, | ||
fontWeight: FontWeight.w900, | ||
letterSpacing: 0.25, | ||
height: 1, | ||
), | ||
), | ||
const Spacer(), | ||
CpButton( | ||
text: context.l10n.requestOrSendPayment, | ||
width: double.infinity, | ||
size: CpButtonSize.big, | ||
onPressed: onSendMoneyPressed, | ||
), | ||
SizedBox(height: 12.h), | ||
Padding( | ||
padding: const EdgeInsets.symmetric(horizontal: 44), | ||
child: Text( | ||
context.l10n.noActivityDescription, | ||
textAlign: TextAlign.center, | ||
style: TextStyle( | ||
fontSize: 16.sp, | ||
fontWeight: FontWeight.w400, | ||
letterSpacing: 0.19, | ||
height: 1.3, | ||
), | ||
), | ||
const Spacer(), | ||
const SizedBox(height: cpNavigationBarheight), | ||
], | ||
), | ||
), | ||
const SizedBox(height: cpNavigationBarheight), | ||
], | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters