🍽️ Key Features and Functionality
The app centers around a main list of friends, each with a running balance, and a form that appears when a friend is selected.
Friend Management: Users can add new friends to the list.
Balance Tracking: The app keeps track of the balance between the user and each friend, displayed clearly next to the friend's name:
Positive Balance (e.g., "Owes you $10"): The friend owes the user money.
Negative Balance (e.g., "You owe $5"): The user owes the friend money.
Zero Balance ("You are even"): The balance is settled.
Split Bill Form: When a friend is selected from the list, a special form appears to split a bill with that specific person. The form requires inputs for:
The total bill value.
How much the user paid.
How much the friend paid.
A choice to select who paid the bill (either the user or the friend).
Automatic Calculation: Based on the form inputs, the app automatically calculates the correct balance update and applies it to the selected friend's balance in the list.