-
-
Notifications
You must be signed in to change notification settings - Fork 431
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
Refactoring of codebase and separation on data/UI #715
Comments
@Sagar2366 sir, I would like to work on the first child issue. Should I create an issue for it?
|
@utkarshshendge Create all six child issues first so others can work on them. Reference the child issues in this one. We'll assign the one of your choice to you. Let us know when you are done. |
Hi @CyberWake, many times it's necessary to wrap the Container in Align, padding, etc to get the desired behaviour.
|
That was just a reference example plus is this is found anywhere then for padding as parent we may use margin property of container and for align the container itself has a alignment property to do so with it's child. |
@CyberWake please add all the child issues @utkarshshendge created to the first comment of the issue. That will help a lot with the resolution |
The following child issues have been created from this parent:
|
@CyberWake I just realized that all the child issues that @utkarshshendge created have been assigned to others.
Are there any other ways you'd like to work with this? |
Issue #700 has now been integrated into the pull request process. It will flag all Dart files that are longer than 300 lines to help with readability. Please make sure your contribution reduces file sizes to within this limit. |
Issue Description:
This issue is raised to refactor the code base to increase the readability and future maintainability, Following things could be done to refactor the code and can be worked upon as a child issue individually.
success_toast.dart
The widget here needs some modifications to make it universal on. Like needs two required parameters
message
andisSuccess
with a option parameterduration
. After which this widget needs to be used at all the places in the project by just passing themessage, isSuccess
and duration if needed. After successful accomplishing the task the filetoast_tile.dart
can be deleted with the filesuccess_toast.dart
renamed to something more appropriate liketoast.dart
etc.OrgController
in two different files namedorg_controller.dart
andorganization_controller.dart
. Where theOrgController
defined inorganization_controller.dart
in not used in the project this file needs to be deleted.Container
wrapped inAlign
orPadding
widget, NestedRow
and Columns``` etc.loading.dart
to make it a universal loading widget. This widget can be provided with following properties likeisCurrentOrgNull
resulting in asking the user to join an organization.isNetworkError
resulting in showing a error image and appropriate text.refresh
function andmessage
resulting in text displaying the message provided (like no post to show create one, no events to show create one etc) and a refresh button which calls the refresh function again to fetch the data if other users add data to the server.user_info.dart
not used in project and the user data model is much more bigger than the one defined. Better to create a new one. Currently declared models are less efficient and some of them are not even used. Model should be look alike the models declared in the api. We also need to have its implementation done on getting a successful response data from the server. Migrating allmodel
toview_models
orview_models
tomodel
keeping all in one place.Issue Severity:
Medium to Low.
Environment Details:
Project Level
Observed Behaviour:
My Finding detailed above, all are free tell their we will add them as well if they fall in the category.
Expected Behaviour:
Removal of unused widgets, unused files. Generation of reusable widgets, Reduction of code readability by separating data fetching and UI in separate places.
Does this issue need immediate attention?
Yes, if this is done now then the removal and addition of features would be much easier in coming time.
Are you willing to work on this issue:
Yes, Since this is a parent issue it needs child issues and needs to have multiple contributors who will to.
Other information:
Suggestions are welcomed discussion thread
The text was updated successfully, but these errors were encountered: