Shared Preferences Update

This commit is contained in:
Nilanjan Chakrabarti
2025-07-31 16:14:29 +05:30
parent 618bd4a9b9
commit 2fdef7c850
4 changed files with 310 additions and 5 deletions

View File

@@ -17,6 +17,7 @@ import 'features/dashboard/screens/dashboard_screen.dart';
import 'features/auth/screens/mpin_screen.dart';
import 'package:local_auth/local_auth.dart';
import 'package:shared_preferences/shared_preferences.dart';
//import 'package:flutter_neumorphic/flutter_neumorphic.dart';
class KMobile extends StatefulWidget {
const KMobile({super.key});

View File

@@ -7,6 +7,7 @@ import 'package:kmobile/di/injection.dart';
import 'package:material_symbols_icons/material_symbols_icons.dart';
import '../../../l10n/app_localizations.dart';
import '../../fund_transfer/screens/transaction_pin_screen.dart';
//import 'package:flutter_neumorphic/flutter_neumorphic.dart';
class QuickPayWithinBankScreen extends StatefulWidget {
final String debitAccount;
@@ -375,6 +376,54 @@ class _QuickPayWithinBankScreen extends State<QuickPayWithinBankScreen> {
},
),
),
/*Align(
alignment: Alignment.center,
child: NeumorphicButton(
onPressed: () {
if (_formKey.currentState!.validate()) {
if (!_isBeneficiaryValidated) {
setState(() {
_validationError =
'Please validate beneficiary before proceeding.';
});
return;
}
// Perform payment logic
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => TransactionPinScreen(
transactionData: Transfer(
fromAccount: widget.debitAccount,
toAccount: accountNumberController.text,
toAccountType: _selectedAccountType!,
amount: amountController.text,
),
),
),
);
}
},
style: NeumorphicStyle(
color: Theme.of(context).primaryColor,
depth: 4,
intensity: 0.8,
boxShape: NeumorphicBoxShape.roundRect(BorderRadius.circular(30)),
),
padding: const EdgeInsets.symmetric(horizontal: 24, vertical: 16),
child: Center(
child: Text(
AppLocalizations.of(context).swipeToPay,
style: const TextStyle(
fontSize: 16,
color: Colors.white,
fontWeight: FontWeight.bold,
),
),
),
),
),*/
// SliderButton(
// action: () async {
// ///Do something here OnSlide