initial pages

This commit is contained in:
2023-11-26 07:54:08 -03:00
parent e562891b3c
commit e2c2fa48ce
10 changed files with 265 additions and 114 deletions
+15
View File
@@ -0,0 +1,15 @@
import 'package:flutter/material.dart';
class NcBasePage extends StatelessWidget {
const NcBasePage({super.key, required this.body});
final Widget body;
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: const Color(0xffa600f9),
body: body,
);
}
}
+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(),
),
);
}
}