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
service: appsync-crud-api | |
frameworkVersion: '2' | |
provider: | |
name: aws | |
runtime: nodejs12.x | |
lambdaHashingVersion: 20201221 | |
region: ${env:REGION, 'ap-south-1'} | |
stage: ${opt:stage, 'dev'} | |
timeout: 30 |
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
Row( | |
mainAxisAlignment: MainAxisAlignment.spaceEvenly, | |
children: <Widget>[ | |
IconButton( | |
icon: Image.asset('assets/images/menu.png'), | |
onPressed: () {}), | |
IconButton( | |
icon: Image.asset('assets/images/heart.png'), | |
onPressed: () {}), | |
IconButton( |
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
Positioned( | |
bottom: 130.0, | |
right: 30.0, | |
child: Text( | |
characters[index].position.toString(), | |
style: position, | |
), | |
), | |
Image.asset( | |
characters[index].image, |
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
child: Center( | |
child: Text( | |
characters[index].rating, | |
style: rating, | |
), | |
), | |
SizedBox(height: 11.0), | |
Text( | |
characters[index].game, | |
style: gameName, |
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
class CharInfo { | |
final int position; | |
final String rating; | |
final String game; | |
final String name; | |
final String image; | |
final String size; | |
final String power; | |
final List<String> images; |
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
Container( | |
height: 550, | |
padding: EdgeInsets.only(left: 32.0), | |
child: Swiper( | |
// autoplay: true, | |
itemCount: characters.length, | |
itemWidth: MediaQuery.of(context).size.width - 2 * 64, | |
layout: SwiperLayout.STACK, | |
pagination: SwiperPagination( | |
builder: DotSwiperPaginationBuilder( |
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
child: Column( | |
children: <Widget>[ | |
Padding( | |
padding: | |
EdgeInsets.symmetric(horizontal: 32.0, vertical: 20.0), | |
child: Row( | |
mainAxisAlignment: MainAxisAlignment.spaceBetween, | |
children: <Widget>[ | |
Text( | |
'gumao.', |
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
Color gradientStartColor = Color(0xFF192741); | |
Color gradientFirstColor = Color(0xFF4A3752); | |
Color gradientSecondColor = Color(0xFF7D4964); | |
Color gradientThirdColor = Color(0xFFC7617F); | |
Color gradientFourthColor = Color(0xFFFA93A3); | |
Color gradientEndColor = Color(0xFFF8D8C9); | |
Color nameColor = Color(0xFF3F455A); | |
Color ratingCol = Color(0XFFEF544A); | |
TextStyle size = TextStyle( |
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
import 'package:flutter/material.dart'; | |
import 'home_page.dart'; | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { |