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:
@@ -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(),
|
||||
);
|
||||
},
|
||||
),
|
||||
])
|
||||
]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user