import 'package:flutter/material.dart'; import 'package:google_fonts/google_fonts.dart'; class CustomTitle extends StatelessWidget { const CustomTitle({ super.key, }); @override Widget build(BuildContext context) { return Container( padding: const EdgeInsets.symmetric(horizontal: 20), child: Column( crossAxisAlignment: CrossAxisAlignment.center, children: [ const SizedBox(height: 100), // Añade espacio arriba Image.asset( 'logo.png', width: 60, height: 60, ), const SizedBox(height: 40), // Mantiene el espacio entre el logo y el texto FittedBox( fit: BoxFit.contain, child: Text( "Iniciar sesión", style: GoogleFonts.montserratAlternates( fontSize: 30, color: Colors.black, fontWeight: FontWeight.bold, ), ), ) ], ), ); } }