| @@ -9,7 +9,7 @@ part of 'rest_client.dart'; | |||
| class _RestClient implements RestClient { | |||
| _RestClient(this._dio, {this.baseUrl}) { | |||
| ArgumentError.checkNotNull(_dio, '_dio'); | |||
| this.baseUrl ??= 'http://tpf.aztrace.vn'; | |||
| this.baseUrl ??= 'https://tpf.aztrace.vn'; | |||
| } | |||
| final Dio _dio; | |||
| @@ -136,7 +136,7 @@ class _InfinityViewState extends State<InfinityView> { | |||
| return Center(child: Text(state.errorString)); | |||
| } else if (state is NotiSuccess) { | |||
| if (state.items.isEmpty) { | |||
| return Center(child: Text("Dữ liệu rỗng")); | |||
| return Center(child: Text("Không có thông báo")); | |||
| } | |||
| currentItems = List<NotificationDTO>.from(state.items); | |||
| currentPage = state.page; | |||
| @@ -2,8 +2,8 @@ class ConstCommon { | |||
| static int kExpiredTime = 12 * 60 * 60 * 1000; //24h | |||
| static int kFileSize = 1000000; //1M = 1000.000 bytes | |||
| static int kMaxAgeCache = 7; // 7days | |||
| static const String baseUrl = "http://tpf.aztrace.vn"; | |||
| static const String baseImageUrl = "http://tpf.aztrace.vn/upload/"; | |||
| static const String baseUrl = "https://tpf.aztrace.vn"; | |||
| static const String baseImageUrl = "https://tpf.aztrace.vn/upload/"; | |||
| static RegExp regExpDecimal = RegExp("[0-9,]"); | |||
| static const String apiDetailNursery = "api/activity-nursery"; | |||
| @@ -2,7 +2,7 @@ name: farm_tpf | |||
| description: A new Flutter project. | |||
| publish_to: 'none' | |||
| version: 0.12.0+1 | |||
| version: 0.13.0+1 | |||
| environment: | |||
| sdk: ">=2.7.0 <3.0.0" | |||