mirror of
https://github.com/supanadit/geo-smart-app.git
synced 2025-01-31 21:18:37 +00:00
fix: package name
This commit is contained in:
parent
750dc08b25
commit
3f9a75ec73
@ -6,7 +6,7 @@ plugins {
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.example.geosmart"
|
||||
namespace = "com.supanadit.geosmart"
|
||||
compileSdk = flutter.compileSdkVersion
|
||||
ndkVersion = flutter.ndkVersion
|
||||
|
||||
@ -21,7 +21,7 @@ android {
|
||||
|
||||
defaultConfig {
|
||||
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
|
||||
applicationId = "com.example.geosmart"
|
||||
applicationId = "com.supanadit.geosmart"
|
||||
// You can update the following values to match your application needs.
|
||||
// For more information, see: https://flutter.dev/to/review-gradle-config.
|
||||
minSdk = flutter.minSdkVersion
|
||||
|
@ -4,7 +4,7 @@
|
||||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
|
||||
|
||||
<application
|
||||
android:label="geosmart"
|
||||
android:label="Geo Smart App"
|
||||
android:name="${applicationName}"
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
android:usesCleartextTraffic="true">
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.example.geosmart
|
||||
package com.supanadit.geosmart
|
||||
|
||||
import io.flutter.embedding.android.FlutterActivity
|
||||
|
@ -1,5 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="app_name">Geo Smart App</string>
|
||||
<string name="api_key">YOUR_API_KEY</string>
|
||||
<string name="api_key">AIzaSyDFr0vWhicDGxcGfbomaoMhxvXHyvjwbFM</string>
|
||||
</resources>
|
@ -7,11 +7,9 @@ import 'package:geosmart/service/setting_service.dart';
|
||||
|
||||
class AuthenticationBloc
|
||||
extends Bloc<AuthenticationEvent, AuthenticationState> {
|
||||
// final Alice alice;
|
||||
final Dio dio;
|
||||
|
||||
AuthenticationBloc({
|
||||
// @required this.alice,
|
||||
required this.dio,
|
||||
}) : super(AuthenticationInitial()) {
|
||||
on<AuthenticationStarted>((event, emit) async {
|
||||
|
@ -6,7 +6,8 @@ class StartupPage extends StatelessWidget {
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
body: Center(
|
||||
child: Container(
|
||||
child: SizedBox(
|
||||
height: 50,
|
||||
child: Column(
|
||||
children: <Widget>[
|
||||
Loader(),
|
||||
@ -16,7 +17,6 @@ class StartupPage extends StatelessWidget {
|
||||
Text("Preparing System")
|
||||
],
|
||||
),
|
||||
height: 50,
|
||||
),
|
||||
),
|
||||
);
|
||||
|
@ -17,14 +17,14 @@ class SettingService {
|
||||
}
|
||||
|
||||
Future<SettingModel> clearSetting() async {
|
||||
SharedPreferences sharedPreferences = await this.getSharedPreferences();
|
||||
SharedPreferences sharedPreferences = await getSharedPreferences();
|
||||
sharedPreferences.remove(_host);
|
||||
sharedPreferences.remove(_id);
|
||||
return await getSetting();
|
||||
}
|
||||
|
||||
Future<SettingModel> getSetting() async {
|
||||
SharedPreferences sharedPreferences = await this.getSharedPreferences();
|
||||
SharedPreferences sharedPreferences = await getSharedPreferences();
|
||||
return SettingModel(
|
||||
sharedPreferences.getString(_host) ?? '',
|
||||
sharedPreferences.getString(_id) ?? '',
|
||||
|
Loading…
Reference in New Issue
Block a user