Skip to content

Commit

Permalink
Reformat files
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-sneha-s committed Mar 8, 2024
1 parent de30d3f commit 8d6b1cf
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 25 deletions.
9 changes: 5 additions & 4 deletions lib/ui/admin/members/list/member_list_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ class MembersTile extends StatelessWidget {
color: context.colorScheme.containerLow,
borderRadius: BorderRadius.circular(12)),
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 16.0,vertical: 8),
padding:
const EdgeInsets.symmetric(horizontal: 16.0, vertical: 8),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Expand Down Expand Up @@ -186,9 +187,9 @@ class MembersTile extends StatelessWidget {
extra: employee.uid),
);
},
separatorBuilder: (context, index) => Divider(
color: context.colorScheme.outlineColor,
)))
separatorBuilder: (context, index) => Divider(
color: context.colorScheme.outlineColor,
)))
]);
}
}
2 changes: 1 addition & 1 deletion lib/ui/user/home/home_screen/user_home_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class _UserHomeScreenState extends State<UserHomeScreen> {
const EdgeInsets.only(top: 16, bottom: 16),
child: Text(locale.request_tag,
style: AppTextStyle.style20.copyWith(
fontWeight: FontWeight.w600,
fontWeight: FontWeight.w600,
color: context.colorScheme.textPrimary)),
),
ListView.separated(
Expand Down
14 changes: 7 additions & 7 deletions lib/ui/widget/employee_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import 'package:projectunity/style/app_text_style.dart';
import 'package:projectunity/ui/widget/user_profile_image.dart';
import 'package:projectunity/ui/widget/widget_validation.dart';
import '../../data/configs/space_constant.dart';
import '../../data/configs/theme.dart';
import '../../data/model/employee/employee.dart';

class EmployeeCard extends StatelessWidget {
Expand Down Expand Up @@ -35,8 +34,8 @@ class EmployeeCard extends StatelessWidget {
children: [
Text(employee.name,
style: employee.status == EmployeeStatus.inactive
? AppTextStyle.style18.copyWith(
color: context.colorScheme.textSecondary)
? AppTextStyle.style18
.copyWith(color: context.colorScheme.textSecondary)
: AppTextStyle.style18.copyWith(
color: context.colorScheme.textPrimary,
height: 1.5),
Expand All @@ -47,8 +46,8 @@ class EmployeeCard extends StatelessWidget {
child: Padding(
padding: const EdgeInsets.only(top: 2),
child: Text(employee.designation ?? "",
style: AppTextStyle.style14.copyWith(
color: context.colorScheme.textSecondary),
style: AppTextStyle.style14
.copyWith(color: context.colorScheme.textSecondary),
overflow: TextOverflow.ellipsis,
maxLines: 1),
),
Expand All @@ -58,7 +57,8 @@ class EmployeeCard extends StatelessWidget {
)
],
),
)
.onTapGesture((){onTap?.call();});
).onTapGesture(() {
onTap?.call();
});
}
}
8 changes: 5 additions & 3 deletions lib/ui/widget/leave_application_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,16 @@ class LeaveApplicationCard extends StatelessWidget {
)
],
),
Divider(height: 30, color: context.colorScheme.outlineColor,),
Divider(
height: 30,
color: context.colorScheme.outlineColor,
),
_EmployeeContent(
employee: leaveApplication.employee,
),
],
),
)
.onTapGesture((){
).onTapGesture(() {
onTap?.call();
}),
);
Expand Down
19 changes: 9 additions & 10 deletions lib/ui/widget/leave_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -37,24 +37,24 @@ class LeaveCard extends StatelessWidget {
Text(
DateFormatter(AppLocalizations.of(context))
.getDatePeriodPresentation(
startDate: leave.startDate,
endDate: leave.endDate),
startDate: leave.startDate, endDate: leave.endDate),
style: AppTextStyle.style16
.copyWith(color: context.colorScheme.textPrimary),
overflow: TextOverflow.ellipsis),
],
),
Divider(height: 30, color: context.colorScheme.outlineColor,),
Divider(
height: 30,
color: context.colorScheme.outlineColor,
),
Row(
children: [
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
DateFormatter(AppLocalizations.of(context))
.dateInLine(
startDate: leave.startDate,
endDate: leave.endDate),
DateFormatter(AppLocalizations.of(context)).dateInLine(
startDate: leave.startDate, endDate: leave.endDate),
style: AppTextStyle.style16
.copyWith(color: context.colorScheme.textPrimary),
overflow: TextOverflow.ellipsis),
Expand All @@ -79,9 +79,8 @@ class LeaveCard extends StatelessWidget {
),
],
),
)
.onTapGesture((){
onTap?.call();
).onTapGesture(() {
onTap?.call();
}),
);
}
Expand Down

0 comments on commit 8d6b1cf

Please sign in to comment.