update
This commit is contained in:
parent
97e2291159
commit
57b8bdc067
17 changed files with 245 additions and 114 deletions
|
|
@ -12,19 +12,19 @@ class ButtonWidget extends StatelessWidget {
|
|||
Widget build(BuildContext context) {
|
||||
return ElevatedButton(
|
||||
style: ElevatedButton.styleFrom(
|
||||
foregroundColor: Color(0xFF8E44AD), // text color
|
||||
backgroundColor: const Color(0xFFE8DAEF), // background color
|
||||
side: const BorderSide(color: Color.fromARGB(55, 255, 255, 255)), // border color
|
||||
foregroundColor: Color.fromRGBO(0, 0, 0, 1), // text color
|
||||
backgroundColor: const Color.fromRGBO(198, 133, 232, 1), // background color
|
||||
side: const BorderSide(color: Color.fromRGBO(79, 51, 94, 1)), // border color
|
||||
shape: RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.circular(26), // rounded corners
|
||||
),
|
||||
minimumSize: Size(MediaQuery.of(context).size.width - 64, 40), // minimum size
|
||||
minimumSize: Size(MediaQuery.of(context).size.width - 96, 40), // minimum size
|
||||
padding: EdgeInsets.symmetric(vertical: 10, horizontal: 16), // padding
|
||||
),
|
||||
onPressed: onPressed,
|
||||
child: Text(
|
||||
text,
|
||||
style: GoogleFonts.outfit(textStyle: const TextStyle(fontSize: 18)),
|
||||
style: GoogleFonts.outfit(textStyle: const TextStyle(fontSize: 16)),
|
||||
));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,15 +16,17 @@ class InputWidget extends StatelessWidget {
|
|||
children: [
|
||||
Text('$label:',
|
||||
style: GoogleFonts.outfit(
|
||||
textStyle: const TextStyle(color: Colors.white, fontSize: 16),
|
||||
textStyle: const TextStyle(color: Colors.white, fontSize: 12, fontWeight: FontWeight.w500),
|
||||
)),
|
||||
const Gap(8),
|
||||
TextField(
|
||||
controller: controller,
|
||||
decoration: InputDecoration(
|
||||
border: OutlineInputBorder(borderRadius: BorderRadius.circular(10)),
|
||||
),
|
||||
style: GoogleFonts.outfit(textStyle: TextStyle(color: Colors.white, fontSize: 16)),
|
||||
filled: true, // Enable filling the background
|
||||
fillColor: Colors.white,
|
||||
border: OutlineInputBorder(borderRadius: BorderRadius.circular(12)),
|
||||
contentPadding: EdgeInsets.symmetric(vertical: 10, horizontal: 24)),
|
||||
style: GoogleFonts.outfit(textStyle: TextStyle(color: const Color.fromRGBO(0, 0, 0, 1), fontSize: 16)),
|
||||
obscureText: password ?? false,
|
||||
),
|
||||
],
|
||||
|
|
|
|||
|
|
@ -14,8 +14,9 @@ class PageBackgroundWidget extends StatelessWidget {
|
|||
gradient: RadialGradient(
|
||||
tileMode: TileMode.clamp,
|
||||
colors: [
|
||||
Color.fromRGBO(132, 84, 125, 1),
|
||||
Color.fromRGBO(96, 48, 90, 1),
|
||||
// Color.fromRGBO(132, 84, 125, 1),
|
||||
// Color.fromRGBO(96, 48, 90, 1),
|
||||
Color.fromRGBO(45, 15, 43, 1),
|
||||
Color.fromRGBO(77, 29, 73, 1),
|
||||
// Color.fromRGBO(241, 220, 223, 1),
|
||||
],
|
||||
|
|
|
|||
|
|
@ -4,12 +4,18 @@ import 'package:google_fonts/google_fonts.dart';
|
|||
class TextWidget extends StatelessWidget {
|
||||
final String text;
|
||||
final double? size;
|
||||
final double? opacity;
|
||||
final bool? bold;
|
||||
|
||||
const TextWidget({super.key, required this.text, this.size});
|
||||
const TextWidget({super.key, required this.text, this.size, this.opacity, this.bold});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Text(text,
|
||||
style: GoogleFonts.outfit(textStyle: TextStyle(color: Color.fromRGBO(255, 255, 255, 1), fontSize: size ?? 32)));
|
||||
style: GoogleFonts.outfit(
|
||||
textStyle: TextStyle(
|
||||
color: Color.fromRGBO(255, 255, 255, opacity ?? 1),
|
||||
fontSize: size ?? 32,
|
||||
fontWeight: bold == true ? FontWeight.bold : FontWeight.normal)));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue