gest added

This commit is contained in:
meet2711
2024-06-18 14:58:53 +05:30
parent e68c0edcfb
commit 5c209a23f3
29 changed files with 110 additions and 91 deletions

View File

@@ -10,6 +10,7 @@ class AcademyDetailsLayout extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Colors.white,
body: SingleChildScrollView(
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 16.0, vertical: 20.0),

View File

@@ -7,11 +7,13 @@ class AcademyLayout extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Colors.white,
body: ListView.builder(
itemCount: data.length,
itemBuilder: (context, index) {
return academyCard(data[index]);
}),
itemCount: data.length,
itemBuilder: (context, index) {
return academyCard(data[index]);
},
),
);
}
}

View File

@@ -82,7 +82,7 @@ class AvailableItemsScreen extends StatelessWidget {
vertical: 18,
),
child: kycCard())
: InkWell(
: GestureDetector(
onTap: () {
goRouter.pushNamed(RouteName.investDetailScreen);
},
@@ -141,7 +141,7 @@ class ClosedItemsScreen extends StatelessWidget {
vertical: 18,
),
child: kycCard())
: InkWell(
: GestureDetector(
onTap: () {
goRouter.pushNamed(RouteName.investDetailScreen);
},

View File

@@ -9,6 +9,7 @@ class ConfirmInvestmentLayout extends StatelessWidget {
@override
Widget build(BuildContext context) {
return const Scaffold(
backgroundColor: Colors.white,
bottomNavigationBar: ConfirmInvestBottomSection(),
body: Padding(
padding: EdgeInsets.all(16.0),

View File

@@ -33,7 +33,7 @@ class InvestPayMethodSection extends StatelessWidget {
TextWidget().text15W700(AppText.choosePaymentMethodText,
clr: AppColor.plainBlack),
const Gap(16),
InkWell(
GestureDetector(
onTap: () {
radioBloc.add(const RadioSelected(0));
},
@@ -146,7 +146,7 @@ class InvestPayMethodSection extends StatelessWidget {
),
),
const Gap(12),
InkWell(
GestureDetector(
onTap: () {
radioBloc.add(const RadioSelected(1));
},

View File

@@ -16,6 +16,7 @@ class PortfolioLayout extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Colors.white,
body: CustomScrollView(
slivers: [
SliverAppBar(

View File

@@ -9,6 +9,8 @@ class PortfolioScreen extends StatelessWidget {
@override
Widget build(BuildContext context) {
return const Scaffold(
backgroundColor: AppColor.plainWhite, body: PortfolioLayout());
backgroundColor: AppColor.plainWhite,
body: PortfolioLayout(),
);
}
}

View File

@@ -13,6 +13,7 @@ class SettingsLayout extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Colors.white,
body: Padding(
padding: const EdgeInsets.symmetric(
horizontal: 16,

View File

@@ -291,7 +291,7 @@ class _DepositScreenState extends State<DepositScreen> {
TextWidget().text15W700(AppText.choosePaymentMethodText,
clr: AppColor.plainBlack),
const Gap(16),
InkWell(
GestureDetector(
onTap: () {
radioBloc.add(const RadioSelected(0));
},
@@ -350,7 +350,7 @@ class _DepositScreenState extends State<DepositScreen> {
),
),
const Gap(12),
InkWell(
GestureDetector(
onTap: () {
radioBloc.add(const RadioSelected(1));
},

View File

@@ -18,6 +18,7 @@ class BiometricLayout extends StatelessWidget {
biometricImage = AppImages.biometricFingerprint;
}
return Scaffold(
backgroundColor: Colors.white,
body: SizedBox(
width: 1.sw,
height: 1.sh,

View File

@@ -8,10 +8,10 @@ class ChangePasswordLayout extends StatelessWidget {
@override
Widget build(BuildContext context) {
return const Scaffold(
bottomNavigationBar: RestorePasswordBottomSection(),
body: RestorePasswordForm());
backgroundColor: Colors.white,
bottomNavigationBar: RestorePasswordBottomSection(),
body: RestorePasswordForm(),
);
}
}

View File

@@ -13,7 +13,7 @@ class ChooseCountryLayout extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
return Scaffold(backgroundColor: Colors.white,
bottomNavigationBar: Container(
margin: const EdgeInsets.symmetric(
horizontal: 16,

View File

@@ -21,11 +21,11 @@ class _AccountappState extends State<FAQScreen> {
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: AppColor.plainWhite,
appBar: const AppBarWidget(
height: 75,
titleTxt: AppText.faqText,
),
backgroundColor: AppColor.plainWhite,
body: SafeArea(
child: SingleChildScrollView(
child: Column(

View File

@@ -11,13 +11,15 @@ class RestorePasswordLayout extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
body: ListView(
children: const [
RestorePasswordTopSection(),
RestorePasswordForm(),
Gap(150),
RestorePasswordBottomSection(),
],
));
backgroundColor: Colors.white,
body: ListView(
children: const [
RestorePasswordTopSection(),
RestorePasswordForm(),
Gap(150),
RestorePasswordBottomSection(),
],
),
);
}
}

View File

@@ -11,13 +11,15 @@ class RestorePasswordPhoneVerificationLayout extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
body: ListView(
children: const [
RestorePasswordPhoneVerificationTopSection(),
RestorePasswordPhoneVerificationForm(),
Gap(150),
RestorePasswordPhoneVerificationBottomSection(),
],
));
backgroundColor: Colors.white,
body: ListView(
children: const [
RestorePasswordPhoneVerificationTopSection(),
RestorePasswordPhoneVerificationForm(),
Gap(150),
RestorePasswordPhoneVerificationBottomSection(),
],
),
);
}
}

View File

@@ -15,6 +15,7 @@ class LanguageChangeLayout extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Colors.white,
bottomNavigationBar: bottomSection(),
appBar: const AppBarWidget(
height: 75,

View File

@@ -1,4 +1,5 @@
import 'package:flutter/material.dart';
import 'package:tanami_app/core/styles/app_color.dart';
import 'package:tanami_app/features/login/presentation/widgets/login_form.dart';
import '../widgets/bottom_section.dart';
@@ -14,17 +15,18 @@ class LoginLayout extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: AppColor.plainWhite,
body: ListView(
//
children: [
TopSection(
fromScreen: fromScreen,
),
const LoginForm(),
BottomSection(
fromScreen: fromScreen,
),
],
));
//
children: [
TopSection(
fromScreen: fromScreen,
),
const LoginForm(),
BottomSection(
fromScreen: fromScreen,
),
],
));
}
}

View File

@@ -106,23 +106,23 @@ class BottomSection extends StatelessWidget {
);
},
),
const Gap(5),
ButtonWidget().textBtn(
function: () {
radioBloc.resetSelection();
fromScreen == "forgot-pin"
? goRouter.pop()
: goRouter
.pushNamed(RouteName.registerStepScreen, pathParameters: {
"fromScreentype": "login",
});
},
text: TextWidget().text14W700(
fromScreen == "forgot-pin"
? AppText.backText
: AppText.signUpText,
clr: AppColor.textLabelColor,
textDecoration: TextDecoration.underline)),
const Gap(10),
ButtonWidget().textBorderBtn(
function: () {
radioBloc.resetSelection();
fromScreen == "forgot-pin"
? goRouter.pop()
: goRouter
.pushNamed(RouteName.registerStepScreen, pathParameters: {
"fromScreentype": "login",
});
},
clr: AppColor.plainWhite,
borderClr: AppColor.txtBorderColor,
text: fromScreen == "forgot-pin"
? AppText.backText
: AppText.signUpText,
),
],
);
}

View File

@@ -24,7 +24,7 @@ class ResendOtpSection extends StatelessWidget {
state.formattedDuration,
clr: AppColor.plainBlack,
),
InkWell(
GestureDetector(
onTap: () {
successToastMessage(context, "OTP Resend Sucessfully !");
},

View File

@@ -10,14 +10,15 @@ class RegisterLayout extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: AppColor.plainWhite,
body: ListView(
//
children: const [
RegisterTopSection(),
RegisterForm(),
RegisterBottomSection(),
],
));
backgroundColor: AppColor.plainWhite,
body: ListView(
//
children: const [
RegisterTopSection(),
RegisterForm(),
RegisterBottomSection(),
],
),
);
}
}

View File

@@ -72,7 +72,7 @@ class PinKey extends StatelessWidget {
? const Gap(20)
: const Gap(0),
(fromScreen == "login")
? InkWell(
? GestureDetector(
onTap: () {
forgotPinDialog(context);
},

View File

@@ -11,6 +11,7 @@ class SplashLayout extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Colors.white,
body: SizedBox(
width: 1.sw,
height: 1.sh,

View File

@@ -13,6 +13,7 @@ class WelcomeLayout extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Colors.white,
body: BlocListener<OnboardingBloc, OnboardingState>(
// Define the listener for the BlocListener
listener: (context, state) {