-
Notifications
You must be signed in to change notification settings - Fork 274
/
sponsor_page.dart
63 lines (59 loc) · 1.68 KB
/
sponsor_page.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
import 'package:cached_network_image/cached_network_image.dart';
import 'package:flutter/material.dart';
import 'package:flutter_devfest/universal/dev_scaffold.dart';
class SponsorPage extends StatelessWidget {
static const String routeName = "/sponsor";
@override
Widget build(BuildContext context) {
// var _homeBloc = HomeBloc();
return DevScaffold(
body: ListView(
children: <Widget>[
SponsorImage(
imgUrl: "https://devfest.gdgkolkata.org/assets/img/logos/gd.png",
),
SizedBox(
height: 30,
),
SponsorImage(
imgUrl: "https://devfest.gdgkolkata.org/assets/img/jetbrains.png",
),
SizedBox(
height: 30,
),
SponsorImage(
imgUrl:
"https://upload.wikimedia.org/wikipedia/commons/thumb/7/74/Kotlin-logo.svg/220px-Kotlin-logo.svg.png",
),
SizedBox(
height: 30,
),
SponsorImage(
imgUrl:
"https://images.g2crowd.com/uploads/product/image/large_detail/large_detail_0016c93c710cf35990b999cba3a59bae/firebase.png",
)
],
),
title: "Sponsors",
);
}
}
class SponsorImage extends StatelessWidget {
final String imgUrl;
const SponsorImage({Key key, this.imgUrl}) : super(key: key);
@override
Widget build(BuildContext context) {
return Card(
elevation: 0.0,
child: Padding(
padding: const EdgeInsets.all(12.0),
child: CachedNetworkImage(
imageUrl: imgUrl,
height: 200.0,
width: 200.0,
fit: BoxFit.contain,
),
),
);
}
}