more fixes
This commit is contained in:
parent
1f7b850d66
commit
1a6bf08bde
@ -225,7 +225,10 @@ class _CreateEditBusinessState extends State<CreateEditBusiness> {
|
|||||||
controller: _websiteController,
|
controller: _websiteController,
|
||||||
keyboardType: TextInputType.url,
|
keyboardType: TextInputType.url,
|
||||||
onChanged: (inputUrl) {
|
onChanged: (inputUrl) {
|
||||||
business.website = Uri.encodeFull(inputUrl);
|
setState(() {
|
||||||
|
business.website =
|
||||||
|
Uri.encodeFull(inputUrl);
|
||||||
|
});
|
||||||
if (inputUrl.trim().isEmpty) {
|
if (inputUrl.trim().isEmpty) {
|
||||||
business.website = null;
|
business.website = null;
|
||||||
} else {
|
} else {
|
||||||
@ -233,8 +236,10 @@ class _CreateEditBusinessState extends State<CreateEditBusiness> {
|
|||||||
.contains('http://') &&
|
.contains('http://') &&
|
||||||
!business.website!
|
!business.website!
|
||||||
.contains('https://')) {
|
.contains('https://')) {
|
||||||
|
setState(() {
|
||||||
business.website =
|
business.website =
|
||||||
'https://${business.website!.trim()}';
|
'https://${business.website!.trim()}';
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -60,6 +60,9 @@ class _CreateEditJobListingState extends State<CreateEditJobListing> {
|
|||||||
.replaceAll('www.', ''));
|
.replaceAll('www.', ''));
|
||||||
getBusinessNameMapping = fetchBusinessNames();
|
getBusinessNameMapping = fetchBusinessNames();
|
||||||
businessName = widget.inputBusiness?.name ?? 'Offering business';
|
businessName = widget.inputBusiness?.name ?? 'Offering business';
|
||||||
|
if (widget.inputBusiness != null) {
|
||||||
|
listing.businessId = widget.inputBusiness!.id;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
final formKey = GlobalKey<FormState>();
|
final formKey = GlobalKey<FormState>();
|
||||||
@ -67,9 +70,6 @@ class _CreateEditJobListingState extends State<CreateEditJobListing> {
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
widescreen = MediaQuery.sizeOf(context).width >= widescreenWidth;
|
widescreen = MediaQuery.sizeOf(context).width >= widescreenWidth;
|
||||||
if (widget.inputBusiness != null) {
|
|
||||||
listing.businessId = widget.inputBusiness!.id;
|
|
||||||
}
|
|
||||||
return PopScope(
|
return PopScope(
|
||||||
canPop: !_isLoading,
|
canPop: !_isLoading,
|
||||||
onPopInvoked: _handlePop,
|
onPopInvoked: _handlePop,
|
||||||
|
|||||||
@ -8,7 +8,7 @@ import 'package:fbla_ui/shared/widgets.dart';
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:url_launcher/url_launcher.dart';
|
import 'package:url_launcher/url_launcher.dart';
|
||||||
|
|
||||||
/// A page to view all specific details about a single job listing (with it's businesses contact info)
|
/// A page to view all specific details about a single job listing (with its businesses contact info)
|
||||||
class JobListingDetail extends StatefulWidget {
|
class JobListingDetail extends StatefulWidget {
|
||||||
final JobListing listing;
|
final JobListing listing;
|
||||||
final Business fromBusiness;
|
final Business fromBusiness;
|
||||||
|
|||||||
@ -36,8 +36,8 @@ enum JobType {
|
|||||||
retail,
|
retail,
|
||||||
customerService,
|
customerService,
|
||||||
foodService,
|
foodService,
|
||||||
finance,
|
finance, // unused
|
||||||
healthcare,
|
healthcare, // unused
|
||||||
education,
|
education,
|
||||||
maintenance,
|
maintenance,
|
||||||
manufacturing,
|
manufacturing,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user