started initial page

This commit is contained in:
2023-08-27 09:38:28 -03:00
parent 47394d763d
commit 5d558032c0
9 changed files with 128 additions and 114 deletions
+30
View File
@@ -0,0 +1,30 @@
import 'package:flutter/material.dart';
import 'package:velocity_x/velocity_x.dart';
class NcButton extends StatelessWidget {
const NcButton({super.key, required this.caption, required this.backgroundColor, required this.captionColor, this.onPressed});
final String caption;
final Color backgroundColor;
final Color captionColor;
final void Function()? onPressed;
@override
Widget build(BuildContext context) {
return SizedBox(
width: 500,
height: 100,
child: ElevatedButton(
onPressed: onPressed,
style: ElevatedButton.styleFrom(
backgroundColor: backgroundColor,
foregroundColor: captionColor,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(10),
),
),
child: caption.text.xl4.make(),
),
);
}
}