Advertisement
Guest User

Untitled

a guest
Dec 11th, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. import 'package:flutter/material.dart';
  2. import 'package:instrutorcfc/api/Api.dart';
  3.  
  4. class Inicial extends StatefulWidget {
  5. @override
  6. _InicialState createState() => _InicialState();
  7. }
  8.  
  9. @protected
  10. @mustCallSuper
  11. void initState() {
  12. Api.getAulas();
  13. }
  14.  
  15. class _InicialState extends State<Inicial> {
  16. @override
  17. Widget build(BuildContext context) {
  18. return Container(
  19. // color: Colors.black,
  20. child: FlatButton(
  21. child: Text('Botao'),
  22. onPressed: Api.getAulas,
  23. ),
  24. );
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement