This repository has been archived by the owner on Aug 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added main app navigation (#7)
- Loading branch information
Showing
8 changed files
with
126 additions
and
99 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
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
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,26 +1,41 @@ | ||
import 'package:flutter/material.dart'; | ||
|
||
import 'search_view.dart'; | ||
|
||
class HomePage extends StatelessWidget { | ||
const HomePage({super.key}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Column( | ||
children: [ | ||
const Image(image: AssetImage('logo.png')), | ||
const SizedBox(height: 32), | ||
FilledButton( | ||
onPressed: () {}, | ||
style: const ButtonStyle( | ||
backgroundColor: | ||
MaterialStatePropertyAll<Color>(Color(0xFF4B64F2)), | ||
fixedSize: MaterialStatePropertyAll<Size>(Size(128, 48))), | ||
child: const Text( | ||
'Start', | ||
style: TextStyle(fontSize: 20, fontWeight: FontWeight.normal), | ||
), | ||
return SafeArea( | ||
child: Container( | ||
color: Colors.white, | ||
child: Column( | ||
mainAxisAlignment: MainAxisAlignment.center, | ||
children: [ | ||
const Image(image: AssetImage('assets/logo.png')), | ||
const SizedBox(height: 32), | ||
FilledButton( | ||
onPressed: () { | ||
Navigator.push( | ||
context, | ||
MaterialPageRoute( | ||
builder: (context) => const SearchView(), | ||
), | ||
); | ||
}, | ||
style: const ButtonStyle( | ||
backgroundColor: | ||
MaterialStatePropertyAll<Color>(Color(0xFF4B64F2)), | ||
fixedSize: MaterialStatePropertyAll<Size>(Size(128, 48))), | ||
child: const Text( | ||
'Start', | ||
style: TextStyle(fontSize: 20, fontWeight: FontWeight.normal), | ||
), | ||
), | ||
], | ||
), | ||
], | ||
), | ||
); | ||
} | ||
} |
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
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