mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 07:07:19 +00:00
formatted all files.
This commit is contained in:
@ -21,7 +21,7 @@ class DefaultContainer extends StatelessWidget {
|
||||
final EdgeInsets? margin;
|
||||
final EdgeInsets? padding;
|
||||
final Color? color;
|
||||
final Function()? onTap;
|
||||
final void Function()? onTap;
|
||||
final BorderRadius? borderRadius;
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
@ -1,6 +1,7 @@
|
||||
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';
|
||||
@ -49,7 +50,7 @@ class DesktopAppBar extends StatelessWidget {
|
||||
final Widget? title;
|
||||
final Widget? centerBody;
|
||||
final Widget? rightBody;
|
||||
final dynamic user;
|
||||
final UserModel? user;
|
||||
|
||||
const DesktopAppBar({
|
||||
super.key,
|
||||
@ -75,7 +76,7 @@ class DesktopAppBar extends StatelessWidget {
|
||||
if (centerBody != null)
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(left: 80),
|
||||
child: centerBody!,
|
||||
child: centerBody,
|
||||
),
|
||||
],
|
||||
),
|
||||
@ -102,7 +103,7 @@ class TabletAppBar extends StatelessWidget {
|
||||
final Widget? title;
|
||||
final Widget? centerBody;
|
||||
final Widget? rightBody;
|
||||
final dynamic user;
|
||||
final UserModel? user;
|
||||
|
||||
const TabletAppBar({
|
||||
super.key,
|
||||
@ -149,7 +150,7 @@ class MobileAppBar extends StatelessWidget {
|
||||
final Widget? title;
|
||||
final Widget? centerBody;
|
||||
final Widget? rightBody;
|
||||
final dynamic user;
|
||||
final UserModel? user;
|
||||
|
||||
const MobileAppBar({
|
||||
super.key,
|
||||
@ -182,12 +183,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,10 +1,9 @@
|
||||
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