This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// @disparado chamado com a venda | |
preço para determinar quanto de royalties | |
// é devido e a quem. | |
/// @parâmetro _tokenId - o NFT | |
consultado por informações de royalties | |
/// @parâmetro _salePrice - a venda | |
preço do ativo NFT especificado por | |
_tokenId | |
/// @retentor do retorno - endereço de | |
quem deve receber o pagamento de royalties |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:get/get.dart'; | |
import 'package:getx_pattern/app/data/model/model.dart'; | |
import 'package:getx_pattern/app/data/repository/posts_repository.dart'; | |
import 'package:meta/meta.dart'; | |
class DetailsController extends GetxController { | |
final MyRepository repository; | |
DetailsController({@required this.repository}) : assert(repository != null); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:get/get.dart'; | |
import 'package:getx_pattern/app/controller/details/details_controller.dart'; | |
import 'package:getx_pattern/app/data/provider/api.dart'; | |
import 'package:getx_pattern/app/data/repository/posts_repository.dart'; | |
import 'package:http/http.dart' as http; | |
class DetailsBinding implements Bindings{ | |
@override | |
void dependencies() { | |
Get.lazyPut<DetailsController>(() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:getx_pattern/app/controller/home/home_controller.dart'; | |
import 'package:getx_pattern/app/data/provider/api.dart'; | |
import 'package:getx_pattern/app/data/repository/posts_repository.dart'; | |
import 'package:http/http.dart' as http; | |
import 'package:get/get.dart'; | |
class HomeBinding implements Bindings { | |
@override | |
void dependencies() { | |
Get.lazyPut<HomeController>(() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'package:get/get.dart'; | |
import 'package:getx_pattern/app/controller/details/details_controller.dart'; | |
import 'package:getx_pattern/app/controller/home/home_controller.dart'; | |
import 'package:getx_pattern/app/ui/android/details/widgets/bottom_card_widget.dart'; | |
import 'package:getx_pattern/app/ui/android/details/widgets/top_card_widget.dart'; | |
import 'package:slimy_card/slimy_card.dart'; | |
class DetailsPage extends GetView<DetailsController> { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
final Map<String, String> esMx = { | |
'oi':'Holla' | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
final Map<String, String> enUs = { | |
'oi' : 'Hello' | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:getx_pattern/app/translations/en_US/en_us_translations.dart'; | |
import 'package:getx_pattern/app/translations/es_MX/es_mx_translations.dart'; | |
import 'package:getx_pattern/app/translations/pt_BR/pt_br_translations.dart'; | |
abstract class AppTranslation { | |
static Map<String, Map<String, String>> | |
translations = | |
{ | |
'pt_BR' : ptBR, | |
'en_US' : enUs, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:get/get.dart'; | |
import 'package:getx_pattern/app/ui/android/details/details_page.dart'; | |
import 'package:getx_pattern/app/ui/android/home/home_page.dart'; | |
part './app_routes.dart'; | |
class AppPages { | |
static final routes = [ | |
GetPage(name: Routes.INITIAL, page:()=> HomePage(),), | |
GetPage(name: Routes.DETAILS, page:()=> DetailsPage(), binding: DetailsBinding()), //dependencias de details via rota |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'package:get/get.dart'; | |
import 'package:getx_pattern/app/routes/app_pages.dart'; | |
import 'package:getx_pattern/app/translations/app_translations.dart'; | |
import 'app/ui/android/home/home_page.dart'; | |
import 'app/ui/theme/app_theme.dart'; | |
void main() { | |
runApp( |
NewerOlder