Skip to content

Instantly share code, notes, and snippets.

@josue1dario2
Created January 11, 2023 03:36
Show Gist options
  • Save josue1dario2/79b2eff03cbb1bf24d0ee2b21efc51dc to your computer and use it in GitHub Desktop.
Save josue1dario2/79b2eff03cbb1bf24d0ee2b21efc51dc to your computer and use it in GitHub Desktop.
Logo button
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