diff --git a/lib/AddPage.dart b/lib/AddPage.dart index 65045c6..194e47b 100644 --- a/lib/AddPage.dart +++ b/lib/AddPage.dart @@ -108,38 +108,3 @@ class _AddScreenState extends State { ); } } - -/*import 'package:flutter/material.dart'; - -class AddScreen extends StatelessWidget { - const AddScreen({super.key}); - - @override - Widget build(BuildContext context) { - return Scaffold( - appBar: AppBar( - title: Text('Neues Element hinzufügen'), - ), - body: Column( - children: [ - TextFormField( - decoration: InputDecoration(labelText: 'Titel'), - ), - TextFormField( - decoration: InputDecoration(labelText: 'Beschreibung'), - ), - TextFormField( - decoration: InputDecoration(labelText: 'Bild'), - ), - ElevatedButton( - onPressed: () { - // Fügen Sie hier die Logik zum Hinzufügen eines neuen Elements hinzu - Navigator.pop(context); - }, - child: Text('Hinzufügen'), - ), - ], - ), - ); - } -}*/ diff --git a/lib/DetailPage.dart b/lib/DetailPage.dart index 11b775d..b9c008f 100644 --- a/lib/DetailPage.dart +++ b/lib/DetailPage.dart @@ -46,33 +46,6 @@ class DetailPage extends StatelessWidget { ], ), ), - /* - body: Column( - children: [ - Container( - padding: const EdgeInsets.all(8.0), - child: image, - ), - Container( - padding: const EdgeInsets.all(8.0), - child: Text( - title, - style: const TextStyle( - fontSize: 24, - ), - ), - ), - Container( - padding: const EdgeInsets.all(8.0), - child: Text( - description, - style: const TextStyle( - fontSize: 18, - ), - ), - ), - ], - ),*/ ); } } diff --git a/lib/home.dart b/lib/home.dart index 5582c07..dc5ea63 100644 --- a/lib/home.dart +++ b/lib/home.dart @@ -23,20 +23,6 @@ class _MyHomePageState extends State { _selectedIndex = index; }); } - - int _counter = 0; - - void _incrementCounter() { - setState(() { - // This call to setState tells the Flutter framework that something has - // changed in this State, which causes it to rerun the build method below - // so that the display can reflect the updated values. If we changed - // _counter without calling setState(), then the build method would not be - // called again, and so nothing would appear to happen. - _counter++; - }); - } - void setLogin(bool value) { setState(() { login = value; diff --git a/pubspec.lock b/pubspec.lock index e9b9197..eb98ba2 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -36,6 +36,13 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "1.16.0" + cross_file: + dependency: transitive + description: + name: cross_file + url: "https://pub.dartlang.org" + source: hosted + version: "0.3.3+4" cupertino_icons: dependency: "direct main" description: @@ -62,11 +69,79 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "2.0.1" + flutter_plugin_android_lifecycle: + dependency: transitive + description: + name: flutter_plugin_android_lifecycle + url: "https://pub.dartlang.org" + source: hosted + version: "2.0.8" flutter_test: dependency: "direct dev" description: flutter source: sdk version: "0.0.0" + flutter_web_plugins: + dependency: transitive + description: flutter + source: sdk + version: "0.0.0" + http: + dependency: transitive + description: + name: http + url: "https://pub.dartlang.org" + source: hosted + version: "0.13.5" + http_parser: + dependency: transitive + description: + name: http_parser + url: "https://pub.dartlang.org" + source: hosted + version: "4.0.2" + image_picker: + dependency: "direct main" + description: + name: image_picker + url: "https://pub.dartlang.org" + source: hosted + version: "0.8.6+3" + image_picker_android: + dependency: transitive + description: + name: image_picker_android + url: "https://pub.dartlang.org" + source: hosted + version: "0.8.5+7" + image_picker_for_web: + dependency: transitive + description: + name: image_picker_for_web + url: "https://pub.dartlang.org" + source: hosted + version: "2.1.11" + image_picker_ios: + dependency: transitive + description: + name: image_picker_ios + url: "https://pub.dartlang.org" + source: hosted + version: "0.8.6+9" + image_picker_platform_interface: + dependency: transitive + description: + name: image_picker_platform_interface + url: "https://pub.dartlang.org" + source: hosted + version: "2.6.3" + js: + dependency: transitive + description: + name: js + url: "https://pub.dartlang.org" + source: hosted + version: "0.6.4" lints: dependency: transitive description: @@ -102,6 +177,13 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "1.8.2" + plugin_platform_interface: + dependency: transitive + description: + name: plugin_platform_interface + url: "https://pub.dartlang.org" + source: hosted + version: "2.1.4" sky_engine: dependency: transitive description: flutter @@ -149,6 +231,13 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "0.4.12" + typed_data: + dependency: transitive + description: + name: typed_data + url: "https://pub.dartlang.org" + source: hosted + version: "1.3.1" vector_math: dependency: transitive description: @@ -158,3 +247,4 @@ packages: version: "2.1.2" sdks: dart: ">=2.18.2 <3.0.0" + flutter: ">=3.0.0" diff --git a/pubspec.yaml b/pubspec.yaml index 96b0a42..a833461 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -36,6 +36,7 @@ dependencies: # The following adds the Cupertino Icons font to your application. # Use with the CupertinoIcons class for iOS style icons. cupertino_icons: ^1.0.2 + image_picker: ^0.8.6+3 dev_dependencies: flutter_test: