mirrored_repositories/office_store_getX/lib/src/view
import 'package:flutter/material.dart';
import 'package:office_app_store/src/view/widget/empty_widget.dart';
import 'package:office_app_store/src/view/widget/furniture_list_view.dart';
import '../../../core/app_style.dart';
import 'home_screen.dart';

class FavoriteScreen extends StatelessWidget {
  const FavoriteScreen({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text("Favorites", style: h2Style),
      ),
      body: Padding(
        padding: const EdgeInsets.all(15),
        child: SingleChildScrollView(
          child: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            children: [
              controller.favoriteFurnitureList.isNotEmpty
                  ? FurnitureListView(
                      isHorizontal: false,
                      furnitureList: controller.favoriteFurnitureList,
                    )
                  : const EmptyWidget(type: EmptyWidgetType.favorite, title: "Empty")
            ],
          ),
        ),
      ),
    );
  }
}
