Skip to content

Commit

Permalink
PokemonApp For Web
Browse files Browse the repository at this point in the history
  • Loading branch information
iampawan committed May 15, 2019
1 parent db5d2c7 commit 5b67590
Show file tree
Hide file tree
Showing 7 changed files with 415 additions and 66 deletions.
10 changes: 7 additions & 3 deletions lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'dart:convert';

import 'package:flutter/material.dart';
import 'package:flutter_web/material.dart';
import 'package:http/http.dart' as http;
import 'package:pokeappen/pokemon.dart';
import 'package:pokeappen/pokemondetail.dart';
Expand Down Expand Up @@ -68,14 +68,18 @@ class HomePageState extends State<HomePage> {
tag: poke.img,
child: Card(
child: Column(
mainAxisSize: MainAxisSize.max,
mainAxisAlignment:
MainAxisAlignment.spaceEvenly,
children: <Widget>[
Container(
height: 100.0,
width: 100.0,
height: MediaQuery.of(context).size.height *
0.4,
width:
MediaQuery.of(context).size.width * 0.2,
decoration: BoxDecoration(
image: DecorationImage(
fit: BoxFit.cover,
image: NetworkImage(poke.img))),
),
Text(
Expand Down
2 changes: 1 addition & 1 deletion lib/pokemondetail.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:flutter/material.dart';
import 'package:flutter_web/material.dart';
import 'package:pokeappen/pokemon.dart';

class PokeDetail extends StatelessWidget {
Expand Down
Loading

0 comments on commit 5b67590

Please sign in to comment.