more fixes

This commit is contained in:
2024-06-27 21:50:36 -05:00
parent 921ce17736
commit db8f44234a
5 changed files with 12 additions and 19 deletions
+2 -1
View File
@@ -181,7 +181,7 @@ class _CreateBusinessDetailState extends State<BusinessDetail> {
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Padding(
padding: const EdgeInsets.only(left: 16, top: 4),
padding: const EdgeInsets.only(left: 16, top: 8),
child: _GetListingsTitle(business)),
if (business.listings != null)
_JobList(business: business)
@@ -340,6 +340,7 @@ class _JobListItem extends StatelessWidget {
subtitle: Text(
jobListing.description,
style: const TextStyle(overflow: TextOverflow.ellipsis),
maxLines: 2,
),
trailing: _getEditIcon(context, fromBusiness, jobListing),
onTap: () {
+1 -1
View File
@@ -32,7 +32,7 @@ class _CreateEditJobListingState extends State<CreateEditJobListing> {
id: null,
businessId: null,
name: 'Job Listing',
description: 'Add details about the business below.',
description: 'Add details about the job below.',
type: null,
wage: null,
link: null,
+3
View File
@@ -32,6 +32,7 @@ class _CreateBusinessDetailState extends State<JobListingDetail> {
);
}
/// body of the JobListingDetail
Widget _detailBody(JobListing listing) {
return ListView(
children: [
@@ -63,6 +64,7 @@ class _CreateBusinessDetailState extends State<JobListingDetail> {
);
}
/// Top card including title, logo, description, and business name
Widget _summaryCard(JobListing listing) {
return Card(
clipBehavior: Clip.antiAlias,
@@ -147,6 +149,7 @@ class _CreateBusinessDetailState extends State<JobListingDetail> {
);
}
/// Edit / delete actions if the user is logged in
List<Widget>? _getActions(JobListing listing, Business fromBusiness) {
if (loggedIn) {
return [