mirrored_repositories/flutter-furniture-shop-app-ui/lib/screens
import 'package:flutter/material.dart';
import 'package:flutter_svg/svg.dart';

// Custom import
import '../../constants.dart';
import 'components/body.dart';

class ProductsScreen extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: kPrimaryColor,
      appBar: buildAppBar(),
      body: Body(),
    );
  }
}

AppBar buildAppBar() {
  var iconButton = IconButton(
    icon: SvgPicture.asset('assets/icons/notification.svg'),
    onPressed: () {},
  );
  return AppBar(
    elevation: 0,
    title: Text('Dashboard'),
    centerTitle: false,
    actions: <Widget>[
      iconButton,
    ],
  );
}
