mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 07:07:19 +00:00
@ -21,7 +21,7 @@ class DefaultContainer extends StatelessWidget {
|
||||
final EdgeInsets? margin;
|
||||
final EdgeInsets? padding;
|
||||
final Color? color;
|
||||
final void Function()? onTap;
|
||||
final Function()? onTap;
|
||||
final BorderRadius? borderRadius;
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
@ -1,7 +1,6 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||
import 'package:flutter_svg/flutter_svg.dart';
|
||||
import 'package:syncrow_web/pages/auth/model/user_model.dart';
|
||||
import 'package:syncrow_web/pages/home/bloc/home_bloc.dart';
|
||||
import 'package:syncrow_web/pages/home/bloc/home_state.dart';
|
||||
import 'package:syncrow_web/utils/color_manager.dart';
|
||||
@ -50,7 +49,7 @@ class DesktopAppBar extends StatelessWidget {
|
||||
final Widget? title;
|
||||
final Widget? centerBody;
|
||||
final Widget? rightBody;
|
||||
final UserModel? user;
|
||||
final dynamic user;
|
||||
|
||||
const DesktopAppBar({
|
||||
super.key,
|
||||
@ -76,7 +75,7 @@ class DesktopAppBar extends StatelessWidget {
|
||||
if (centerBody != null)
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(left: 80),
|
||||
child: centerBody,
|
||||
child: centerBody!,
|
||||
),
|
||||
],
|
||||
),
|
||||
@ -103,7 +102,7 @@ class TabletAppBar extends StatelessWidget {
|
||||
final Widget? title;
|
||||
final Widget? centerBody;
|
||||
final Widget? rightBody;
|
||||
final UserModel? user;
|
||||
final dynamic user;
|
||||
|
||||
const TabletAppBar({
|
||||
super.key,
|
||||
@ -150,7 +149,7 @@ class MobileAppBar extends StatelessWidget {
|
||||
final Widget? title;
|
||||
final Widget? centerBody;
|
||||
final Widget? rightBody;
|
||||
final UserModel? user;
|
||||
final dynamic user;
|
||||
|
||||
const MobileAppBar({
|
||||
super.key,
|
||||
@ -183,12 +182,12 @@ class MobileAppBar extends StatelessWidget {
|
||||
if (centerBody != null)
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(top: 8),
|
||||
child: centerBody,
|
||||
child: centerBody!,
|
||||
),
|
||||
if (rightBody != null)
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(top: 8),
|
||||
child: rightBody,
|
||||
child: rightBody!,
|
||||
),
|
||||
],
|
||||
),
|
||||
|
@ -1,9 +1,10 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:syncrow_web/utils/constants/assets.dart';
|
||||
import 'package:syncrow_web/utils/helpers/responsice_layout_helper/responsive_layout_helper.dart';
|
||||
import 'package:syncrow_web/web_layout/menu_sidebar.dart';
|
||||
import 'package:syncrow_web/web_layout/web_app_bar.dart';
|
||||
|
||||
import 'menu_sidebar.dart';
|
||||
|
||||
class WebScaffold extends StatelessWidget with HelperResponsiveLayout {
|
||||
final bool enableMenuSidebar;
|
||||
final Widget? appBarTitle;
|
||||
|
Reference in New Issue
Block a user