content: // ignore_for_file: unused_local_variable
  
  import 'package:flutter/material.dart';
  import 'package:flutter_riverpod/flutter_riverpod.dart';
  
  import 'full.dart';
  
  /* SNIPPET START */
  
  // An enum representing the filter type
  enum ProductSortType {
    name,
    price,
  }
  
  Widget build(BuildContext context, WidgetRef ref) {
    final products = ref.watch(productsProvider);
    return Scaffold(
      appBar: AppBar(
        title: const Text('Products'),
        actions: [
          DropdownButton<ProductSortType>(
            value: ProductSortType.price,
            onChanged: (value) {},
            items: const [
              DropdownMenuItem(
                value: ProductSortType.name,
                child: Icon(Icons.sort_by_alpha),
              ),
              DropdownMenuItem(
                value: ProductSortType.price,
                child: Icon(Icons.sort),
              ),
            ],
          ),
        ],
      ),
      body: ListView.builder(
        // ... /* SKIP */
        itemBuilder: (c, i) => Container(), /* SKIP END */
      ),
    );
  }
  