mirrored_repositories/pixabay_flutter_demo

import 'package:flutter/material.dart';
import 'package:flutter_showcase_app/ui/detail/detail_page.dart';
import 'package:flutter_showcase_app/ui/downloads/download_progress.dart';
import 'package:flutter_showcase_app/ui/downloads/downloads.dart';
import 'package:flutter_showcase_app/ui/favourites/favourites.dart';
import 'package:flutter_showcase_app/ui/search/home.dart';
import 'package:flutter_showcase_app/ui/splash/splash.dart';
import 'package:flutter_showcase_app/utils/utils.dart';
import 'constants/routes_const.dart' as rc;

class Routes {
  static final routes = <String, WidgetBuilder>{
    rc.Routes.splash: (BuildContext context) => SplashScreen(),
    rc.Routes.search: (BuildContext context) => HomeScreen(),
    rc.Routes.detail: (BuildContext context) => DetailScreen(),
    rc.Routes.favourites: (BuildContext context) => FavouritesScreen(),
    rc.Routes.downloads: (BuildContext context) => DownloadsScreen(),
    rc.Routes.downloadProgress: (BuildContext context) => DownloadProgressScreen(),
  };
}
