1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-13 19:08:41 +00:00

[ Fixed Issue #667 ] Add Google and Unsplash terms links to experimental/desktop_photo_search (#678)

This commit is contained in:
Satyam Goyal
2021-01-28 10:14:47 +05:30
committed by GitHub
parent 9b631a2184
commit 192dc62b93
4 changed files with 112 additions and 1 deletions

View File

@@ -15,6 +15,7 @@ import 'package:provider/provider.dart';
import 'src/model/photo_search_model.dart';
import 'src/unsplash/unsplash.dart';
import 'src/widgets/about_dialog.dart';
import 'src/widgets/photo_details.dart';
import 'src/widgets/photo_search_dialog.dart';
import 'src/widgets/split.dart';
@@ -75,6 +76,17 @@ class UnsplashHomePage extends StatelessWidget {
);
},
),
]),
menubar.Submenu(label: 'About', children: [
menubar.MenuItem(
label: 'About ...',
onClicked: () {
showDialog<void>(
context: context,
builder: (context) => PolicyDialog(),
);
},
),
])
]);