Created
January 11, 2023 03:36
-
-
Save josue1dario2/79b2eff03cbb1bf24d0ee2b21efc51dc to your computer and use it in GitHub Desktop.
Logo button
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class LogoButton extends StatelessWidget { | |
const LogoButton({super.key, required this.navigator}); | |
final Widget navigator; | |
@override | |
Widget build(BuildContext context) { | |
Size size = MediaQuery.of(context).size; | |
return MaterialButton( | |
onPressed: () { | |
Navigator.push( | |
context, | |
MaterialPageRoute(builder: (context) => navigator), | |
); | |
}, | |
child: Container( | |
decoration: BoxDecoration( | |
borderRadius: BorderRadius.circular(8), | |
color: const Color.fromARGB(255, 234, 248, 248)), | |
width: size.width * 0.88, //328, | |
height: size.height * 0.26, //184, | |
child: Column( | |
children: [ | |
const SizedBox( | |
height: 43, | |
), | |
Image.asset( | |
'assets/img/group.png', | |
scale: 1.5, | |
), | |
const SizedBox(height: 25), | |
const CustomText( | |
text: 'Crear o asignar operario', | |
size: 16, | |
weight: FontWeight.w500, | |
color: Color(0xFF6197F7)) | |
], | |
), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment