Last active
November 11, 2021 21:40
-
-
Save tiagolpadua/4ea81b5b294755bc046f063975656bfc to your computer and use it in GitHub Desktop.
Telas Desafio Semana 3 - Yes She Codes
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 DestinationFormPage extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
DestinationCategory _category = null; | |
return Scaffold( | |
appBar: AppBar( | |
title: Text("Cadastrar destino"), | |
centerTitle: true, | |
backgroundColor: AppColors.principal, | |
), | |
body: SingleChildScrollView( | |
child: Padding( | |
padding: const EdgeInsets.all(20.0), | |
child: Form( | |
key: _formKey, | |
child: Column( | |
children: [ | |
? | |
SizedBox(height: 15), | |
? | |
SizedBox(height: 15), | |
? | |
SizedBox(height: 15), | |
? | |
SizedBox(height: 30), | |
SizedBox( | |
width: MediaQuery.of(context).size.width, | |
child: ElevatedButton( | |
style: ElevatedButton.styleFrom( | |
primary: AppColors.principal, | |
), | |
onPressed: (){}, | |
child: Text("Salvar destino") | |
), | |
), | |
], | |
), | |
), | |
), | |
), | |
); | |
} | |
} |
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 DestinationsListPage extends StatelessWidget { | |
DestinationCategory category; | |
DestinationsListPage({@required this.category}); | |
@override | |
Widget build(BuildContext context) { | |
bool test = false; | |
return Scaffold( | |
appBar: AppBar( | |
title: Text(category.name), | |
centerTitle: true, | |
backgroundColor: AppColors.principal, | |
), | |
body: ?, | |
floatingActionButton: FloatingActionButton( | |
onPressed: (){}, | |
backgroundColor: AppColors.principal, | |
child: Icon(Icons.add), | |
), | |
); | |
} | |
} |
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 DestinationsPage extends StatelessWidget { | |
const DestinationsPage({Key key}) : super(key: key); | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
appBar: AppBar( | |
title: Text("Destinos"), | |
centerTitle: true, | |
backgroundColor: AppColors.principal, | |
), | |
body: Padding( | |
padding: const EdgeInsets.all(20), | |
child: GridView.count( | |
shrinkWrap: true, | |
crossAxisCount: 2, | |
crossAxisSpacing: 10, | |
mainAxisSpacing: 10, | |
children: [ | |
? | |
], | |
), | |
), | |
floatingActionButton: FloatingActionButton( | |
onPressed: (){}, | |
backgroundColor: AppColors.principal, | |
child: Icon(Icons.add), | |
), | |
); | |
} | |
} |
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 MarketPage extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
body: Container( | |
width: MediaQuery | |
.of(context) | |
.size | |
.width, | |
height: MediaQuery | |
.of(context) | |
.size | |
.height, | |
decoration: BoxDecoration( | |
image: DecorationImage( | |
image: AssetImage(AppImages.market_bg), | |
fit: BoxFit.cover, | |
), | |
), | |
child: Padding( | |
padding: const EdgeInsets.only(left: 20, right: 20), | |
child: Column( | |
mainAxisAlignment: MainAxisAlignment.end, | |
children: [ | |
Text( | |
'Vamos viajar?', | |
style: TextStyle( | |
color: Colors.deepPurpleAccent, | |
fontWeight: FontWeight.bold, | |
fontSize: 24, | |
), | |
), | |
SizedBox(height: 20), | |
Text( | |
'Jajá tudo isso passa e poderemos voltar a conhecer o mundo todo!' | |
'Que tal planejar de agora os destinos mas badalados?', | |
style: TextStyle( | |
color: Colors.white, | |
fontSize: 18 | |
), | |
), | |
SizedBox(height: 30), | |
SizedBox( | |
width: double.infinity, | |
height: 60, | |
child: ElevatedButton( | |
onPressed: () {}, | |
child: Text( | |
'PLANEJAR DESTINOS', | |
style: TextStyle( | |
fontSize: 16, | |
fontWeight: FontWeight.bold | |
), | |
), | |
style: ElevatedButton.styleFrom( | |
primary: Colors.deepPurpleAccent, | |
onPrimary: Colors.white, | |
), | |
), | |
), | |
SizedBox(height: 30), | |
], | |
), | |
), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment