-
Notifications
You must be signed in to change notification settings - Fork 2
/
_example_15.dart
53 lines (48 loc) · 1.52 KB
/
_example_15.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
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
// Declare a set list of images to cycle through as a final
final List<Image> _itemImages = [
Image.asset('assets/Google.png'),
Image.asset('assets/dtw.png'),
Image.asset('assets/GDGDetroit.png')
];
int _index = 0;
List<Image> _listOfImagesForScreen = [];
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Detroit Tech Watch',
home: Scaffold(
appBar: AppBar(
title: Text('Detroit Tech Watch'),
),
body: Stack(
children: <Widget>[
ListView(
children: <Widget>[
Card(
margin: EdgeInsets.all(8),
child: Column(
children: <Widget>[
Image.asset('assets/dtw.png'),
Padding(
padding: const EdgeInsets.all(8),
),
Text('Detroit Tech Watch')
],
),
),
],
),
Positioned(
bottom: 16.0,
right: 16.0,
child: FloatingActionButton(
child: const Icon(Icons.add),
onPressed: () {},
))
],
)));
}
}