This file contains hidden or 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
[default] | |
server = "foo.com" | |
username = "default user" | |
password = false | |
foo = "bar" | |
SECRET_KEY = 1234.0 | |
STATIC_URL = "/changed/in/settings.toml/by/dynaconf/" | |
ALLOWED_HOSTS = [ | |
"*" | |
] |
This file contains hidden or 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
class FeedController = _FeedControllerBase with _$FeedController; | |
abstract class _FeedControllerBase with Store { | |
FeedService _service = FeedService(); | |
@observable | |
ObservableList<PostModel> list; | |
... | |
} |
This file contains hidden or 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
class CommentModel { | |
int id; | |
UsuarioModel userData; | |
String message; | |
String date; | |
int post; | |
int user; | |
bool rocketIt; | |
} |
This file contains hidden or 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
class PostModel { | |
int id; | |
@observable | |
ObservableList<CommentModel> comments; | |
int commentsTotal; | |
List<RockItModel> rockIts; | |
int rockItsTotal; | |
List<PostPhotoModel> postPhotos; | |
UsuarioModel userData; |
This file contains hidden or 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
class PostModel { | |
int id; | |
List<CommentModel> comments; | |
... | |
} |
This file contains hidden or 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
abstract class _ProcessingControllerBase with Store { | |
// Declarando os atributos do controller | |
// Atributo para determinar quando está sendo processo alguma tarefa assíncrona. | |
@observable | |
bool processing = true; | |
// Declarando a Action para informar que o processamento iniciou | |
@action | |
beginProcessing() async => this.processing = true; | |
This file contains hidden or 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
processingDialog(BuildContext context, {String message = "Processando", bool hide = false}) { | |
return showDialog( | |
context: context, | |
barrierDismissible: false, | |
builder: (context) { | |
return AlertDialog( | |
backgroundColor: Colors.black, | |
title: Center( | |
child: Text( | |
message, |
This file contains hidden or 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 ... | |
class HomePage extends StatefulWidget { | |
@override | |
_HomePageState createState() => _HomePageState(); | |
} | |
class _HomePageState extends State<HomePage> { | |
... |
This file contains hidden or 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 ... | |
class FeedPage extends StatefulWidget { | |
@override | |
_FeedPageState createState() => _FeedPageState(); | |
} | |
class _FeedPageState extends State<FeedPage> { | |
var itemSelected = 0; |
This file contains hidden or 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
children: <Widget>[ | |
opcaoResposta(checkBoxOne, "Curso Técnico"), | |
opcaoResposta(checkBoxOne, "Curso Superior"), |