-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
search animation hero flight animation handled
- Loading branch information
Showing
5 changed files
with
225 additions
and
213 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
76 changes: 76 additions & 0 deletions
76
lib/presentation/screens/search/widgets/search_widget.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,76 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:moniepoint_task/helper/Helper.dart'; | ||
import 'package:moniepoint_task/main.dart'; | ||
|
||
class SearchWidget extends StatelessWidget { | ||
final Map data; | ||
const SearchWidget({Key? key, required this.data}) : super(key: key); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Container( | ||
padding: const EdgeInsets.symmetric( | ||
horizontal: 12.0, | ||
vertical: 10.0, | ||
), | ||
child: Column( | ||
mainAxisSize: MainAxisSize.min, | ||
children: [ | ||
Row( | ||
children: [ | ||
Container( | ||
padding: const EdgeInsets.all(8.0), | ||
decoration: BoxDecoration( | ||
color: context.primaryColor(), | ||
shape: BoxShape.circle, | ||
), | ||
child: const Icon( | ||
Icons.card_giftcard_outlined, | ||
color: Colors.white, | ||
size: 18.0, | ||
), | ||
), | ||
const SizedBox( | ||
width: 10.0, | ||
), | ||
Column( | ||
mainAxisSize: MainAxisSize.min, | ||
mainAxisAlignment: MainAxisAlignment.start, | ||
crossAxisAlignment: CrossAxisAlignment.start, | ||
children: [ | ||
Text( | ||
data['shipment_name'], | ||
style: context.customStyle( | ||
color: Colors.black, | ||
size: 14.0, | ||
fontWeight: FontWeight.bold, | ||
), | ||
), | ||
const SizedBox( | ||
height: 2.0, | ||
), | ||
Text( | ||
'${data['shipment_id']} · ${data['from']} -> ${data['to']}', | ||
style: context.customStyle( | ||
color: Colors.grey, | ||
size: 14.0, | ||
fontWeight: FontWeight.normal, | ||
), | ||
), | ||
], | ||
), | ||
], | ||
), | ||
const SizedBox( | ||
height: 8.0, | ||
), | ||
Helper.divider( | ||
right: 0.0, | ||
left: 0.0, | ||
color: context.dividerColor(), | ||
), | ||
], | ||
), | ||
); | ||
} | ||
} |
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
Oops, something went wrong.