inserido icone android, logo,ajustada a tela home e login

This commit is contained in:
Reginaldo
2023-03-22 14:56:39 -03:00
parent 25a5cb6f15
commit 954e5aa2bf
21 changed files with 390 additions and 86 deletions

View File

@@ -1,29 +1,46 @@
import 'package:flutter/material.dart';
import 'package:rkm/utils/color_palette.dart';
import '../utils/const_variable.dart';
class ButtonDefault extends StatelessWidget {
var onPressed;
String title;
Color background;
Color textColor;
Color borderColor;
double width;
double height;
ButtonDefault({
required this.onPressed,
required this.title,
this.background = ColorPalette.primary,
this.textColor = ColorPalette.white
this.background = Colors.transparent,
this.textColor = ColorPalette.border,
this.borderColor = ColorPalette.border,
this.width = 100,
this.height = 50,
});
@override
Widget build(BuildContext context) {
return TextButton(
onPressed: onPressed,
style: TextButton.styleFrom(
backgroundColor: background,
foregroundColor: textColor,
),
child: Text(
title
)
return Container(
margin: ConstVariable().marginHightInput,
width: width,
height: height,
child: TextButton(
onPressed: onPressed,
style: TextButton.styleFrom(
backgroundColor: background,
foregroundColor: textColor,
side: BorderSide(width: 3,color: borderColor),
),
child: Text(
title,
style: TextStyle(
fontSize: ConstVariable().fontSizeInput
),
)
),
);
}
}