Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
firgia committed Oct 26, 2021
1 parent 30f460b commit 58788cc
Showing 1 changed file with 9 additions and 27 deletions.
36 changes: 9 additions & 27 deletions lib/app/features/dashboard/views/screens/dashboard_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -73,16 +73,10 @@ class DashboardScreen extends GetView<DashboardController> {
child: Column(
children: [
const SizedBox(height: kSpacing / 2),
_buildProfile(
data: controller.getProfil(),
onPressedNotification: () {},
),
_buildProfile(data: controller.getProfil()),
const Divider(thickness: 1),
const SizedBox(height: kSpacing),
_buildTeamMember(
data: controller.getMember(),
onPressedAdd: () {},
),
_buildTeamMember(data: controller.getMember()),
const SizedBox(height: kSpacing),
Padding(
padding: const EdgeInsets.symmetric(horizontal: kSpacing),
Expand All @@ -91,10 +85,7 @@ class DashboardScreen extends GetView<DashboardController> {
const SizedBox(height: kSpacing),
const Divider(thickness: 1),
const SizedBox(height: kSpacing),
_buildRecentMessages(
data: controller.getChatting(),
onPressedMore: () {},
),
_buildRecentMessages(data: controller.getChatting()),
],
),
)
Expand Down Expand Up @@ -183,31 +174,25 @@ class DashboardScreen extends GetView<DashboardController> {
);
}

Widget _buildProfile({
required _Profile data,
required Function() onPressedNotification,
}) {
Widget _buildProfile({required _Profile data}) {
return Padding(
padding: const EdgeInsets.symmetric(horizontal: kSpacing),
child: _ProfilTile(
data: data,
onPressedNotification: onPressedNotification,
onPressedNotification: () {},
),
);
}

Widget _buildTeamMember({
required List<ImageProvider> data,
required Function() onPressedAdd,
}) {
Widget _buildTeamMember({required List<ImageProvider> data}) {
return Padding(
padding: const EdgeInsets.symmetric(horizontal: kSpacing),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
_TeamMember(
totalMember: data.length,
onPressedAdd: onPressedAdd,
onPressedAdd: () {},
),
const SizedBox(height: kSpacing / 2),
ListProfilImage(maxImages: 6, images: data),
Expand All @@ -216,10 +201,7 @@ class DashboardScreen extends GetView<DashboardController> {
);
}

Widget _buildRecentMessages({
required List<ChattingCardData> data,
required Function() onPressedMore,
}) {
Widget _buildRecentMessages({required List<ChattingCardData> data}) {
return Column(children: [
Padding(
padding: const EdgeInsets.symmetric(horizontal: kSpacing),
Expand All @@ -228,7 +210,7 @@ class DashboardScreen extends GetView<DashboardController> {
const SizedBox(height: kSpacing / 2),
...data
.map(
(e) => ChattingCard(data: e, onPressed: onPressedMore),
(e) => ChattingCard(data: e, onPressed: () {}),
)
.toList(),
]);
Expand Down

0 comments on commit 58788cc

Please sign in to comment.