mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-07-14 17:25:47 +00:00
35 lines
1.0 KiB
Dart
35 lines
1.0 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:flutter_bloc/flutter_bloc.dart';
|
|
import 'package:syncrow_app/features/home/bloc/home_cubit.dart';
|
|
import 'package:syncrow_app/features/shared_widgets/syncrow_logo.dart';
|
|
import 'package:syncrow_app/utils/resource_manager/color_manager.dart';
|
|
|
|
class DefaultAppBar extends StatelessWidget implements PreferredSizeWidget {
|
|
const DefaultAppBar({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return BlocBuilder<HomeCubit, HomeState>(
|
|
builder: (context, state) {
|
|
return AppBar(
|
|
title: const SyncrowLogo(),
|
|
actions: <Widget>[
|
|
IconButton(
|
|
icon: const Icon(Icons.mic),
|
|
onPressed: () {},
|
|
),
|
|
IconButton(
|
|
icon: const Icon(Icons.add_circle,
|
|
color: ColorsManager.primaryColor),
|
|
onPressed: () {},
|
|
),
|
|
],
|
|
);
|
|
},
|
|
);
|
|
}
|
|
|
|
@override
|
|
Size get preferredSize => const Size.fromHeight(50);
|
|
}
|