-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3050762
commit 3714d4f
Showing
3 changed files
with
38 additions
and
33 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import 'package:flutter/material.dart'; | ||
|
||
class HomePage extends StatelessWidget{ | ||
const HomePage({super.key}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Scaffold( | ||
appBar: AppBar( | ||
title: const Text('Home'), | ||
), | ||
body: const Center( | ||
child: Text('Flutterando'), | ||
), | ||
floatingActionButton: FloatingActionButton( | ||
child: const Icon(Icons.add), | ||
onPressed: () { | ||
debugPrint('Clicou'); | ||
}, | ||
), | ||
); | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,6 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:hello_world/myapp.dart'; | ||
|
||
void main() { | ||
runApp(const MyApp()); | ||
} | ||
|
||
class MyApp extends StatelessWidget { | ||
const MyApp({super.key}); | ||
|
||
@override | ||
Widget build(BuildContext context){ | ||
return const MaterialApp( | ||
home: HomeWidget(), | ||
); | ||
} | ||
} | ||
|
||
class HomeWidget extends StatelessWidget{ | ||
const HomeWidget({super.key}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Scaffold( | ||
appBar: AppBar( | ||
title: const Text('Home'), | ||
), | ||
body: const Center( | ||
child: Text('Flutterando'), | ||
), | ||
floatingActionButton: FloatingActionButton( | ||
child: const Icon(Icons.add), | ||
onPressed: () { | ||
debugPrint('Clicou'); | ||
}, | ||
), | ||
); | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import 'package:flutter/material.dart'; | ||
|
||
import 'home_page.dart'; | ||
|
||
class MyApp extends StatelessWidget { | ||
const MyApp({super.key}); | ||
|
||
@override | ||
Widget build(BuildContext context){ | ||
return const MaterialApp( | ||
home: HomePage(), | ||
); | ||
} | ||
} |