From 205920ffcd501435d9c77c8499c8e428510738a0 Mon Sep 17 00:00:00 2001 From: flofriday Date: Fri, 21 Aug 2020 13:48:52 +0200 Subject: [PATCH] Update version to 0.4.0 --- lib/main.dart | 47 ----------------------------------------------- pubspec.yaml | 4 +--- 2 files changed, 1 insertion(+), 50 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index 0ddfbc4..dcecab1 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -1,11 +1,8 @@ -import 'dart:convert'; - import 'package:flutter/material.dart'; import 'package:shared_preferences/shared_preferences.dart'; import 'package:tu_wien_addressbook/screens/person_search.dart'; import 'package:tu_wien_addressbook/screens/settings_screen.dart'; import 'package:tu_wien_addressbook/models/person.dart'; -import 'package:tu_wien_addressbook/screens/person_screen.dart'; void main() => runApp(App()); @@ -20,7 +17,6 @@ class App extends StatelessWidget { primarySwatch: Colors.blueGrey, scaffoldBackgroundColor: Colors.blueGrey[50], ), - //theme: addressTheme, debugShowCheckedModeBanner: false, home: MainPage(title: 'TU Addressbuch'), ); @@ -75,49 +71,6 @@ class _MainPageState extends State { ], ), body: HomeScreen(), - /*body: Builder(builder: (BuildContext context) { - if (person != null) { - return PersonScreen(person); - } - - // No person in memory so load one from shared preferences - return FutureBuilder( - future: futurePrefs, - builder: (BuildContext context, - AsyncSnapshot snapshot) { - if (!snapshot.hasData) { - return Center( - child: Text('Lade...'), - ); - } - - SharedPreferences prefs = snapshot.data; - - try { - this.person = Person.fromJson( - jsonDecode(prefs.getString("currentperson"))); - return PersonScreen(person); - } catch (e) { - print(e); - return Center( - child: Text('Suche eine Person die du kennst...')); - } - }); - }),*/ - /*floatingActionButton: FloatingActionButton( - onPressed: () async { - Person p = - await showSearch(context: context, delegate: PersonSearch()); - if (p == null) return; - setState(() { - this.person = p; - }); - SharedPreferences prefs = await futurePrefs; - String json = jsonEncode(person.toJson()); - await prefs.setString("currentperson", json); - }, - child: Icon(Icons.search), - ),*/ ); } } diff --git a/pubspec.yaml b/pubspec.yaml index 5b42948..c2b76fb 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -11,7 +11,7 @@ description: A new Flutter project. # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. # Read more about iOS versioning at # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html -version: 0.3.0 +version: 0.4.0 environment: @@ -43,8 +43,6 @@ dependencies: # To share text with other apps share: '>=0.6.4+3 <2.0.0' - - dev_dependencies: flutter_test: sdk: flutter