-
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.
chore: add flag on phone input and handle select countries screen ope…
…ning
- Loading branch information
1 parent
307ae74
commit 8f35259
Showing
2 changed files
with
44 additions
and
3 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
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,35 @@ | ||
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/features/auth/views/pages/select_country/countries.dart'; | ||
import 'package:ice/generated/assets.gen.dart'; | ||
|
||
class CountryCodeInput extends StatelessWidget { | ||
const CountryCodeInput({super.key, required this.country, this.onTap}); | ||
|
||
final Country country; | ||
final VoidCallback? onTap; | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return GestureDetector( | ||
onTap: onTap, | ||
child: Row( | ||
mainAxisSize: MainAxisSize.min, | ||
children: <Widget>[ | ||
Text( | ||
country.flag, | ||
style: const TextStyle(fontSize: 30), | ||
), | ||
const SizedBox(width: 8), | ||
Image.asset( | ||
Assets.images.loginDropdown.path, | ||
color: context.theme.appColors.secondaryText, | ||
width: 15, | ||
height: 15, | ||
), | ||
], | ||
), | ||
); | ||
} | ||
} |