This commit is contained in:
Patrick Alvin Alcala 2025-02-17 17:08:14 +08:00
parent 71a289b74c
commit d4706f5f2e
13 changed files with 86 additions and 10 deletions

View file

@ -26,7 +26,7 @@ class ButtonWidget extends StatelessWidget {
: ElevatedButton.styleFrom(
foregroundColor: const 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
side: const BorderSide(color: Color.fromRGBO(79, 51, 94, 0.4)), // border color
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(20), // rounded corners
),

View file

@ -0,0 +1,34 @@
import 'package:flutter/material.dart';
class CustomerMenuWidget extends StatelessWidget {
final VoidCallback? onHomePressed;
final VoidCallback? onProfilePressed;
const CustomerMenuWidget({super.key, this.onHomePressed, this.onProfilePressed});
@override
Widget build(BuildContext context) {
return Row(
mainAxisAlignment: MainAxisAlignment.spaceAround,
children: [
GestureDetector(
onTap: onHomePressed,
child: Container(
color: Colors.white,
alignment: Alignment.center,
padding: EdgeInsets.all(24),
child: Text('Home', style: TextStyle(fontSize: 16, fontWeight: FontWeight.bold)),
),
),
GestureDetector(
onTap: onProfilePressed,
child: Container(
color: Colors.white,
alignment: Alignment.center,
padding: EdgeInsets.all(24),
child: Text('Profile', style: TextStyle(fontSize: 16, fontWeight: FontWeight.bold)),
),
),
],
);
}
}

View file

@ -24,7 +24,7 @@ class MenuWidget extends StatelessWidget {
width: MediaQuery.of(context).size.width - 96,
padding: const EdgeInsets.only(top: 16, bottom: 16),
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(12),
borderRadius: BorderRadius.circular(8),
border: Border.all(
color: color != null ? _getColorBasedOnString(color ?? '') : const Color.fromRGBO(255, 255, 255, 0.6),
width: 2),