mirror of
https://github.com/flutter/samples.git
synced 2025-11-10 23:08:59 +00:00
Flutter 1.17 updates (#432)
* Material text theme updates & flutter pub upgrade (#411) * Beta channel updates (#412) * fix deprecated usages in provider_shopper - beta channel * fix deprecated usages in animations - beta channel * fix deprecated usages in provider_counter - beta * Updates additional samples for beta release (#416) * use headline6 instead of title * fix another title -> headline6 Co-authored-by: Brett Morgan <brett.morgan@gmail.com> Co-authored-by: Andrew Brogdon <RedBrogdon@users.noreply.github.com>
This commit is contained in:
@@ -6,7 +6,7 @@ import 'dart:io';
|
||||
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:file_chooser/file_chooser.dart' as file_choser;
|
||||
import 'package:file_chooser/file_chooser.dart' as file_chooser;
|
||||
import 'package:logging/logging.dart';
|
||||
import 'package:menubar/menubar.dart' as menubar;
|
||||
import 'package:meta/meta.dart';
|
||||
@@ -92,9 +92,14 @@ class UnsplashHomePage extends StatelessWidget {
|
||||
? PhotoDetails(
|
||||
photo: photoSearchModel.selectedPhoto,
|
||||
onPhotoSave: (photo) async {
|
||||
final result = await file_choser.showSavePanel(
|
||||
final result = await file_chooser.showSavePanel(
|
||||
suggestedFileName: '${photo.id}.jpg',
|
||||
allowedFileTypes: ['jpg'],
|
||||
allowedFileTypes: const [
|
||||
file_chooser.FileTypeFilterGroup(
|
||||
label: 'JPGs',
|
||||
fileExtensions: ['jpg'],
|
||||
)
|
||||
],
|
||||
);
|
||||
if (!result.canceled) {
|
||||
final bytes =
|
||||
|
||||
Reference in New Issue
Block a user