import'package:flutter/material.dart';import'videogames_card.dart';classVideoGamesCardListextendsStatelessWidget{ @override
Widgetbuild(BuildContext context){returnColumn(children:<Widget>[VideoGamesCard("Uncharted: Drake's Treasure","PS3/PS4","assets/img/uncharted_drakes_fortune.jpg"),VideoGamesCard("Gears of War 4","Xbox One/PC","assets/img/gow4.jpg"),VideoGamesCard("Super Mario Oddysey","Nintendo Switch","assets/img/odyssey.jpg"),VideoGamesCard("God of War","PS4","assets/img/boy.jpg"),VideoGamesCard("Cuphead","Xbox One/PC/\nNintendo Switch/macOS/Tesla","assets/img/cuphead.jpg"),],);}}
Y en main:
import'package:flutter/material.dart';import'custom_appbar.dart';import'videogames_card_list.dart';voidmain(){runApp(MyApp());}classMyAppextendsStatelessWidget{// This widget is the root of your application. @override
Widgetbuild(BuildContext context){returnMaterialApp(title:'Flutter Demo',theme:ThemeData(primarySwatch:Colors.blue,visualDensity:VisualDensity.adaptivePlatformDensity,),home:Scaffold(body:Column(children:<Widget>[ClipPath(clipper:MyClipper(),child:CustomAppBar()),VideoGamesCardList()],)));}}
Oye amigo esta genial. como haces que la barra tenga ese efecto de curvatura?
Muy bonito header
Reto Cumplido
Aqui esta el resultado del reto, la curva la hice a código con el widget ClipPath. Les dejo el código (la clase se llama GradientBack porque al principio creí que con una degradación podía hacer la curva, pero así no era, y luego no lo cambie XD ):