parent
498c681f06
commit
56aab17cec
|
|
@ -5,8 +5,8 @@ part 'dict_response_entity.g.dart';
|
|||
|
||||
@JsonSerializable()
|
||||
class DictResponseEntity {
|
||||
|
||||
factory DictResponseEntity.fromJson(Map<String, dynamic> json) => _$DictResponseEntityFromJson(json);
|
||||
factory DictResponseEntity.fromJson(Map<String, dynamic> json) =>
|
||||
_$DictResponseEntityFromJson(json);
|
||||
|
||||
DictResponseEntity();
|
||||
|
||||
|
|
@ -24,12 +24,10 @@ class DictResponseEntity {
|
|||
|
||||
@JsonSerializable()
|
||||
class DictResponseHeaders {
|
||||
|
||||
|
||||
|
||||
DictResponseHeaders();
|
||||
|
||||
factory DictResponseHeaders.fromJson(Map<String, dynamic> json) => _$DictResponseHeadersFromJson(json);
|
||||
factory DictResponseHeaders.fromJson(Map<String, dynamic> json) =>
|
||||
_$DictResponseHeadersFromJson(json);
|
||||
|
||||
Map<String, dynamic> toJson() => _$DictResponseHeadersToJson(this);
|
||||
|
||||
|
|
@ -41,8 +39,8 @@ class DictResponseHeaders {
|
|||
|
||||
@JsonSerializable()
|
||||
class DictResponseOriginal {
|
||||
|
||||
factory DictResponseOriginal.fromJson(Map<String, dynamic> json) => _$DictResponseOriginalFromJson(json);
|
||||
factory DictResponseOriginal.fromJson(Map<String, dynamic> json) =>
|
||||
_$DictResponseOriginalFromJson(json);
|
||||
|
||||
DictResponseOriginal();
|
||||
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ class ApiService extends BaseService {
|
|||
String? token;
|
||||
|
||||
Future<String> _get(String point,
|
||||
{Map<String, String>? requestBody, Map<String, String>? header}) async {
|
||||
{Map<String, String>? header}) async {
|
||||
final Map<String, String> headers = <String, String>{
|
||||
HttpHeaders.contentTypeHeader: 'application/json',
|
||||
HttpHeaders.cacheControlHeader: 'no-cache'
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
// ignore_for_file: avoid_classes_with_only_static_members
|
||||
|
||||
import 'package:get_it/get_it.dart';
|
||||
import 'package:logger/logger.dart';
|
||||
import 'package:satu/core/services/api_service.dart';
|
||||
|
|
|
|||
|
|
@ -4,8 +4,6 @@ import 'package:flutter/material.dart';
|
|||
import 'package:satu/core/redux/actions/user_actions.dart';
|
||||
import 'package:satu/core/redux/state/user_state.dart';
|
||||
import 'package:satu/core/redux/store.dart';
|
||||
import 'package:satu/core/services/navigator_service.dart';
|
||||
import 'package:satu/core/utils/locator.dart';
|
||||
import 'package:satu/shared/app_colors.dart';
|
||||
|
||||
|
||||
|
|
@ -15,7 +13,6 @@ class StartUpView extends StatefulWidget {
|
|||
}
|
||||
|
||||
class _StartUpViewState extends State<StartUpView> {
|
||||
final NavigatorService _navigation = locator<NavigatorService>();
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@ import 'package:satu/core/models/dialog_models.dart';
|
|||
import 'package:satu/core/redux/actions/sell_actions.dart';
|
||||
import 'package:satu/core/redux/store.dart';
|
||||
import 'package:satu/core/services/dialog_service.dart';
|
||||
import 'package:satu/core/services/navigator_service.dart';
|
||||
import 'package:satu/core/utils/locator.dart';
|
||||
import 'package:satu/core/utils/utils_parse.dart';
|
||||
import 'package:satu/shared/app_colors.dart';
|
||||
|
|
@ -39,7 +38,6 @@ class ProductListItem extends StatefulWidget {
|
|||
}
|
||||
|
||||
class _ProductListItemState extends State<ProductListItem> {
|
||||
final NavigatorService _navigatorService = locator<NavigatorService>();
|
||||
final DialogService _dialogService = locator<DialogService>();
|
||||
|
||||
void _onItemTapped(BuildContext context) {
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@ import 'package:satu/core/models/flow/dao/transaction_dao.dart';
|
|||
import 'package:satu/core/redux/actions/journal_actions.dart';
|
||||
import 'package:satu/core/redux/state/journal_state.dart';
|
||||
import 'package:satu/core/redux/store.dart';
|
||||
import 'package:satu/core/services/data_service.dart';
|
||||
import 'package:satu/core/services/navigator_service.dart';
|
||||
import 'package:satu/core/utils/locator.dart';
|
||||
import 'package:satu/routes/route_names.dart';
|
||||
|
|
@ -20,7 +19,6 @@ class JournalView extends StatefulWidget {
|
|||
}
|
||||
|
||||
class _JournalViewState extends State<JournalView> {
|
||||
final DataService _dataService = locator<DataService>();
|
||||
final NavigatorService _navigatorService = locator<NavigatorService>();
|
||||
|
||||
int tabIndex = 0;
|
||||
|
|
|
|||
|
|
@ -2,12 +2,9 @@ import 'package:flutter/material.dart';
|
|||
import 'package:flutter_redux/flutter_redux.dart';
|
||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
import 'package:redux/src/store.dart';
|
||||
import 'package:satu/core/entity/goods_entity.dart';
|
||||
import 'package:satu/core/models/flow/dao/product_dao.dart';
|
||||
import 'package:satu/core/redux/actions/sell_actions.dart';
|
||||
import 'package:satu/core/redux/state/sell_state.dart';
|
||||
import 'package:satu/core/redux/store.dart';
|
||||
import 'package:satu/core/services/dictionary_service.dart';
|
||||
import 'package:satu/core/services/navigator_service.dart';
|
||||
import 'package:satu/core/utils/locator.dart';
|
||||
import 'package:satu/routes/route_names.dart';
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@ import 'package:flutter/material.dart';
|
|||
import 'package:satu/core/entity/category_entity.dart';
|
||||
import 'package:satu/core/entity/goods_entity.dart';
|
||||
import 'package:satu/core/services/dictionary_service.dart';
|
||||
import 'package:satu/core/services/navigator_service.dart';
|
||||
import 'package:satu/core/utils/locator.dart';
|
||||
import 'package:satu/shared/app_colors.dart';
|
||||
import 'package:satu/shared/ui_helpers.dart';
|
||||
|
|
@ -19,7 +18,6 @@ class SelectContragentView extends StatefulWidget {
|
|||
|
||||
class _SelectContragentViewState extends State<SelectContragentView> {
|
||||
final DictionaryService _dictionaryService = locator<DictionaryService>();
|
||||
final NavigatorService _navigatorService = locator<NavigatorService>();
|
||||
late TextEditingController _searchTextController;
|
||||
final FocusNode _searchFocusNode = new FocusNode();
|
||||
|
||||
|
|
|
|||
|
|
@ -16,8 +16,6 @@ class WorkView extends StatefulWidget {
|
|||
|
||||
class _WorkViewState extends State<WorkView> {
|
||||
int _selectedIndex = 0;
|
||||
static const TextStyle optionStyle =
|
||||
TextStyle(fontSize: 30, fontWeight: FontWeight.bold);
|
||||
final List<Widget> _widgetOptions = <Widget>[
|
||||
SellView(),
|
||||
BuyView(),
|
||||
|
|
|
|||
Loading…
Reference in New Issue