Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import 'package:flutter/cupertino.dart';
- import 'package:flutter/material.dart';
- class ListUser extends StatefulWidget {
- @override
- _ListUser createState() => _ListUser();
- }
- class _ListUser extends State<ListUser> {
- @override
- Widget build(BuildContext context) {
- return DefaultTabController(
- length: 9,
- child: Scaffold(
- appBar: AppBar(
- bottom: const TabBar(
- isScrollable: true,
- tabs: [
- Tab(
- text: 'Semua',
- ),
- Tab(
- text: 'Project Manager',
- ),
- Tab(
- text: 'Project Director',
- ),
- Tab(
- text: 'Manager',
- ),
- Tab(
- text: 'Officer 1',
- ),
- Tab(
- text: 'Officer 2',
- ),
- Tab(
- text: 'Officer 1',
- ),
- Tab(
- text: 'Officer 2',
- ),
- Tab(
- text: 'Officer 1',
- )
- ]),
- ),
- body: TabBarView(
- children: [
- Container(
- color: Colors.white,
- child: Column(
- children: [
- Card(
- margin: EdgeInsets.all(13.0),
- elevation: 10,
- child: Row(
- children: <Widget>[
- Padding(
- padding: EdgeInsets.all(13.0),
- child: GestureDetector(
- onTap: () {
- },
- child: Container(
- width: 46.0,
- height: 46.0,
- decoration: BoxDecoration(
- color: Colors.white,
- borderRadius:
- BorderRadius.all(Radius.circular(75.0)),
- boxShadow: [
- BoxShadow(blurRadius: 7.0, color: Colors.black)
- ]),
- ),
- ),
- ),
- GestureDetector(
- onTap: () {
- showDialog<void>(
- context: context,
- barrierDismissible: false,
- builder: (BuildContext conext) {
- return AlertDialog(
- title: Text('Not in stock'),
- content:
- const Text('This item is no longer available'),
- actions: <Widget>[
- FlatButton(
- child: Text('Ok'),
- onPressed: () {
- Navigator.of(context).pop();
- },
- ),
- ],
- );
- },
- );
- },
- child: Container(
- padding: EdgeInsets.all(30.0),
- child: Chip(
- label: Text('Angela Smith'),
- )),
- ),
- ],
- ),
- ),
- const Expanded(
- child: ListTile(
- leading: CircleAvatar(),
- title: Text('Angela Smith'),
- subtitle: Text('Project Manager'),
- trailing: Icon(Icons.more_vert),
- )
- ),
- const Expanded(
- child: ListTile(
- leading: CircleAvatar(),
- title: Text('Angela Smith'),
- subtitle: Text('Project Manager'),
- trailing: Icon(Icons.more_vert),
- )
- ),
- const Expanded(
- child: ListTile(
- leading: CircleAvatar(),
- title: Text('Angela Smith'),
- subtitle: Text('Project Manager'),
- trailing: Icon(Icons.more_vert),
- )
- ),
- const Expanded(
- child: ListTile(
- leading: CircleAvatar(),
- title: Text('Angela Smith'),
- subtitle: Text('Project Manager'),
- trailing: Icon(Icons.more_vert),
- )
- ),
- ElevatedButton(
- onPressed: () {},
- child: Text('+ Tambah Pengguna Baru')
- )
- ],
- ),
- ),
- Container(
- color: Colors.white,
- child: Column(
- children: [
- const Expanded(
- child: ListTile(
- leading: CircleAvatar(),
- title: Text('Angela Smith'),
- subtitle: Text('Project Manager'),
- trailing: Icon(Icons.more_vert),
- )
- ),
- const Expanded(
- child: ListTile(
- leading: CircleAvatar(),
- title: Text('Angela Smith'),
- subtitle: Text('Project Manager'),
- trailing: Icon(Icons.more_vert),
- )
- ),
- const Expanded(
- child: ListTile(
- leading: CircleAvatar(),
- title: Text('Angela Smith'),
- subtitle: Text('Project Manager'),
- trailing: Icon(Icons.more_vert),
- )
- ),
- const Expanded(
- child: ListTile(
- leading: CircleAvatar(),
- title: Text('Angela Smith'),
- subtitle: Text('Project Manager'),
- trailing: Icon(Icons.more_vert),
- )
- ),
- ElevatedButton(
- onPressed: () {},
- child: Text('+ Tambah Pengguna Baru')
- )
- ],
- ),
- ),
- Container(
- color: Colors.white,
- child: Column(
- children: [
- const Expanded(
- child: ListTile(
- leading: CircleAvatar(),
- title: Text('Angela Smith'),
- subtitle: Text('Project Manager'),
- trailing: Icon(Icons.more_vert),
- )
- ),
- const Expanded(
- child: ListTile(
- leading: CircleAvatar(),
- title: Text('Angela Smith'),
- subtitle: Text('Project Manager'),
- trailing: Icon(Icons.more_vert),
- )
- ),
- const Expanded(
- child: ListTile(
- leading: CircleAvatar(),
- title: Text('Angela Smith'),
- subtitle: Text('Project Manager'),
- trailing: Icon(Icons.more_vert),
- )
- ),
- const Expanded(
- child: ListTile(
- leading: CircleAvatar(),
- title: Text('Angela Smith'),
- subtitle: Text('Project Manager'),
- trailing: Icon(Icons.more_vert),
- )
- ),
- ElevatedButton(
- onPressed: () {},
- child: Text('+ Tambah Pengguna Baru')
- )
- ],
- ),
- ),
- Container(
- color: Colors.white,
- child: Column(
- children: [
- const Expanded(
- child: ListTile(
- leading: CircleAvatar(),
- title: Text('Angela Smith'),
- subtitle: Text('Project Manager'),
- trailing: Icon(Icons.more_vert),
- )
- ),
- const Expanded(
- child: ListTile(
- leading: CircleAvatar(),
- title: Text('Angela Smith'),
- subtitle: Text('Project Manager'),
- trailing: Icon(Icons.more_vert),
- )
- ),
- const Expanded(
- child: ListTile(
- leading: CircleAvatar(),
- title: Text('Angela Smith'),
- subtitle: Text('Project Manager'),
- trailing: Icon(Icons.more_vert),
- )
- ),
- const Expanded(
- child: ListTile(
- leading: CircleAvatar(),
- title: Text('Angela Smith'),
- subtitle: Text('Project Manager'),
- trailing: Icon(Icons.more_vert),
- )
- ),
- ElevatedButton(
- onPressed: () {},
- child: Text('+ Tambah Pengguna Baru')
- )
- ],
- ),
- ),
- Container(
- color: Colors.white,
- child: Column(
- children: [
- const Expanded(
- child: ListTile(
- leading: CircleAvatar(),
- title: Text('Angela Smith'),
- subtitle: Text('Project Manager'),
- trailing: Icon(Icons.more_vert),
- )
- ),
- const Expanded(
- child: ListTile(
- leading: CircleAvatar(),
- title: Text('Angela Smith'),
- subtitle: Text('Project Manager'),
- trailing: Icon(Icons.more_vert),
- )
- ),
- const Expanded(
- child: ListTile(
- leading: CircleAvatar(),
- title: Text('Angela Smith'),
- subtitle: Text('Project Manager'),
- trailing: Icon(Icons.more_vert),
- )
- ),
- const Expanded(
- child: ListTile(
- leading: CircleAvatar(),
- title: Text('Angela Smith'),
- subtitle: Text('Project Manager'),
- trailing: Icon(Icons.more_vert),
- )
- ),
- ElevatedButton(
- onPressed: () {},
- child: Text('+ Tambah Pengguna Baru')
- )
- ],
- ),
- ),
- Container(
- color: Colors.white,
- child: Column(
- children: [
- const Expanded(
- child: ListTile(
- leading: CircleAvatar(),
- title: Text('Angela Smith'),
- subtitle: Text('Project Manager'),
- trailing: Icon(Icons.more_vert),
- )
- ),
- const Expanded(
- child: ListTile(
- leading: CircleAvatar(),
- title: Text('Angela Smith'),
- subtitle: Text('Project Manager'),
- trailing: Icon(Icons.more_vert),
- )
- ),
- const Expanded(
- child: ListTile(
- leading: CircleAvatar(),
- title: Text('Angela Smith'),
- subtitle: Text('Project Manager'),
- trailing: Icon(Icons.more_vert),
- )
- ),
- const Expanded(
- child: ListTile(
- leading: CircleAvatar(),
- title: Text('Angela Smith'),
- subtitle: Text('Project Manager'),
- trailing: Icon(Icons.more_vert),
- )
- ),
- ElevatedButton(
- onPressed: () {},
- child: Text('+ Tambah Pengguna Baru')
- )
- ],
- ),
- ),
- Container(
- color: Colors.white,
- child: Column(
- children: [
- const Expanded(
- child: ListTile(
- leading: CircleAvatar(),
- title: Text('Angela Smith'),
- subtitle: Text('Project Manager'),
- trailing: Icon(Icons.more_vert),
- )
- ),
- const Expanded(
- child: ListTile(
- leading: CircleAvatar(),
- title: Text('Angela Smith'),
- subtitle: Text('Project Manager'),
- trailing: Icon(Icons.more_vert),
- )
- ),
- const Expanded(
- child: ListTile(
- leading: CircleAvatar(),
- title: Text('Angela Smith'),
- subtitle: Text('Project Manager'),
- trailing: Icon(Icons.more_vert),
- )
- ),
- const Expanded(
- child: ListTile(
- leading: CircleAvatar(),
- title: Text('Angela Smith'),
- subtitle: Text('Project Manager'),
- trailing: Icon(Icons.more_vert),
- )
- ),
- ElevatedButton(
- onPressed: () {},
- child: Text('+ Tambah Pengguna Baru')
- )
- ],
- ),
- ),
- Container(
- color: Colors.white,
- child: Column(
- children: [
- const Expanded(
- child: ListTile(
- leading: CircleAvatar(),
- title: Text('Angela Smith'),
- subtitle: Text('Project Manager'),
- trailing: Icon(Icons.more_vert),
- )
- ),
- const Expanded(
- child: ListTile(
- leading: CircleAvatar(),
- title: Text('Angela Smith'),
- subtitle: Text('Project Manager'),
- trailing: Icon(Icons.more_vert),
- )
- ),
- const Expanded(
- child: ListTile(
- leading: CircleAvatar(),
- title: Text('Angela Smith'),
- subtitle: Text('Project Manager'),
- trailing: Icon(Icons.more_vert),
- )
- ),
- const Expanded(
- child: ListTile(
- leading: CircleAvatar(),
- title: Text('Angela Smith'),
- subtitle: Text('Project Manager'),
- trailing: Icon(Icons.more_vert),
- )
- ),
- ElevatedButton(
- onPressed: () {},
- child: Text('+ Tambah Pengguna Baru')
- )
- ],
- ),
- ),
- Container(
- color: Colors.white,
- child: Column(
- children: [
- const Expanded(
- child: ListTile(
- leading: CircleAvatar(),
- title: Text('Angela Smith'),
- subtitle: Text('Project Manager'),
- trailing: Icon(Icons.more_vert),
- )
- ),
- const Expanded(
- child: ListTile(
- leading: CircleAvatar(),
- title: Text('Angela Smith'),
- subtitle: Text('Project Manager'),
- trailing: Icon(Icons.more_vert),
- )
- ),
- const Expanded(
- child: ListTile(
- leading: CircleAvatar(),
- title: Text('Angela Smith'),
- subtitle: Text('Project Manager'),
- trailing: Icon(Icons.more_vert),
- )
- ),
- const Expanded(
- child: ListTile(
- leading: CircleAvatar(),
- title: Text('Angela Smith'),
- subtitle: Text('Project Manager'),
- trailing: Icon(Icons.more_vert),
- )
- ),
- ElevatedButton(
- onPressed: () {},
- child: Text('+ Tambah Pengguna Baru')
- )
- ],
- ),
- ),
- ],
- ),
- ),
- );
- }
- //
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement