Commit 6dff6cff authored by khairullah zikri's avatar khairullah zikri
Browse files

Tambahan Body pada UI

parent a548bc06
import 'package:flutter/material.dart';
class UI extends StatefulWidget {
_UIState createState() => _UIState();
class _UIState extends State<UI> {
int _counter = 0;
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text("Pokemon Votes"),
body: ListView.builder (
itemCount: 10,
itemBuilder: (BuildContext context, int index){
return Card(
margin: const EdgeInsets.all(5.0),
child: ListTile(
leading: CircleAvatar(
radius: 40.0,
title: Text('Nama pokemon'),
subtitle: Text('type pokemon'),
trailing: Container(
color:[500], size: 10.0,
child: Column(
children: <Widget>[Text('$_counter''\nVotes',textAlign:, style: TextStyle(fontSize: 25.0),)],
floatingActionButton: new FloatingActionButton(
onPressed: ()=> Navigator.push(context, MaterialPageRoute(builder: (context)=> null)),
tooltip: 'icrement',
child: Icon(Icons.add),
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment