more fixes
This commit is contained in:
parent
a97ec0411d
commit
577801423d
@ -86,7 +86,6 @@ class _MainAppState extends State<MainApp> {
|
||||
filled: true,
|
||||
fillColor: Colors.grey.withOpacity(0.1),
|
||||
labelStyle: const TextStyle(color: Colors.grey),
|
||||
outlineBorder: BorderSide(color: Colors.grey.shade700),
|
||||
floatingLabelStyle: WidgetStateTextStyle.resolveWith((states) {
|
||||
if (states.contains(WidgetState.focused) &&
|
||||
!states.contains(WidgetState.hovered)) {
|
||||
@ -119,8 +118,6 @@ class _MainAppState extends State<MainApp> {
|
||||
filled: true,
|
||||
fillColor: Colors.grey.withOpacity(0.25),
|
||||
labelStyle: TextStyle(color: Colors.grey.shade700),
|
||||
border: OutlineInputBorder(
|
||||
borderSide: BorderSide(color: Colors.grey.shade700)),
|
||||
floatingLabelStyle: WidgetStateTextStyle.resolveWith((states) {
|
||||
if (states.contains(WidgetState.focused) &&
|
||||
!states.contains(WidgetState.hovered)) {
|
||||
|
||||
@ -166,8 +166,7 @@ class _CreateBusinessDetailState extends State<BusinessDetail> {
|
||||
.replaceAll('www.', ''),
|
||||
style: const TextStyle(color: Colors.blue)),
|
||||
onTap: () {
|
||||
launchUrl(
|
||||
Uri.parse('https://${business.website}'));
|
||||
launchUrl(Uri.parse(business.website!));
|
||||
},
|
||||
),
|
||||
],
|
||||
|
||||
@ -513,7 +513,7 @@ class _BusinessHeaderState extends State<_BusinessHeader> {
|
||||
IconButton(
|
||||
icon: const Icon(Icons.link),
|
||||
onPressed: () {
|
||||
launchUrl(Uri.parse('https://${business.website}'));
|
||||
launchUrl(Uri.parse(business.website!));
|
||||
},
|
||||
),
|
||||
IconButton(
|
||||
|
||||
@ -247,6 +247,7 @@ class _CreateEditBusinessState extends State<CreateEditBusiness> {
|
||||
),
|
||||
validator: (value) {
|
||||
if (value != null &&
|
||||
value.isNotEmpty &&
|
||||
!RegExp(r'(?:[a-zA-Z0-9](?:[a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}(?:/[^/\s]*)*')
|
||||
.hasMatch(value)) {
|
||||
return 'Enter a valid Website';
|
||||
|
||||
@ -123,7 +123,7 @@ class _CreateBusinessDetailState extends State<JobListingDetail> {
|
||||
.replaceAll('www.', ''),
|
||||
style: const TextStyle(color: Colors.blue)),
|
||||
onTap: () {
|
||||
launchUrl(Uri.parse('https://${listing.link!}'));
|
||||
launchUrl(Uri.parse(listing.link!));
|
||||
},
|
||||
),
|
||||
],
|
||||
|
||||
@ -151,7 +151,8 @@ class _JobsOverviewState extends State<JobsOverview> {
|
||||
setState(() {
|
||||
_isRetrying = true;
|
||||
});
|
||||
await widget.updateBusinessesCallback(null, null);
|
||||
await widget.updateBusinessesCallback(
|
||||
null, null);
|
||||
}
|
||||
},
|
||||
),
|
||||
@ -592,8 +593,7 @@ class _JobHeaderState extends State<_JobHeader> {
|
||||
IconButton(
|
||||
icon: const Icon(Icons.link),
|
||||
onPressed: () {
|
||||
launchUrl(Uri.parse(
|
||||
'https://${business.listings![0].link!}'));
|
||||
launchUrl(Uri.parse(business.listings![0].link!));
|
||||
},
|
||||
),
|
||||
IconButton(
|
||||
|
||||
@ -151,13 +151,16 @@ class _SignInPageState extends State<SignInPage> {
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
_isloading
|
||||
? const SizedBox(
|
||||
width: 20,
|
||||
height: 20,
|
||||
child: CircularProgressIndicator(
|
||||
color: Colors.white,
|
||||
strokeWidth: 3,
|
||||
))
|
||||
? Padding(
|
||||
padding: EdgeInsets.only(right: 8.0),
|
||||
child: const SizedBox(
|
||||
width: 20,
|
||||
height: 20,
|
||||
child: CircularProgressIndicator(
|
||||
color: Colors.white,
|
||||
strokeWidth: 3,
|
||||
)),
|
||||
)
|
||||
: const Padding(
|
||||
padding: EdgeInsets.only(right: 8.0),
|
||||
child: Icon(Icons.done,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user