ui fixing

This commit is contained in:
jayesh
2024-06-18 18:42:12 +05:30
19 changed files with 55 additions and 47 deletions

View File

@@ -11,10 +11,11 @@ class AcademyLayout extends StatelessWidget {
return Scaffold(
backgroundColor: AppColor.plainWhite,
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

@@ -83,7 +83,7 @@ class AvailableItemsScreen extends StatelessWidget {
vertical: 18,
),
child: kycCard())
: InkWell(
: GestureDetector(
onTap: () {
goRouter.pushNamed(RouteName.investDetailScreen,
pathParameters: {"type": "available"});
@@ -143,7 +143,7 @@ class ClosedItemsScreen extends StatelessWidget {
vertical: 18,
),
child: kycCard())
: InkWell(
: GestureDetector(
onTap: () {
goRouter.pushNamed(RouteName.investDetailScreen,
pathParameters: {"type": "closed"});

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

@@ -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

@@ -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

@@ -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

@@ -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 '../../../../core/styles/app_color.dart';

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) {

View File

@@ -65,7 +65,7 @@ class AppBarWidget extends StatelessWidget implements PreferredSizeWidget {
),
actions: [
if (customActionWidget != null)
InkWell(
GestureDetector(
onTap: onCustomActionPressed,
child: Padding(
padding: EdgeInsets.only(right: 14.w),

View File

@@ -23,7 +23,7 @@ class ButtonWidget {
Color? borderClr,
required VoidCallback function,
}) {
return InkWell(
return GestureDetector(
onTap: function,
child: Container(
margin: const EdgeInsets.symmetric(

View File

@@ -64,7 +64,7 @@ exitAppDialog(
Row(
mainAxisAlignment: MainAxisAlignment.spaceAround,
children: [
InkWell(
GestureDetector(
onTap: () {
goRouter.pop();
},
@@ -87,7 +87,7 @@ exitAppDialog(
),
),
Gap(15.w),
InkWell(
GestureDetector(
onTap: () {
SystemNavigator.pop();
Navigator.pop(context);

View File

@@ -61,7 +61,7 @@ buildprofilelogoutdialog(context) {
Row(
mainAxisAlignment: MainAxisAlignment.spaceAround,
children: [
InkWell(
GestureDetector(
onTap: () {
goRouter.pop();
},
@@ -83,7 +83,7 @@ buildprofilelogoutdialog(context) {
),
),
Gap(28.w),
InkWell(
GestureDetector(
onTap: () async {
context.read<BottomNavigationBloc>().add(TabChanged(1));
await secureStorageService.write('isLoginedIn', "false");

View File

@@ -50,7 +50,7 @@ class NoInternet extends StatelessWidget {
const SizedBox(
height: 30.0,
),
InkWell(
GestureDetector(
onTap: () async {
final connectivityResult =
await (Connectivity().checkConnectivity());