mirrored_repositories/shopping_cart/lib
import 'package:flutter/material.dart';
import 'package:get/get.dart';

import '../widgets/widgets.dart';
import 'cart_screen.dart';

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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        centerTitle: true,
        title: const Text('Catalog'),
      ),
      body: SafeArea(
        child: Column(
          children: [
            CatalogProducts(),
            ElevatedButton(
              onPressed: () => Get.to(() => const CartScreen(),
                  transition: Transition.cupertino),
              child: const Text('Go to Cart  🛒'),
            ),
          ],
        ),
      ),
    );
  }
}
