refactor: change endpoint
This commit is contained in:
parent
1622082f5c
commit
9b6131dd34
|
|
@ -2,14 +2,20 @@ class AppConstant {
|
||||||
static const String appName = 'Kebun Pintar';
|
static const String appName = 'Kebun Pintar';
|
||||||
static const String appVersion = '1.0.0';
|
static const String appVersion = '1.0.0';
|
||||||
|
|
||||||
static const String baseUrl = 'https://jx027dj4-3333.asse.devtunnels.ms';
|
static const String baseUrl = 'http://54.196.58.97:3333';
|
||||||
|
|
||||||
static const String mqttServer = 'armadillo.rmq.cloudamqp.com';
|
static const String mqttServer = 'armadillo.rmq.cloudamqp.com';
|
||||||
static const String mqttUsername = 'obyskxhx:obyskxhx';
|
static const String mqttUsername = 'obyskxhx:obyskxhx';
|
||||||
static const String mqttPassword = 'Fe_3_tBuwmc8vMMqT2hYiboTsBlBmPz1';
|
static const String mqttPassword = 'Fe_3_tBuwmc8vMMqT2hYiboTsBlBmPz1';
|
||||||
|
|
||||||
static const String soilTempInfo =
|
static const String soilTempInfo =
|
||||||
'Suhu tanah mengacu pada suhu tanah di permukaan atau pada kedalaman tertentu, yang berperan penting dalam pertumbuhan tanaman dan proses pertanian. Suhu ini memengaruhi perkecambahan benih, aktivitas akar, serta penyerapan air dan nutrisi, yang semuanya esensial bagi perkembangan tanaman. Selain itu, suhu tanah juga memengaruhi aktivitas mikroorganisme yang berkontribusi pada kesuburan tanah. Dalam pertanian pintar, sensor suhu tanah sering digunakan untuk memantau dan mengoptimalkan kondisi tanah, memastikan tanaman tumbuh dalam rentang suhu yang ideal.';
|
'Suhu tanah mengacu pada suhu tanah di permukaan atau pada kedalaman tertentu, '
|
||||||
|
'yang berperan penting dalam pertumbuhan tanaman dan proses pertanian. '
|
||||||
|
'Suhu ini memengaruhi perkecambahan benih, aktivitas akar, serta penyerapan air dan nutrisi, '
|
||||||
|
'yang semuanya esensial bagi perkembangan tanaman. Selain itu, '
|
||||||
|
'suhu tanah juga memengaruhi aktivitas mikroorganisme yang berkontribusi pada kesuburan tanah. '
|
||||||
|
'Dalam pertanian pintar, sensor suhu tanah sering digunakan untuk memantau dan mengoptimalkan '
|
||||||
|
'kondisi tanah, memastikan tanaman tumbuh dalam rentang suhu yang ideal.';
|
||||||
|
|
||||||
static const String npk1 = 'npk1';
|
static const String npk1 = 'npk1';
|
||||||
static const String npk2 = 'npk2';
|
static const String npk2 = 'npk2';
|
||||||
|
|
|
||||||
|
|
@ -77,11 +77,11 @@ class LoginScreen extends StatelessWidget {
|
||||||
text: 'Login',
|
text: 'Login',
|
||||||
),
|
),
|
||||||
SizedBox(height: 24),
|
SizedBox(height: 24),
|
||||||
AppButton(
|
// AppButton(
|
||||||
onPressed: () {
|
// onPressed: () {
|
||||||
authP.getAccessToken();
|
// authP.getAccessToken();
|
||||||
},
|
// },
|
||||||
text: 'Get Access Token'),
|
// text: 'Get Access Token'),
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -98,7 +98,7 @@ class HomeProvider extends ChangeNotifier {
|
||||||
if (kDebugMode) {
|
if (kDebugMode) {
|
||||||
print('Get Latest Error: $e');
|
print('Get Latest Error: $e');
|
||||||
}
|
}
|
||||||
dataState = ResultState.error;
|
dataState = ResultState.hasData;
|
||||||
notifyListeners();
|
notifyListeners();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
import 'package:agrilink_vocpro/core/constant/app_color.dart';
|
|
||||||
import 'package:agrilink_vocpro/core/extension/extention.dart';
|
import 'package:agrilink_vocpro/core/extension/extention.dart';
|
||||||
import 'package:agrilink_vocpro/core/route/app_route.dart';
|
import 'package:agrilink_vocpro/core/route/app_route.dart';
|
||||||
import 'package:agrilink_vocpro/core/state/result_state.dart';
|
import 'package:agrilink_vocpro/core/state/result_state.dart';
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
import 'package:agrilink_vocpro/core/constant/app_color.dart';
|
import 'package:agrilink_vocpro/core/constant/app_color.dart';
|
||||||
import 'package:agrilink_vocpro/core/extension/extention.dart';
|
|
||||||
import 'package:agrilink_vocpro/core/route/app_route.dart';
|
import 'package:agrilink_vocpro/core/route/app_route.dart';
|
||||||
import 'package:agrilink_vocpro/core/state/result_state.dart';
|
import 'package:agrilink_vocpro/core/state/result_state.dart';
|
||||||
import 'package:agrilink_vocpro/features/home/provider/home_provider.dart';
|
import 'package:agrilink_vocpro/features/home/provider/home_provider.dart';
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user