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
Showing
3 changed files
with
45 additions
and
2 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
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,41 @@ | ||
import 'package:flutter/material.dart'; | ||
|
||
class HomeScreen extends StatelessWidget { | ||
const HomeScreen({Key? key}) : super(key: key); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Scaffold( | ||
backgroundColor: Color.fromARGB(255, 255, 255, 255), | ||
appBar: AppBar( | ||
title: const Text('Home'), | ||
backgroundColor: Color.fromARGB(255, 0, 0, 0), | ||
), | ||
body: SingleChildScrollView( | ||
child: Container( | ||
child: Column(children: [ | ||
SizedBox( | ||
height: 20, | ||
), | ||
const HomeBody(), | ||
]), | ||
), | ||
)); | ||
} | ||
} | ||
|
||
class HomeBody extends StatefulWidget { | ||
const HomeBody({Key? key}) : super(key: key); | ||
|
||
@override | ||
State<HomeBody> createState() => _HomeBodyState(); | ||
} | ||
|
||
class _HomeBodyState extends State<HomeBody> { | ||
@override | ||
Widget build(BuildContext context) { | ||
return Scaffold( | ||
body: Center(child: Text("Welcome back!")), | ||
); | ||
} | ||
} |
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