Skip to content

Extract shared bill-editing form to reduce duplication #44

@CrowdTypical

Description

@CrowdTypical

Description

lib/screens/bill_detail_screen.dart (450+ lines) and lib/screens/bill_detail_sheet_content.dart (350+ lines) duplicate the bill editing form, split slider, validation logic, and save logic.

Recommended Fix

Extract the shared form (category selector, amount field, split slider, notes, date picker, save button) into a reusable widget like BillEditForm that both views can compose.

Priority

Medium — increases maintenance burden and risk of divergent behavior between the two views.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions