-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added boundary data mapper #146
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you undo this file rename as well please?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you undo this file rename as well please?
@@ -29,26 +29,23 @@ class BoundaryBloc extends Bloc<BoundaryEvent, BoundaryState> { | |||
List<BoundaryModel> boundaryList = await boundaryRepository.search( | |||
BoundarySearchModel(code: event.code), | |||
); | |||
boundaryList.forEach((ele) => print(ele.code)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove this print statement.
boundaryList.forEach((ele) => print(ele.code)); |
@@ -47,9 +51,14 @@ class AuthenticatedPageWrapperState extends State<AuthenticatedPageWrapper> { | |||
(boundaryList, boundaryMapperList, selectedBoundary) { | |||
if (boundaryList.isEmpty) return; | |||
|
|||
if (selectedBoundary == null) { | |||
if (selectedBoundary.isEmpty) { | |||
setState(() { | |||
visiable = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo in visible
.add(BoundaryEvent | ||
.select( | ||
selectedBoundary: | ||
selectedBoundaryValuehierarchy, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
selectedBoundaryValuehierarchy, | |
selectedBoundaryValueHierarchy, |
Typo
selectedBoundaryValuehierarchy, | ||
)); | ||
setState(() { | ||
visiable = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo
@@ -181,11 +181,11 @@ class _LoginPageState extends LocalizedState<LoginPage> { | |||
|
|||
FormGroup buildForm() => fb.group(<String, Object>{ | |||
_userId: FormControl<String>( | |||
value: 'distributorUlongue', | |||
value: 'wmgrDashboardAngonia', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove hardcoded credentials
value: 'wmgrDashboardAngonia', |
validators: [Validators.required], | ||
), | ||
_password: FormControl<String>( | ||
value: 'eGov@1234', | ||
value: 'eGov@1234', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove hardcoded credentials
value: 'eGov@1234', |
@@ -37,7 +37,7 @@ extension ContextUtilityExtensions on BuildContext { | |||
throw AppException('No project is selected'); | |||
} | |||
|
|||
return selectedBoundary; | |||
return selectedBoundary.where((e) => e != '').toList().last; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't call last
without checking if the list is empty. This will break
Will be merged as part of #150 |
No description provided.