Merged with dev

This commit is contained in:
Abdullah Alassaf
2024-08-08 14:07:11 +03:00
16 changed files with 643 additions and 741 deletions

View File

@ -2,28 +2,23 @@ import 'package:flutter/material.dart';
import 'package:syncrow_web/utils/color_manager.dart';
class WebAppBar extends StatelessWidget {
final Widget? title;
final List<Widget>? body;
const WebAppBar({super.key,this.title,this.body});
final Widget? title;
final List<Widget>? body;
const WebAppBar({super.key, this.title, this.body});
@override
Widget build(BuildContext context) {
return Container(
height: 120,
decoration: const BoxDecoration(color:ColorsManager.secondaryColor ),
decoration: const BoxDecoration(color: ColorsManager.secondaryColor),
padding: const EdgeInsets.all(10),
child: Expanded(
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
SizedBox(width: 40,),
Expanded(
child: title!
// Text(
// title!,style: const TextStyle(
// fontSize: 30,
// color: Colors.white),)
),
child: title!,
),
if (body != null)
Expanded(
flex: 2,
@ -32,31 +27,36 @@ class WebAppBar extends StatelessWidget {
children: body!,
),
),
const Row(
Row(
children: [
SizedBox(width: 10,),
SizedBox.square(
dimension: 40,
child: CircleAvatar(
backgroundColor: Colors.white,
child: SizedBox.square(
dimension: 35,
child: CircleAvatar(
backgroundColor: Colors.grey,
child: FlutterLogo(),
),
),
),
),
const SizedBox(width: 10,),
const Text('mohamamd alnemer ',style: TextStyle(fontSize: 16,color: Colors.white),),
Icon(Icons.arrow_drop_down,color: ColorsManager.whiteColors,),
SizedBox(width: 40,)
const SizedBox(
width: 10,
),
const SizedBox.square(
dimension: 40,
child: CircleAvatar(
backgroundColor: Colors.white,
child: SizedBox.square(
dimension: 35,
child: CircleAvatar(
backgroundColor: Colors.grey,
child: FlutterLogo(),
),
),
),
),
const SizedBox(
width: 10,
),
Text(
'mohamamd alnemer ',
style: Theme.of(context).textTheme.bodyLarge,
),
],
)
],
),
) ,
),
);
}
}
}