@@ -7,14 +7,13 @@ import 'package:flutter_app/app/controllers/product_image_viewer_controller.dart
77import 'package:flutter_app/app/controllers/product_reviews_controller.dart' ;
88import 'package:flutter_app/app/models/user.dart' ;
99import 'package:flutter_app/app/networking/api_service.dart' ;
10- import 'package:nylo_framework/nylo_framework.dart' ;
1110
1211/*
1312|--------------------------------------------------------------------------
1413| Model Decoders
1514| -------------------------------------------------------------------------
1615| Model decoders are used in 'app/networking/' for morphing json payloads
17- | into Models. Learn more https://nylo.dev/docs/5.x /decoders#model-decoders
16+ | into Models. Learn more https://nylo.dev/docs/5.20.0 /decoders#model-decoders
1817|--------------------------------------------------------------------------
1918*/
2019
@@ -29,12 +28,12 @@ final Map<Type, dynamic> modelDecoders = {
2928| -------------------------------------------------------------------------
3029| API decoders are used when you need to access an API service using the
3130| 'api' helper. E.g. api<MyApiService>((request) => request.fetchData());
32- | Learn more https://nylo.dev/docs/5.x /decoders#api-decoders
31+ | Learn more https://nylo.dev/docs/5.20.0 /decoders#api-decoders
3332|--------------------------------------------------------------------------
3433*/
3534
36- final Map <Type , NyApiService > apiDecoders = {
37- ApiService : ApiService (),
35+ final Map <Type , dynamic > apiDecoders = {
36+ ApiService : () => ApiService (),
3837
3938 // ...
4039};
@@ -46,10 +45,10 @@ final Map<Type, NyApiService> apiDecoders = {
4645| Controller are used in pages.
4746| E.g. NyPage<MyController>
4847|
49- | Learn more https://nylo.dev/docs/5.x /controllers#using-controllers-with-ny-page
48+ | Learn more https://nylo.dev/docs/5.20.0 /controllers#using-controllers-with-ny-page
5049|--------------------------------------------------------------------------
5150*/
52- final Map <Type , BaseController Function () > controllers = {
51+ final Map <Type , dynamic > controllers = {
5352 ProductDetailController : () => ProductDetailController (),
5453 AccountOrderDetailController : () => AccountOrderDetailController (),
5554 BrowseCategoryController : () => BrowseCategoryController (),
0 commit comments