mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 15:17:31 +00:00
@ -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!,
|
||||
),
|
||||
],
|
||||
),
|
||||
|
Reference in New Issue
Block a user