Bläddra i källkod

fixing smal stuff

master
jefry 4 år sedan
förälder
incheckning
d3749e2c42
5 ändrade filer med 5 tillägg och 2 borttagningar
  1. +2
    -0
      android/app/build.gradle
  2. +1
    -0
      lib/home.dart
  3. +1
    -0
      lib/main.dart
  4. +0
    -1
      lib/util/dbHandler.dart
  5. +1
    -1
      pubspec.yaml

+ 2
- 0
android/app/build.gradle Visa fil

@@ -63,6 +63,8 @@ android {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig signingConfigs.release
minifyEnabled false
shrinkResources false
}
}
}


+ 1
- 0
lib/home.dart Visa fil

@@ -435,6 +435,7 @@ class _HomeState extends State<Home> {
if(isUserDefined??false){
prefs.setString(keyClass.user, sendingUser.text);
util.showToast("ALERT",'Preparing Data');
await DBHelper.database.setOpenState();
await DBHelper.database.closeDb();
file_Trans_Handler trans = new file_Trans_Handler();
util.showToast("ALERT",'Sending Data');


+ 1
- 0
lib/main.dart Visa fil

@@ -14,6 +14,7 @@ Util util = new Util();
SharedPreferences prefs;
void main()async {
WidgetsFlutterBinding.ensureInitialized();
// SharedPreferences.setMockInitialValues({});
prefs = await SharedPreferences.getInstance();
SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp])
.then((_) {


+ 0
- 1
lib/util/dbHandler.dart Visa fil

@@ -38,7 +38,6 @@ class DBHelper{
String path = join(documentsDirectory.path, "assets.db");
File file = File(path);
print('Database created, ${file.lengthSync()}');
setOpenState();
}

insertAsset(Asset newAsset) async{


+ 1
- 1
pubspec.yaml Visa fil

@@ -13,7 +13,7 @@ description: Application to check assets
# 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: 1.0.0+1
version: 1.0.1+2

environment:
sdk: ">=2.7.0 <3.0.0"


Laddar…
Avbryt
Spara