mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-09 22:57:21 +00:00
Home page UI
This commit is contained in:
@ -2,7 +2,7 @@ import 'package:flutter/material.dart';
|
||||
import 'package:syncrow_web/utils/color_manager.dart';
|
||||
|
||||
class WebAppBar extends StatelessWidget {
|
||||
final String? title;
|
||||
final Widget? title;
|
||||
final List<Widget>? body;
|
||||
const WebAppBar({super.key,this.title,this.body});
|
||||
|
||||
@ -16,11 +16,13 @@ class WebAppBar extends StatelessWidget {
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
Expanded(
|
||||
child: Text(
|
||||
title!,style: const TextStyle(
|
||||
fontSize: 30,
|
||||
color: Colors.white),)
|
||||
SizedBox(width: 40,),
|
||||
Expanded(
|
||||
child: title!
|
||||
// Text(
|
||||
// title!,style: const TextStyle(
|
||||
// fontSize: 30,
|
||||
// color: Colors.white),)
|
||||
),
|
||||
if (body != null)
|
||||
Expanded(
|
||||
@ -30,26 +32,26 @@ class WebAppBar extends StatelessWidget {
|
||||
children: body!,
|
||||
),
|
||||
),
|
||||
Row(
|
||||
const Row(
|
||||
children: [
|
||||
IconButton(onPressed: () {},
|
||||
icon: const Icon(Icons.apps_sharp,color: Colors.white,)),
|
||||
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(),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
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,)
|
||||
],
|
||||
)
|
||||
],
|
||||
|
@ -6,7 +6,7 @@ import 'menu_sidebar.dart';
|
||||
|
||||
class WebScaffold extends StatelessWidget {
|
||||
final bool enableMenuSideba;
|
||||
final String? appBarTitle;
|
||||
final Widget? appBarTitle;
|
||||
final List<Widget>? appBarBody;
|
||||
final Widget? scaffoldBody;
|
||||
const WebScaffold({super.key,this.appBarTitle,this.appBarBody,this.scaffoldBody,this.enableMenuSideba=true});
|
||||
@ -24,6 +24,7 @@ class WebScaffold extends StatelessWidget {
|
||||
fit: BoxFit.cover,
|
||||
),
|
||||
),
|
||||
Container(color: Colors.white.withOpacity(0.7),),
|
||||
Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||
children: [
|
||||
|
Reference in New Issue
Block a user