-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6846fab
commit 53d6d69
Showing
3 changed files
with
80 additions
and
5 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
73 changes: 73 additions & 0 deletions
73
lib/app/features/dapps/views/pages/widgets/favourites.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 |
---|---|---|
@@ -0,0 +1,73 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:ice/app/extensions/build_context.dart'; | ||
import 'package:ice/app/extensions/theme_data.dart'; | ||
import 'package:ice/app/shared/widgets/favourite_icon/favorite_icon.dart'; | ||
import 'package:ice/app/values/constants.dart'; | ||
import 'package:ice/generated/assets.gen.dart'; | ||
|
||
const double containerHeight = 60.0; | ||
|
||
class Favourites extends StatelessWidget { | ||
const Favourites({super.key}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Padding( | ||
padding: const EdgeInsets.symmetric( | ||
horizontal: kDefaultSidePadding, | ||
vertical: 24, | ||
), | ||
child: GestureDetector( | ||
onTap: () {}, | ||
child: Container( | ||
height: containerHeight, | ||
width: double.infinity, | ||
padding: const EdgeInsets.symmetric(horizontal: kDefaultSidePadding), | ||
decoration: BoxDecoration( | ||
borderRadius: BorderRadius.circular(16), | ||
color: context.theme.appColors.tertararyBackground, | ||
border: Border.all( | ||
color: context.theme.appColors.onTerararyFill, | ||
), | ||
), | ||
child: Row( | ||
mainAxisAlignment: MainAxisAlignment.spaceBetween, | ||
children: <Widget>[ | ||
Row( | ||
children: <Widget>[ | ||
const FavouriteIcon(), | ||
const SizedBox(width: 8), | ||
SizedBox( | ||
height: 36, | ||
child: Column( | ||
crossAxisAlignment: CrossAxisAlignment.start, | ||
mainAxisAlignment: MainAxisAlignment.center, | ||
children: <Widget>[ | ||
Text( | ||
'Favourites', | ||
style: context.theme.appTextThemes.body.copyWith( | ||
color: context.theme.appColors.primaryText, | ||
), | ||
), | ||
Text( | ||
'17 added dApps', | ||
style: context.theme.appTextThemes.caption3.copyWith( | ||
color: context.theme.appColors.secondaryText, | ||
), | ||
), | ||
], | ||
), | ||
), | ||
], | ||
), | ||
Image.asset( | ||
Assets.images.forwardArrow.path, | ||
width: 12, | ||
), | ||
], | ||
), | ||
), | ||
), | ||
); | ||
} | ||
} |
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