Browse Source

fix Bug #7911

master
daivph 5 years ago
parent
commit
ac30b24e88
4 changed files with 5 additions and 5 deletions
  1. +1
    -1
      lib/data/api/rest_client.g.dart
  2. +1
    -1
      lib/presentation/screens/notification/sc_notification.dart
  3. +2
    -2
      lib/utils/const_common.dart
  4. +1
    -1
      pubspec.yaml

+ 1
- 1
lib/data/api/rest_client.g.dart View File

@@ -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;

+ 1
- 1
lib/presentation/screens/notification/sc_notification.dart View File

@@ -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
- 2
lib/utils/const_common.dart View File

@@ -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";

+ 1
- 1
pubspec.yaml View File

@@ -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"

Loading…
Cancel
Save