Skip to content

Commit 23df120

Browse files
committed
feat: update storage to latest versions
1 parent 967bea4 commit 23df120

File tree

13 files changed

+48
-377
lines changed

13 files changed

+48
-377
lines changed

cloud_functions/macos/Runner/GoogleService-Info.plist

Lines changed: 0 additions & 38 deletions
This file was deleted.

cloud_functions/macos/firebase_app_id_file.json

Lines changed: 0 additions & 7 deletions
This file was deleted.

performance/lib/firebase_options.dart

Lines changed: 0 additions & 96 deletions
This file was deleted.

remote_config/lib/firebase_options.dart

Lines changed: 0 additions & 74 deletions
This file was deleted.

storage/lib/app.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ import 'package:storage/src/page/home.dart';
33
import 'package:storage/src/page/library.dart';
44

55
class App extends StatelessWidget {
6-
const App({Key? key}) : super(key: key);
6+
const App({super.key});
77
// const App({Key? key, required this.camera}) : super(key: key);
88

99
@override
1010
Widget build(BuildContext context) {
1111
return MaterialApp(
1212
initialRoute: '/',
1313
routes: {
14-
'/': (context) => HomeScreen(),
14+
'/': (context) => const HomeScreen(),
1515
'/library': (context) => const LibraryPage()
1616
},
1717
);

storage/lib/firebase_options.dart

Lines changed: 0 additions & 74 deletions
This file was deleted.

storage/lib/main.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ void main() async {
1414
// final camera = cameras.first;
1515

1616
// runApp(App(camera: camera));
17-
runApp(App());
17+
runApp(const App());
1818
}

storage/lib/src/page/home.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ class _HomeScreenState extends State<HomeScreen> {
4545
children: [
4646
ElevatedButton(
4747
onPressed: () async {
48-
final _imageName = _image!.path.split('/').last;
48+
final imageName = _image!.path.split('/').last;
4949

5050
// create a new reference in your Firebase Cloud Storage
5151
final newImageRef =
52-
_storage.child('images/$_imageName');
52+
_storage.child('images/$imageName');
5353

5454
try {
5555
// put a file at this references location

storage/lib/src/page/library.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import 'package:flutter/material.dart';
55

66
/// Retrieving files from Firebase Storage is done in this widget
77
class LibraryPage extends StatefulWidget {
8-
const LibraryPage({Key? key}) : super(key: key);
8+
const LibraryPage({super.key});
99

1010
@override
1111
State<LibraryPage> createState() => _LibraryPageState();

0 commit comments

Comments
 (0)