Skip to content

Implemented a Daily Activities Screen with Provider Integration, Dynamic UI, and enhanced user Interactions #85

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

SharkyBytes
Copy link
Contributor

Closes #82

📝 Description

This pull request addresses issue by implementing the daily activities screen for the therapist app. Key features and changes include:

->Implemented the DailyActivitiesScreen using Provider for state management and mock data.
->Created a separate ActivitySetCard widget for modular and reusable UI
->Added dynamic repeat information text based on selected days
->Implemented separate states for active/inactive and expanded/collapsed views
->Prepared the structure to easily integrate backend data for activities
->Enhanced UI with expandable activity sets and day selection functionality

🔧 Changes Made

📷 Screenshots or Visual Changes (if applicable)

Recording.2025-03-23.121802.mp4

✅ Checklist

  • I have read the contributing guidelines.
  • I have added tests that prove my fix is effective or that my feature works.
  • I have added necessary documentation (if applicable).
  • Any dependent changes have been merged and published in downstream modules.

@SharkyBytes
Copy link
Contributor Author

@mdmohsin7 Please take a look.

@mdmohsin7
Copy link
Member

@SharkyBytes pls try to match the designs to the figma. And also can you pls share the demo video of what happens when you click on schedule, add/remove activities and delete?

child: Column(
children: [
// Activity Sets
for (int i = 0; i < activitySets.length; i++) ...[
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could make use of a list view instead of a for loop?

@@ -0,0 +1,92 @@
import 'package:flutter/material.dart';

class ActivitySet {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

schemas in separate file pls

);
}

Widget _buildActionButton(IconData icon, String label) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pls prefer using stateless widgets over widget functions

@mdmohsin7
Copy link
Member

Hi @SharkyBytes, any update?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Code the daily activities screen for the therapist app
3 participants