Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sai Srinivas
GEN_ERP_2025
Commits
d24e453e
Commit
d24e453e
authored
Jun 19, 2025
by
Sai Srinivas
Browse files
19-06-2025 By Sai Srinivas
Finance Module Test cases & Safe Area
parent
4807bee4
Changes
52
Show whitespace changes
Inline
Side-by-side
lib/Notifiers/financeProvider/RequesitionLidtDetailsProvider.dart
View file @
d24e453e
...
@@ -186,64 +186,82 @@ class Requesitionlidtdetailsprovider extends ChangeNotifier {
...
@@ -186,64 +186,82 @@ class Requesitionlidtdetailsprovider extends ChangeNotifier {
_paymentDetails
=
_paymentDetails
=
data
.
paymentDetails
??
data
.
paymentDetails
??
PaymentDetails
(
PaymentDetails
(
accountId:
""
,
accountId:
"
-
"
,
accountName:
""
,
accountName:
"
-
"
,
amount:
""
,
amount:
"
-
"
,
attachmentDirFilePath:
""
,
attachmentDirFilePath:
"
-
"
,
attachmentViewFileName:
""
,
attachmentViewFileName:
"
-
"
,
bankAccountHolderName:
""
,
bankAccountHolderName:
"
-
"
,
bankAccountNumber:
""
,
bankAccountNumber:
"
-
"
,
bankBranchName:
""
,
bankBranchName:
"
-
"
,
bankIfscCode:
""
,
bankIfscCode:
"
-
"
,
bankName:
""
,
bankName:
"
-
"
,
bankUpiId:
""
,
bankUpiId:
"
-
"
,
createdDatetime:
""
,
createdDatetime:
"
-
"
,
createdEmployeeId:
""
,
createdEmployeeId:
"
-
"
,
description:
""
,
description:
"
-
"
,
id:
""
,
id:
"
-
"
,
isExists:
""
,
isExists:
"
-
"
,
mode:
""
,
mode:
"
-
"
,
paymentAccountId:
""
,
paymentAccountId:
"
-
"
,
paymentAccountName:
""
,
paymentAccountName:
"
-
"
,
paymentDate:
""
,
paymentDate:
"
-
"
,
paymentEmployeeName:
""
,
paymentEmployeeName:
"
-
"
,
paymentModeId:
""
,
paymentModeId:
"
-
"
,
paymentReferenceNumber:
""
,
paymentReferenceNumber:
"
-
"
,
paymentRemarks:
""
,
paymentRemarks:
"
-
"
,
refId:
""
,
refId:
"
-
"
,
refType:
""
,
refType:
"
-
"
,
updatedDatetime:
""
,
updatedDatetime:
"
-
"
,
);
);
_requestDetails
=
_requestDetails
=
data
.
requestDetails
??
data
.
requestDetails
??
RequestDetails
(
RequestDetails
(
updatedDatetime:
""
,
updatedDatetime:
"
-
"
,
id:
""
,
id:
"
-
"
,
description:
""
,
description:
"
-
"
,
createdDatetime:
""
,
createdDatetime:
"
-
"
,
attachmentViewFileName:
""
,
attachmentViewFileName:
"
-
"
,
attachmentDirFilePath:
""
,
attachmentDirFilePath:
"
-
"
,
amount:
""
,
amount:
"
-
"
,
accountName:
""
,
accountName:
"
-
"
,
accountId:
""
,
accountId:
"
-
"
,
branch:
""
,
branch:
"
-
"
,
createdEmployee:
""
,
createdEmployee:
"
-
"
,
date:
""
,
date:
"
-
"
,
isProcessedPaymentRequest:
""
,
isProcessedPaymentRequest:
"
-
"
,
level1ApprovalRemarks:
""
,
level1ApprovalRemarks:
"
-
"
,
level1Employee:
""
,
level1Employee:
"
-
"
,
level2ApprovalRemarks:
""
,
level2ApprovalRemarks:
"
-
"
,
level2Employee:
""
,
level2Employee:
"
-
"
,
proposedAccount:
""
,
proposedAccount:
"
-
"
,
proposedAccountId:
""
,
proposedAccountId:
"
-
"
,
requestedAmount:
""
,
requestedAmount:
"
-
"
,
requestingPurpose:
""
,
requestingPurpose:
"
-
"
,
requestMode:
""
,
requestMode:
"
-
"
,
status:
""
,
status:
"
-
"
,
transDis:
""
,
transDis:
"
-
"
,
);
);
_subHeadings
=
[
_requestDetails
.
accountName
??
"-"
,
_requestDetails
.
proposedAccount
??
"-"
,
_requestDetails
.
branch
??
"-"
,
_requestDetails
.
requestingPurpose
??
"-"
,
_requestDetails
.
requestMode
??
"-"
,
_requestDetails
.
createdEmployee
??
"-"
,
_requestDetails
.
attachmentViewFileName
??
"-"
,
_requestDetails
.
date
??
"-"
,
_requestDetails
.
description
??
"-"
,
_requestDetails
.
level1ApprovalRemarks
??
"-"
,
_requestDetails
.
level1Employee
??
"-"
,
_requestDetails
.
level2ApprovalRemarks
??
"-"
,
_requestDetails
.
level2Employee
??
"-"
,
_requestDetails
.
createdDatetime
??
"-"
,
_requestDetails
.
updatedDatetime
??
"-"
,
];
print
(
"here 2121"
);
print
(
"here 2121"
);
preValues
();
preValues
();
notifyListeners
();
notifyListeners
();
...
...
lib/Notifiers/financeProvider/RequestionListProvider.dart
View file @
d24e453e
...
@@ -359,17 +359,8 @@ class Requestionlistprovider extends ChangeNotifier {
...
@@ -359,17 +359,8 @@ class Requestionlistprovider extends ChangeNotifier {
_paymentModes
=
data
.
paymentModes
!;
_paymentModes
=
data
.
paymentModes
!;
_requestingPurposes
=
data
.
requestingPurposes
!;
_requestingPurposes
=
data
.
requestingPurposes
!;
if
(
_selectedAccounts
!=
null
&&
checkDropdownselected
();
!
_accounts
.
contains
(
_selectedAccounts
))
{
notifyListeners
();
_selectedAccounts
=
null
;
_accountId
=
""
;
}
if
(
_selectedPayment
!=
null
&&
!
_paymentModes
.
contains
(
_selectedPayment
))
{
_selectedPayment
=
null
;
_paymentModeId
=
""
;
}
}
else
{}
}
else
{}
}
}
}
catch
(
e
,
s
)
{}
}
catch
(
e
,
s
)
{}
...
@@ -434,26 +425,8 @@ class Requestionlistprovider extends ChangeNotifier {
...
@@ -434,26 +425,8 @@ class Requestionlistprovider extends ChangeNotifier {
_directPaymentAccounts
=
data
.
paymentAccounts
!;
_directPaymentAccounts
=
data
.
paymentAccounts
!;
_directPaymentModes
=
data
.
paymentModes
!;
_directPaymentModes
=
data
.
paymentModes
!;
_directAccounts
=
data
.
accounts
!;
_directAccounts
=
data
.
accounts
!;
checkdirectPaymentDropDownsSlected
();
if
(
_selectedDirectAccounts
!=
null
&&
!
_directAccounts
.
contains
(
_selectedDirectAccounts
))
{
_selectedDirectAccounts
=
null
;
_directAccountID
=
""
;
_directAccountValue
=
""
;
}
if
(
_selectDirectPaymentModes
!=
null
&&
!
_directPaymentModes
.
contains
(
_selectDirectPaymentModes
))
{
_selectDirectPaymentModes
=
null
;
_directPaymentModesID
=
""
;
_directPaymentModesValues
=
""
;
}
if
(
_selectDirectPaymentAccounts
!=
null
&&
!
_directPaymentAccounts
.
contains
(
_selectDirectPaymentAccounts
))
{
_selectDirectPaymentAccounts
=
null
;
_directPaymentAccountsID
=
""
;
_directPaymentAccountsValue
=
""
;
}
notifyListeners
();
notifyListeners
();
}
else
{}
}
else
{}
}
}
...
@@ -890,9 +863,48 @@ class Requestionlistprovider extends ChangeNotifier {
...
@@ -890,9 +863,48 @@ class Requestionlistprovider extends ChangeNotifier {
UPIError
=
null
;
UPIError
=
null
;
FileError
=
null
;
FileError
=
null
;
buttonEnabled
=
false
;
buttonEnabled
=
false
;
checkDropdownselected
();
checkdirectPaymentDropDownsSlected
();
notifyListeners
();
notifyListeners
();
}
}
void
checkdirectPaymentDropDownsSlected
(){
if
(
_selectedDirectAccounts
!=
null
&&
!
_directAccounts
.
contains
(
_selectedDirectAccounts
))
{
_selectedDirectAccounts
=
null
;
_directAccountID
=
""
;
_directAccountValue
=
""
;
}
if
(
_selectDirectPaymentModes
!=
null
&&
!
_directPaymentModes
.
contains
(
_selectDirectPaymentModes
))
{
_selectDirectPaymentModes
=
null
;
_directPaymentModesID
=
""
;
_directPaymentModesValues
=
""
;
}
if
(
_selectDirectPaymentAccounts
!=
null
&&
!
_directPaymentAccounts
.
contains
(
_selectDirectPaymentAccounts
))
{
_selectDirectPaymentAccounts
=
null
;
_directPaymentAccountsID
=
""
;
_directPaymentAccountsValue
=
""
;
}
}
void
checkDropdownselected
()
{
if
(
_selectedAccounts
!=
null
&&
!
_accounts
.
contains
(
_selectedAccounts
))
{
_selectedAccounts
=
null
;
_accountId
=
""
;
}
if
(
_selectedPayment
!=
null
&&
!
_paymentModes
.
contains
(
_selectedPayment
))
{
_selectedPayment
=
null
;
_paymentModeId
=
""
;
}
if
(
_selectReqPurpose
!=
null
&&
!
_requestingPurposes
.
contains
(
_selectReqPurpose
))
{
_selectReqPurpose
=
null
;
}
}
bool
validateForm
(
BuildContext
context
,
String
mode
)
{
bool
validateForm
(
BuildContext
context
,
String
mode
)
{
// Reset all errors
// Reset all errors
...
...
lib/Notifiers/financeProvider/paymentReceiptsProvider.dart
View file @
d24e453e
...
@@ -441,28 +441,8 @@ class Paymentreceiptsprovider extends ChangeNotifier {
...
@@ -441,28 +441,8 @@ class Paymentreceiptsprovider extends ChangeNotifier {
_receiptPaymentAccounts
=
data
.
receiptAccounts
!;
_receiptPaymentAccounts
=
data
.
receiptAccounts
!;
_receiptPaymentModes
=
data
.
paymentModes
!;
_receiptPaymentModes
=
data
.
paymentModes
!;
_receiptAccounts
=
data
.
accounts
!;
_receiptAccounts
=
data
.
accounts
!;
checkDropDownSelected
();
if
(
_selectedreceiptAccounts
!=
null
&&
!
_receiptAccounts
.
contains
(
_selectedreceiptAccounts
))
{
_selectedreceiptAccounts
=
null
;
_receiptAccountID
=
""
;
_receiptAccountValue
=
""
;
}
if
(
_selectreceiptPaymentModes
!=
null
&&
!
_receiptPaymentModes
.
contains
(
_selectreceiptPaymentModes
))
{
_selectreceiptPaymentModes
=
null
;
_receiptPaymentModesID
=
""
;
_receiptPaymentModesValues
=
""
;
}
if
(
_selectreceiptPaymentAccounts
!=
null
&&
!
_receiptPaymentAccounts
.
contains
(
_selectreceiptPaymentAccounts
,
))
{
_selectreceiptPaymentAccounts
=
null
;
_receiptPaymentAccountsID
=
""
;
_receiptPaymentAccountsValue
=
""
;
}
notifyListeners
();
notifyListeners
();
}
else
{}
}
else
{}
}
}
...
@@ -751,9 +731,32 @@ class Paymentreceiptsprovider extends ChangeNotifier {
...
@@ -751,9 +731,32 @@ class Paymentreceiptsprovider extends ChangeNotifier {
FileError
=
null
;
FileError
=
null
;
buttonEnabled
=
false
;
buttonEnabled
=
false
;
dateError
=
null
;
dateError
=
null
;
checkDropDownSelected
();
notifyListeners
();
notifyListeners
();
}
}
void
checkDropDownSelected
(){
if
(
_selectedreceiptAccounts
!=
null
&&
!
_receiptAccounts
.
contains
(
_selectedreceiptAccounts
))
{
_selectedreceiptAccounts
=
null
;
_receiptAccountID
=
""
;
_receiptAccountValue
=
""
;
}
if
(
_selectreceiptPaymentModes
!=
null
&&
!
_receiptPaymentModes
.
contains
(
_selectreceiptPaymentModes
))
{
_selectreceiptPaymentModes
=
null
;
_receiptPaymentModesID
=
""
;
_receiptPaymentModesValues
=
""
;
}
if
(
_selectreceiptPaymentAccounts
!=
null
&&
!
_receiptPaymentAccounts
.
contains
(
_selectreceiptPaymentAccounts
,
))
{
_selectreceiptPaymentAccounts
=
null
;
_receiptPaymentAccountsID
=
""
;
_receiptPaymentAccountsValue
=
""
;
}
}
bool
validatereceiptForm
(
BuildContext
context
)
{
bool
validatereceiptForm
(
BuildContext
context
)
{
selectAccountError
=
null
;
selectAccountError
=
null
;
...
...
lib/Notifiers/financeProvider/paymentRequisitionPaymentsListProvider.dart
View file @
d24e453e
...
@@ -58,7 +58,18 @@ class Paymentrequisitionpaymentslistprovider extends ChangeNotifier{
...
@@ -58,7 +58,18 @@ class Paymentrequisitionpaymentslistprovider extends ChangeNotifier{
final
data
=
await
ApiCalling
.
paymentRequisitionPaymentDetailsAPI
(
prov
.
empId
,
prov
.
session
,
paymentId
);
final
data
=
await
ApiCalling
.
paymentRequisitionPaymentDetailsAPI
(
prov
.
empId
,
prov
.
session
,
paymentId
);
if
(
data
!=
null
){
if
(
data
!=
null
){
if
(
data
.
error
==
"0"
){
if
(
data
.
error
==
"0"
){
_paymentDetails
=
data
.
paymentDetails
!;
_paymentDetails
=
data
.
paymentDetails
??
PaymentDetails
(
accountId:
"-"
,
accountName:
"-"
,
amount:
"-"
,
attachmentDirFilePath:
"-"
,
attachmentViewFileName:
"-"
,
createdDatetime:
"-"
,
description:
"-"
,
id:
"-"
,
updatedDatetime:
"-"
,
refType:
"-"
,
refId:
"-"
,
paymentRemarks:
"-"
,
paymentReferenceNumber:
"-"
,
paymentModeId:
"-"
,
paymentEmployeeName:
"-"
,
paymentDate:
"-"
,
paymentAccountName:
"-"
,
paymentAccountId:
"-"
,
mode:
"-"
,
isExists:
"-"
,
createdEmployeeId:
"-"
,
bankUpiId:
"-"
,
bankName:
"-"
,
bankIfscCode:
"-"
,
bankBranchName:
"-"
,
bankAccountNumber:
"-"
,
bankAccountHolderName:
"-"
,
);
_headings
=
[
_headings
=
[
"From Account"
,
"From Account"
,
"Payment Mode"
,
"Payment Mode"
,
...
...
lib/main.dart
View file @
d24e453e
...
@@ -6,6 +6,7 @@ import 'package:flutter/foundation.dart';
...
@@ -6,6 +6,7 @@ import 'package:flutter/foundation.dart';
import
'package:flutter/material.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter_local_notifications/flutter_local_notifications.dart'
;
import
'package:flutter_local_notifications/flutter_local_notifications.dart'
;
import
'package:flutter_ringtone_player/flutter_ringtone_player.dart'
;
import
'package:flutter_ringtone_player/flutter_ringtone_player.dart'
;
import
'package:generp/Utils/app_colors.dart'
;
import
'screens/notifierExports.dart'
;
import
'screens/notifierExports.dart'
;
import
'package:generp/Utils/SharedpreferencesService.dart'
;
import
'package:generp/Utils/SharedpreferencesService.dart'
;
import
'package:generp/screens/splash.dart'
;
import
'package:generp/screens/splash.dart'
;
...
@@ -262,6 +263,13 @@ class MyApp extends StatelessWidget {
...
@@ -262,6 +263,13 @@ class MyApp extends StatelessWidget {
colorScheme:
const
ColorScheme
.
light
(
colorScheme:
const
ColorScheme
.
light
(
background:
Colors
.
white
,
background:
Colors
.
white
,
).
copyWith
(
background:
Colors
.
white
),
).
copyWith
(
background:
Colors
.
white
),
scrollbarTheme:
ScrollbarThemeData
(
minThumbLength:
20
,
interactive:
true
,
radius:
Radius
.
circular
(
6
),
thickness:
WidgetStatePropertyAll
(
10
),
thumbColor:
WidgetStateProperty
.
all
(
AppColors
.
grey_semi
.
withOpacity
(
0.6
))
)
),
),
home:
const
Splash
(),
home:
const
Splash
(),
);
);
...
...
lib/screens/AttendanceScreen.dart
View file @
d24e453e
...
@@ -105,7 +105,8 @@ class _AttendanceScreenState extends State<AttendanceScreen> {
...
@@ -105,7 +105,8 @@ class _AttendanceScreenState extends State<AttendanceScreen> {
resizeToAvoidBottomInset:
true
,
resizeToAvoidBottomInset:
true
,
backgroundColor:
AppColors
.
scaffold_bg_color
,
backgroundColor:
AppColors
.
scaffold_bg_color
,
appBar:
appbar
(
context
,
"Attendance"
),
appBar:
appbar
(
context
,
"Attendance"
),
body:
Container
(
body:
SafeArea
(
child:
Container
(
child:
SingleChildScrollView
(
child:
SingleChildScrollView
(
child:
Column
(
child:
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
crossAxisAlignment:
CrossAxisAlignment
.
start
,
...
@@ -653,6 +654,7 @@ class _AttendanceScreenState extends State<AttendanceScreen> {
...
@@ -653,6 +654,7 @@ class _AttendanceScreenState extends State<AttendanceScreen> {
),
),
),
),
),
),
),
floatingActionButton:
floatingActionButton:
attendance
.
attendanceStatus
==
0
||
attendance
.
attendanceStatus
==
0
||
attendance
.
attendanceStatus
==
1
attendance
.
attendanceStatus
==
1
...
...
lib/screens/CheckInScreen.dart
View file @
d24e453e
...
@@ -39,7 +39,8 @@ class _CheckInOutScreenState extends State<CheckInOutScreen> {
...
@@ -39,7 +39,8 @@ class _CheckInOutScreenState extends State<CheckInOutScreen> {
child:
Scaffold
(
child:
Scaffold
(
resizeToAvoidBottomInset:
true
,
resizeToAvoidBottomInset:
true
,
appBar:
appbar
(
context
,
widget
.
getAttendanceStatus
==
0
?
"Check In"
:
"Check Out"
),
appBar:
appbar
(
context
,
widget
.
getAttendanceStatus
==
0
?
"Check In"
:
"Check Out"
),
body:
Container
(
body:
SafeArea
(
child:
Container
(
child:
SafeArea
(
child:
SafeArea
(
child:
Column
(
child:
Column
(
children:
[
children:
[
...
@@ -227,6 +228,7 @@ class _CheckInOutScreenState extends State<CheckInOutScreen> {
...
@@ -227,6 +228,7 @@ class _CheckInOutScreenState extends State<CheckInOutScreen> {
),
),
),
),
),
),
),
);
);
},
},
);
);
...
...
lib/screens/HomeScreen.dart
View file @
d24e453e
...
@@ -169,7 +169,8 @@ class _MyHomePageState extends State<MyHomePage> {
...
@@ -169,7 +169,8 @@ class _MyHomePageState extends State<MyHomePage> {
resizeToAvoidBottomInset:
true
,
resizeToAvoidBottomInset:
true
,
backgroundColor:
AppColors
.
scaffold_bg_color
,
backgroundColor:
AppColors
.
scaffold_bg_color
,
body:
Container
(
body:
SafeArea
(
child:
Container
(
child:
Column
(
child:
Column
(
children:
[
children:
[
Expanded
(
Expanded
(
...
@@ -509,6 +510,7 @@ class _MyHomePageState extends State<MyHomePage> {
...
@@ -509,6 +510,7 @@ class _MyHomePageState extends State<MyHomePage> {
),
),
),
),
),
),
),
);
);
},
},
);
);
...
...
lib/screens/LoginScreen.dart
View file @
d24e453e
...
@@ -160,7 +160,8 @@ class _LoginScreenState extends State<LoginScreen>
...
@@ -160,7 +160,8 @@ class _LoginScreenState extends State<LoginScreen>
child:
Scaffold
(
child:
Scaffold
(
resizeToAvoidBottomInset:
true
,
resizeToAvoidBottomInset:
true
,
backgroundColor:
AppColors
.
scaffold_bg_color
,
backgroundColor:
AppColors
.
scaffold_bg_color
,
body:
KeyboardVisibilityProvider
(
body:
SafeArea
(
child:
KeyboardVisibilityProvider
(
controller:
_keyboardVisibilityController
,
controller:
_keyboardVisibilityController
,
child:
Stack
(
child:
Stack
(
alignment:
Alignment
.
center
,
alignment:
Alignment
.
center
,
...
@@ -688,6 +689,7 @@ class _LoginScreenState extends State<LoginScreen>
...
@@ -688,6 +689,7 @@ class _LoginScreenState extends State<LoginScreen>
],
],
),
),
),
),
),
// bottomNavigationBar: ,
// bottomNavigationBar: ,
),
),
);
);
...
...
lib/screens/ScannerLogin.dart
View file @
d24e453e
...
@@ -24,7 +24,8 @@ class _ScannerloginState extends State<Scannerlogin> {
...
@@ -24,7 +24,8 @@ class _ScannerloginState extends State<Scannerlogin> {
resizeToAvoidBottomInset:
true
,
resizeToAvoidBottomInset:
true
,
backgroundColor:
AppColors
.
scaffold_bg_color
,
backgroundColor:
AppColors
.
scaffold_bg_color
,
appBar:
appbar
(
context
,
"QR Login"
),
appBar:
appbar
(
context
,
"QR Login"
),
body:
Container
(
body:
SafeArea
(
child:
Container
(
decoration:
BoxDecoration
(
color:
Colors
.
black
),
decoration:
BoxDecoration
(
color:
Colors
.
black
),
child:
Column
(
child:
Column
(
children:
[
children:
[
...
@@ -69,6 +70,7 @@ class _ScannerloginState extends State<Scannerlogin> {
...
@@ -69,6 +70,7 @@ class _ScannerloginState extends State<Scannerlogin> {
),
),
),
),
),
),
),
);
);
},
},
);
);
...
...
lib/screens/UpdatePasswordScreen.dart
View file @
d24e453e
...
@@ -19,7 +19,8 @@ class UpdatePassword extends StatelessWidget {
...
@@ -19,7 +19,8 @@ class UpdatePassword extends StatelessWidget {
resizeToAvoidBottomInset:
true
,
resizeToAvoidBottomInset:
true
,
appBar:
appbar
(
context
,
"Update Password"
),
appBar:
appbar
(
context
,
"Update Password"
),
backgroundColor:
AppColors
.
scaffold_bg_color
,
backgroundColor:
AppColors
.
scaffold_bg_color
,
body:
Container
(
body:
SafeArea
(
child:
Container
(
child:
Column
(
child:
Column
(
children:
[
children:
[
Expanded
(
Expanded
(
...
@@ -140,6 +141,7 @@ class UpdatePassword extends StatelessWidget {
...
@@ -140,6 +141,7 @@ class UpdatePassword extends StatelessWidget {
),
),
),
),
),
),
),
);
);
}
}
...
...
lib/screens/WebERPIOS.dart
View file @
d24e453e
...
@@ -87,7 +87,8 @@ class _WebERPIOSState extends State<WebERPIOS> {
...
@@ -87,7 +87,8 @@ class _WebERPIOSState extends State<WebERPIOS> {
},
},
child:
Scaffold
(
child:
Scaffold
(
appBar:
appbar
(
context
,
"Web ERP"
),
appBar:
appbar
(
context
,
"Web ERP"
),
body:
Container
(
body:
SafeArea
(
child:
Container
(
child:
Column
(
child:
Column
(
children:
<
Widget
>[
children:
<
Widget
>[
Expanded
(
Expanded
(
...
@@ -274,6 +275,7 @@ class _WebERPIOSState extends State<WebERPIOS> {
...
@@ -274,6 +275,7 @@ class _WebERPIOSState extends State<WebERPIOS> {
),
),
),
),
),
),
),
);
);
}
}
}
}
lib/screens/WebERPScreen.dart
View file @
d24e453e
...
@@ -117,7 +117,8 @@ class _WebErpScreenState extends State<WebErpScreen> {
...
@@ -117,7 +117,8 @@ class _WebErpScreenState extends State<WebErpScreen> {
child:
Scaffold
(
child:
Scaffold
(
resizeToAvoidBottomInset:
true
,
resizeToAvoidBottomInset:
true
,
appBar:
appbar
(
context
,
"Web ERP"
),
appBar:
appbar
(
context
,
"Web ERP"
),
body:
Container
(
body:
SafeArea
(
child:
Container
(
child:
Column
(
child:
Column
(
children:
<
Widget
>[
children:
<
Widget
>[
Expanded
(
Expanded
(
...
@@ -445,6 +446,7 @@ class _WebErpScreenState extends State<WebErpScreen> {
...
@@ -445,6 +446,7 @@ class _WebErpScreenState extends State<WebErpScreen> {
),
),
),
),
),
),
),
);
);
}
}
...
...
lib/screens/WebWhizzdomScreen.dart
View file @
d24e453e
...
@@ -80,7 +80,8 @@ class _WebWhizzdomScreenState extends State<WebWhizzdomScreen> {
...
@@ -80,7 +80,8 @@ class _WebWhizzdomScreenState extends State<WebWhizzdomScreen> {
child:
Scaffold
(
child:
Scaffold
(
resizeToAvoidBottomInset:
true
,
resizeToAvoidBottomInset:
true
,
appBar:
appbar
(
context
,
"Whizzdom"
),
appBar:
appbar
(
context
,
"Whizzdom"
),
body:
Container
(
body:
SafeArea
(
child:
Container
(
child:
Column
(
children:
<
Widget
>[
child:
Column
(
children:
<
Widget
>[
Expanded
(
Expanded
(
child:
Stack
(
child:
Stack
(
...
@@ -184,6 +185,7 @@ class _WebWhizzdomScreenState extends State<WebWhizzdomScreen> {
...
@@ -184,6 +185,7 @@ class _WebWhizzdomScreenState extends State<WebWhizzdomScreen> {
))
))
])),
])),
),
),
),
);
);
}
}
}
}
lib/screens/commom/accountLedger.dart
View file @
d24e453e
...
@@ -94,11 +94,11 @@ class _AccountledgerState extends State<Accountledger> {
...
@@ -94,11 +94,11 @@ class _AccountledgerState extends State<Accountledger> {
),
),
),
),
backgroundColor:
AppColors
.
scaffold_bg_color
,
backgroundColor:
AppColors
.
scaffold_bg_color
,
body:
provider
.
isLoading
body:
SafeArea
(
child:
provider
.
isLoading
?
Center
(
child:
CircularProgressIndicator
.
adaptive
(
?
Center
(
child:
CircularProgressIndicator
.
adaptive
(
valueColor:
AlwaysStoppedAnimation
<
Color
>(
valueColor:
AlwaysStoppedAnimation
<
Color
>(
AppColors
.
app_blue
)
AppColors
.
app_blue
)
)):
Container
(
)):
SizedBox
(
child:
SingleChildScrollView
(
child:
SingleChildScrollView
(
child:
Column
(
child:
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
crossAxisAlignment:
CrossAxisAlignment
.
start
,
...
@@ -427,7 +427,7 @@ class _AccountledgerState extends State<Accountledger> {
...
@@ -427,7 +427,7 @@ class _AccountledgerState extends State<Accountledger> {
],
],
),
),
),
),
),
)
),
),
),
onWillPop: () {
onWillPop: () {
return _onBackPressed(context);
return _onBackPressed(context);
...
...
lib/screens/commom/accountsList.dart
View file @
d24e453e
...
@@ -53,7 +53,7 @@ class _AccountslistState extends State<Accountslist> {
...
@@ -53,7 +53,7 @@ class _AccountslistState extends State<Accountslist> {
),
),
),),
),),
backgroundColor:
AppColors
.
scaffold_bg_color
,
backgroundColor:
AppColors
.
scaffold_bg_color
,
body:
accountList
.
isNotEmpty
?
Container
(
body:
SafeArea
(
child:
accountList
.
isNotEmpty
?
SizedBox
(
child:
SingleChildScrollView
(
child:
SingleChildScrollView
(
controller:
scrollController
,
controller:
scrollController
,
child:
Column
(
child:
Column
(
...
@@ -232,7 +232,7 @@ class _AccountslistState extends State<Accountslist> {
...
@@ -232,7 +232,7 @@ class _AccountslistState extends State<Accountslist> {
],
],
),
),
),
),
):
Emptywidget
(
context
),
):
Emptywidget
(
context
),
)
),
),
onWillPop:
()
{
onWillPop:
()
{
provider
.
pageNum
=
1
;
provider
.
pageNum
=
1
;
...
...
lib/screens/commom/accountsListDetails.dart
View file @
d24e453e
...
@@ -68,7 +68,8 @@ class _AccountslistdetailsState extends State<Accountslistdetails> {
...
@@ -68,7 +68,8 @@ class _AccountslistdetailsState extends State<Accountslistdetails> {
)),
)),
resizeToAvoidBottomInset:
true
,
resizeToAvoidBottomInset:
true
,
backgroundColor:
AppColors
.
scaffold_bg_color
,
backgroundColor:
AppColors
.
scaffold_bg_color
,
body:
Container
(
body:
SafeArea
(
child:
SizedBox
(
child:
SingleChildScrollView
(
child:
SingleChildScrollView
(
child:
Column
(
child:
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
crossAxisAlignment:
CrossAxisAlignment
.
start
,
...
@@ -479,6 +480,7 @@ class _AccountslistdetailsState extends State<Accountslistdetails> {
...
@@ -479,6 +480,7 @@ class _AccountslistdetailsState extends State<Accountslistdetails> {
),
),
),
),
),
),
),
onWillPop: () {
onWillPop: () {
return _onBackPressed(context);
return _onBackPressed(context);
},
},
...
...
lib/screens/commom/addCommonPayment.dart
View file @
d24e453e
...
@@ -39,7 +39,8 @@ class _AddcommonpaymentState extends State<Addcommonpayment> {
...
@@ -39,7 +39,8 @@ class _AddcommonpaymentState extends State<Addcommonpayment> {
resizeToAvoidBottomInset:
true
,
resizeToAvoidBottomInset:
true
,
appBar:
appbar
(
context
,
"Add Common Account"
),
appBar:
appbar
(
context
,
"Add Common Account"
),
backgroundColor:
AppColors
.
white
,
backgroundColor:
AppColors
.
white
,
body:
Container
(
body:
SafeArea
(
child:
SizedBox
(
child:
SingleChildScrollView
(
child:
SingleChildScrollView
(
child:
Column
(
child:
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
crossAxisAlignment:
CrossAxisAlignment
.
start
,
...
@@ -593,6 +594,7 @@ class _AddcommonpaymentState extends State<Addcommonpayment> {
...
@@ -593,6 +594,7 @@ class _AddcommonpaymentState extends State<Addcommonpayment> {
),
),
),
),
),
),
),
floatingActionButtonLocation:
floatingActionButtonLocation:
FloatingActionButtonLocation
.
centerFloat
,
FloatingActionButtonLocation
.
centerFloat
,
bottomNavigationBar:
InkResponse
(
bottomNavigationBar:
InkResponse
(
...
...
lib/screens/commom/commonDashboard.dart
View file @
d24e453e
...
@@ -39,7 +39,8 @@ class _CommondashboardState extends State<Commondashboard> {
...
@@ -39,7 +39,8 @@ class _CommondashboardState extends State<Commondashboard> {
resizeToAvoidBottomInset:
true
,
resizeToAvoidBottomInset:
true
,
backgroundColor:
AppColors
.
scaffold_bg_color
,
backgroundColor:
AppColors
.
scaffold_bg_color
,
appBar:
appbar
(
context
,
"Common"
),
appBar:
appbar
(
context
,
"Common"
),
body:
GridView
.
builder
(
body:
SafeArea
(
child:
GridView
.
builder
(
padding:
EdgeInsets
.
symmetric
(
vertical:
10
,
horizontal:
10
),
padding:
EdgeInsets
.
symmetric
(
vertical:
10
,
horizontal:
10
),
itemCount:
gridPages
.
length
,
itemCount:
gridPages
.
length
,
gridDelegate:
SliverGridDelegateWithFixedCrossAxisCount
(
gridDelegate:
SliverGridDelegateWithFixedCrossAxisCount
(
...
@@ -88,6 +89,7 @@ class _CommondashboardState extends State<Commondashboard> {
...
@@ -88,6 +89,7 @@ class _CommondashboardState extends State<Commondashboard> {
);
);
},
},
),
),
),
floatingActionButtonLocation:
FloatingActionButtonLocation
.
centerFloat
,
floatingActionButtonLocation:
FloatingActionButtonLocation
.
centerFloat
,
floatingActionButton:
provider
.
accessPages
floatingActionButton:
provider
.
accessPages
.
any
((
page
)
=>
page
.
id
==
292
)?
InkResponse
(
.
any
((
page
)
=>
page
.
id
==
292
)?
InkResponse
(
...
...
lib/screens/commom/transactionDetails.dart
View file @
d24e453e
...
@@ -38,7 +38,8 @@ class _TransactiondetailsState extends State<Transactiondetails> {
...
@@ -38,7 +38,8 @@ class _TransactiondetailsState extends State<Transactiondetails> {
resizeToAvoidBottomInset:
true
,
resizeToAvoidBottomInset:
true
,
appBar:
appbar
(
context
,
"Details"
),
appBar:
appbar
(
context
,
"Details"
),
backgroundColor:
AppColors
.
scaffold_bg_color
,
backgroundColor:
AppColors
.
scaffold_bg_color
,
body:
Container
(
body:
SafeArea
(
child:
Container
(
margin:
EdgeInsets
.
symmetric
(
vertical:
10
,
horizontal:
10
),
margin:
EdgeInsets
.
symmetric
(
vertical:
10
,
horizontal:
10
),
child:
SingleChildScrollView
(
child:
SingleChildScrollView
(
child:
Container
(
child:
Container
(
...
@@ -174,6 +175,7 @@ class _TransactiondetailsState extends State<Transactiondetails> {
...
@@ -174,6 +175,7 @@ class _TransactiondetailsState extends State<Transactiondetails> {
),
),
),
),
),
),
),
);
);
},
},
);
);
...
...
Prev
1
2
3
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment