fix: logo prosapp mas grande y visible en sidebar con loadingBuilder
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
d5be8d6f6b
commit
76c05a5820
@@ -6,36 +6,59 @@ class Logo extends StatelessWidget {
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Container(
|
return Container(
|
||||||
padding: const EdgeInsets.symmetric(vertical: 28, horizontal: 20),
|
padding: const EdgeInsets.fromLTRB(20, 28, 20, 20),
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
Container(
|
Container(
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 14, vertical: 10),
|
width: double.infinity,
|
||||||
|
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 14),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
borderRadius: BorderRadius.circular(12),
|
borderRadius: BorderRadius.circular(14),
|
||||||
|
boxShadow: [
|
||||||
|
BoxShadow(
|
||||||
|
color: Colors.black.withOpacity(0.25),
|
||||||
|
blurRadius: 10,
|
||||||
|
offset: const Offset(0, 4),
|
||||||
|
),
|
||||||
|
],
|
||||||
),
|
),
|
||||||
child: Image.network(
|
child: Image.network(
|
||||||
'https://www.prosapp.co/img/logo_prosapp.png',
|
'https://www.prosapp.co/img/logo_prosapp.png',
|
||||||
height: 32,
|
height: 38,
|
||||||
fit: BoxFit.contain,
|
fit: BoxFit.contain,
|
||||||
|
loadingBuilder: (context, child, progress) {
|
||||||
|
if (progress == null) return child;
|
||||||
|
return const SizedBox(
|
||||||
|
height: 38,
|
||||||
|
child: Center(
|
||||||
|
child: SizedBox(
|
||||||
|
width: 20,
|
||||||
|
height: 20,
|
||||||
|
child: CircularProgressIndicator(strokeWidth: 2, color: Color(0xFF42A4EF)),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
},
|
||||||
errorBuilder: (_, __, ___) => const Text(
|
errorBuilder: (_, __, ___) => const Text(
|
||||||
'ProsApp',
|
'ProsApp',
|
||||||
|
textAlign: TextAlign.center,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 16,
|
fontSize: 20,
|
||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
color: Color(0xFF42A4EF),
|
color: Color(0xFF42A4EF),
|
||||||
|
letterSpacing: 0.5,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(height: 8),
|
const SizedBox(height: 10),
|
||||||
const Text(
|
const Text(
|
||||||
'Conecta con profesionales',
|
'Conecta con profesionales',
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
color: Color(0xFF8BAFD4),
|
color: Color(0xFF8BAFD4),
|
||||||
fontSize: 10,
|
fontSize: 10,
|
||||||
letterSpacing: 0.3,
|
letterSpacing: 0.5,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user