inserido icone android, logo,ajustada a tela home e login
This commit is contained in:
@@ -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
|
||||
),
|
||||
)
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user