Merge pull request #32 from WDI-Ideas/meet

wallet with kyc done
This commit is contained in:
meet2711
2024-06-11 16:39:01 +05:30
committed by GitHub
22 changed files with 197 additions and 21 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

View File

@@ -6,7 +6,7 @@ class AppImages {
"assets/images/welcome_screen/svg/Tanami_Capital_Splash_Logo.svg";
//Welcome
static const String weclomeLogo =
static const String welcomeLogo =
"assets/images/welcome_screen/svg/Tanami_Capital_Logo.svg";
static const String firstWelcome =
"assets/images/welcome_screen/png/First_Onboarding.png";

View File

@@ -155,6 +155,8 @@ class AppText {
static const String info2 = 'Payment can include transfer fee from your bank';
static const String next = 'Next';
static const String submit = 'Submit request';
static const String cont = 'Continue';
static const String later = 'Later';
//Settings
static const String settingsText = "Settings";

View File

@@ -0,0 +1,172 @@
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:flutter_svg/flutter_svg.dart';
import 'package:google_fonts/google_fonts.dart';
import 'package:tanami_app/core/styles/app_images.dart';
import 'package:tanami_app/core/styles/app_text.dart';
import 'package:tanami_app/shared/components/text_widget.dart';
class KYCScreen extends StatefulWidget {
const KYCScreen({super.key});
@override
State<KYCScreen> createState() => _KYCScreenState();
}
class _KYCScreenState extends State<KYCScreen> {
List data = [
'Verify your identity',
'Take a selfie',
'Upload a proof of address',
'Confirm your risk profile and sign agreement',
];
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Colors.white,
appBar: AppBar(
automaticallyImplyLeading: false,
actions: [
IconButton(
onPressed: () {},
icon: const Icon(
Icons.close_sharp,
size: 30.0,
),
),
],
),
body: Center(
child: Column(
crossAxisAlignment: CrossAxisAlignment.center,
children: [
SvgPicture.asset(
AppImages.welcomeLogo,
),
SizedBox(
height: 24.h,
),
Text(
'Almost here...',
style: GoogleFonts.dmSans(
color: const Color(0xFF363636),
fontSize: 17.sp,
fontWeight: FontWeight.w700,
),
),
SizedBox(
height: 8.h,
),
SizedBox(
width: 280.w,
child: Text(
'Complete account profile in 3 minutes to start investing',
textAlign: TextAlign.center,
style: GoogleFonts.dmSans(
color: const Color(0xFF8D8D8D),
fontSize: 14.sp,
fontWeight: FontWeight.w700,
),
),
),
SizedBox(
height: 40.h,
),
Padding(
padding: const EdgeInsets.symmetric(horizontal: 50.0),
child: ListView.builder(
physics: const NeverScrollableScrollPhysics(),
shrinkWrap: true,
itemCount: data.length,
itemBuilder: (context, index) {
return Padding(
padding: const EdgeInsets.symmetric(vertical: 10.0),
child: Row(
children: [
Image.asset(
'assets/images/wallet_screen/${index + 1}.png',
height: 45.h,
),
SizedBox(
width: 12.w,
),
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
'Step ${index + 1}',
textAlign: TextAlign.center,
style: GoogleFonts.dmSans(
color: const Color(0xFF363636),
fontSize: 14.sp,
fontWeight: FontWeight.w700,
),
),
SizedBox(
width: 10.h,
),
SizedBox(
width: 230.w,
child: Text(
data[index],
style: GoogleFonts.dmSans(
color: const Color(0xFF363636),
fontSize: 14.sp,
fontWeight: FontWeight.w400,
),
),
),
],
)
],
),
);
},
),
),
SizedBox(
height: 70.h,
),
GestureDetector(
onTap: () {
// goRouter.pushNamed(RouteName.otpScreen, pathParameters: {
// "fromScreen": 'withdrawal',
// });
},
child: Container(
margin: const EdgeInsets.all(12.0),
height: 56.h,
width: double.infinity,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(22.r),
color: const Color(0xFF004717),
),
child: Padding(
padding: const EdgeInsets.symmetric(vertical: 20.0),
child: Center(
child: Text(
AppText.cont,
style: GoogleFonts.dmSans(
color: Colors.white,
fontSize: 14.sp,
fontWeight: FontWeight.w700,
),
),
),
),
),
),
SizedBox(
height: 10.h,
),
TextWidget().text14W700(
AppText.later,
clr: const Color(0xFF363636),
textDecoration: TextDecoration.underline,
)
],
),
),
);
}
}

View File

@@ -56,6 +56,13 @@ class _WalletScreenState extends State<WalletScreen> {
},
];
@override
void initState() {
// TODO: implement initState
// _savebottomsheet();
super.initState();
}
@override
Widget build(BuildContext context) {
return Scaffold(
@@ -106,7 +113,6 @@ class _WalletScreenState extends State<WalletScreen> {
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 20.0),
child: Container(
// height: 86.h,
decoration: BoxDecoration(
color: Colors.white.withOpacity(0.8),
borderRadius:

View File

@@ -4,6 +4,7 @@ import 'package:tanami_app/features/MainScreens/Academy/presentation/pages/acade
import 'package:tanami_app/features/MainScreens/Invest/presentation/pages/invest_screen.dart';
import 'package:tanami_app/features/MainScreens/Portfolio/presentation/pages/portfolio_screen.dart';
import 'package:tanami_app/features/MainScreens/Settings/presentation/pages/settings_Screen.dart';
import 'package:tanami_app/features/MainScreens/Wallet/presentation/pages/kyc.dart';
import 'package:tanami_app/features/MainScreens/Wallet/presentation/pages/walletScreen.dart';
import 'package:tanami_app/shared/components/common_bottom_navigation.dart';
@@ -12,7 +13,8 @@ import '../../shared/components/bloc/bottom_nav_bar/bottom_navigation_state.dart
import '../../shared/components/exit_app_dialog.dart';
var currentTab = [
const WalletScreen(),
// const WalletScreen(),
const KYCScreen(),
const PortfolioScreen(),
const InvestScreen(),
const AcademyScreen(),

View File

@@ -8,16 +8,10 @@ class ChangePasswordLayout extends StatelessWidget {
@override
Widget build(BuildContext context) {
<<<<<<< HEAD
return const Scaffold(
bottomNavigationBar: RestorePasswordBottomSection(),
body: RestorePasswordForm());
=======
return const Scaffold(
bottomNavigationBar: RestorePasswordBottomSection(),
body: RestorePasswordForm());
>>>>>>> 0521b4ab76ca7b88a179487326f69cededd70e0b
}
}

View File

@@ -13,7 +13,7 @@ Widget topSection() {
const Gap(85),
Center(
child: SvgPicture.asset(
AppImages.weclomeLogo,
AppImages.welcomeLogo,
),
),
const Gap(24),

View File

@@ -19,7 +19,7 @@ class TopSection extends StatelessWidget {
const Gap(85),
Center(
child: SvgPicture.asset(
AppImages.weclomeLogo,
AppImages.welcomeLogo,
),
),
const Gap(30),

View File

@@ -19,7 +19,7 @@ class RestorePasswordPhoneVerificationTopSection extends StatelessWidget {
const Gap(85),
Center(
child: SvgPicture.asset(
AppImages.weclomeLogo,
AppImages.welcomeLogo,
),
),
const Gap(60),

View File

@@ -19,7 +19,7 @@ class RestorePasswordTopSection extends StatelessWidget {
const Gap(85),
Center(
child: SvgPicture.asset(
AppImages.weclomeLogo,
AppImages.welcomeLogo,
),
),
const Gap(60),

View File

@@ -21,7 +21,7 @@ class TopSection extends StatelessWidget {
const Gap(85),
Center(
child: SvgPicture.asset(
AppImages.weclomeLogo,
AppImages.welcomeLogo,
),
),
const Gap(60),

View File

@@ -18,7 +18,7 @@ class OtpTopSection extends StatelessWidget {
const Gap(85),
Center(
child: SvgPicture.asset(
AppImages.weclomeLogo,
AppImages.welcomeLogo,
),
),
const Gap(125),

View File

@@ -17,7 +17,7 @@ class RegisterStepTopSection extends StatelessWidget {
const Gap(85),
Center(
child: SvgPicture.asset(
AppImages.weclomeLogo,
AppImages.welcomeLogo,
),
),
const Gap(30),

View File

@@ -17,7 +17,7 @@ class RegisterTopSection extends StatelessWidget {
const Gap(85),
Center(
child: SvgPicture.asset(
AppImages.weclomeLogo,
AppImages.welcomeLogo,
),
),
const Gap(60),

View File

@@ -17,7 +17,7 @@ class RegisterUserTopSection extends StatelessWidget {
const Gap(22),
Center(
child: SvgPicture.asset(
AppImages.weclomeLogo,
AppImages.welcomeLogo,
),
),
const Gap(25),

View File

@@ -17,7 +17,7 @@ class ConfirmPinTopSection extends StatelessWidget {
const Gap(85),
Center(
child: SvgPicture.asset(
AppImages.weclomeLogo,
AppImages.welcomeLogo,
),
),
const Gap(60),

View File

@@ -21,7 +21,7 @@ class PinTopSection extends StatelessWidget {
const Gap(70),
Center(
child: SvgPicture.asset(
AppImages.weclomeLogo,
AppImages.welcomeLogo,
),
),
const Gap(40),

View File

@@ -24,7 +24,7 @@ Widget buildOnboardingPage(
return Column(
children: [
const Gap(80),
SvgPicture.asset(AppImages.weclomeLogo),
SvgPicture.asset(AppImages.welcomeLogo),
Image.asset(
imageAsset,
width: 1.sw,