mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-07-15 17:47:28 +00:00
37 lines
1.0 KiB
Dart
37 lines
1.0 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:flutter_bloc/flutter_bloc.dart';
|
|
import 'package:syncrow_app/features/app_layout/bloc/nav_cubit.dart';
|
|
import 'package:syncrow_app/utils/resource_manager/assets_manager.dart';
|
|
|
|
class AppBody extends StatelessWidget {
|
|
const AppBody({
|
|
super.key,
|
|
});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return BlocBuilder<NavCubit, NavState>(
|
|
builder: (context, state) {
|
|
return Container(
|
|
width: MediaQuery.sizeOf(context).width,
|
|
height: MediaQuery.sizeOf(context).height,
|
|
decoration: const BoxDecoration(
|
|
image: DecorationImage(
|
|
image: AssetImage(
|
|
ImageManager.background,
|
|
),
|
|
fit: BoxFit.cover,
|
|
opacity: 0.4,
|
|
),
|
|
),
|
|
child: Padding(
|
|
padding: const EdgeInsets.only(
|
|
top: 60, right: 15, left: 15, bottom: 100),
|
|
child: NavCubit.of(context).currentPage,
|
|
),
|
|
);
|
|
},
|
|
);
|
|
}
|
|
}
|