update
This commit is contained in:
parent
71a289b74c
commit
d4706f5f2e
13 changed files with 86 additions and 10 deletions
34
lib/widgets/customer_menu_widget.dart
Normal file
34
lib/widgets/customer_menu_widget.dart
Normal 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)),
|
||||
),
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue