From 1f1c26ecf2922c9eef037b8873870f184107c9ce Mon Sep 17 00:00:00 2001 From: Pierre-Louis <6655696+guidezpl@users.noreply.github.com> Date: Fri, 12 Jan 2024 10:21:11 +0100 Subject: [PATCH] Implement redirect (#1073) ## Description - Add redirect - Add link to hosted web version (https://gallery-flutter-dev.firebaseapp.com) to README ## Issues https://github.com/flutter/gallery/issues/1072 --------- Co-authored-by: Parker Lougheed --- README.md | 25 ++++++++++--------------- firebase.json | 9 ++++++++- 2 files changed, 18 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index a420b7e0bc..73dbd0764b 100644 --- a/README.md +++ b/README.md @@ -3,28 +3,23 @@ **NOTE**: The Flutter Gallery is now deprecated, and no longer being active maintained. Flutter Gallery was a resource to help developers evaluate and use Flutter. -It is now being used primarily for testing. +It is now being used primarily for testing. For posterity, the web version +remains [hosted here](https://gallery-flutter-dev.web.app). We recommend Flutter developers check out the following resources: -* **Wonderous**: -( -[web demo](https://wonderous.app/web/), +* **Wonderous** +([web demo](https://wonderous.app/web/), [App Store](https://apps.apple.com/us/app/wonderous/id1612491897), [Google Play](https://play.google.com/store/apps/details?id=com.gskinner.flutter.wonders), -[source code](https://github.com/gskinnerTeam/flutter-wonderous-app) -):
+[source code](https://github.com/gskinnerTeam/flutter-wonderous-app)):
A Flutter app that showcases Flutter's support for elegant design and rich animations. -* **Material 3 Gallery** -( -[web demo](https://flutter.github.io/samples/web/material_3_demo/), -[source code](https://github.com/flutter/samples/tree/main/material_3_demo) -):
+* **Material 3 Demo** +([web demo](https://flutter.github.io/samples/web/material_3_demo/), +[source code](https://github.com/flutter/samples/tree/main/material_3_demo)):
A Flutter app that showcases Material 3 features in the Flutter Material library. -* **Flutter Samples**: -( -[source code](https://github.com/flutter/samples) -):
+* **Flutter Samples** +([samples](https://flutter.github.io/samples), [source code](https://github.com/flutter/samples)):
A collection of open source samples that illustrate best practices for Flutter. diff --git a/firebase.json b/firebase.json index 814a6a8f2b..4e78957575 100644 --- a/firebase.json +++ b/firebase.json @@ -12,6 +12,13 @@ { "target": "prod", "public": "build/web", + "redirects": [ + { + "source": "/", + "destination": "https://docs.flutter.dev/gallery", + "type": 301 + } + ], "ignore": [ "firebase.json", "**/.*", @@ -19,4 +26,4 @@ ] } ] -} \ No newline at end of file +}