Skip to content

Instantly share code, notes, and snippets.

int currentStep = 0;
List<Step> spr = <Step>[];
List<Step> _getSteps() {
spr = <Step>[
Step(
state: _getState(1),
title: Text("Step 1"),
content: new Wrap(
children:<Widget>[
StepOneView()
{
"ResponseCode": "500",
"ResponseMessage": "Success",
"ResponseData": [
{
"ID": 1,
"UserID": "djanuar",
"UserName": "Januar Aransyah",
"CheckInDay": "Monday",
"CheckInDate": "2019-07-01T00:00:00",
onPageChanged: (index, reason) {
setState(() {
_current = index;
});
},
onPageChanged: (index, reason) {
setState(() {
_current = index;
});
},
int _current = 0;
Widget build(BuildContext context) {
return Column(
children: <Widget>[
CarouselSlider(
options: CarouselOptions(
autoPlay: true,
height: 250,
viewportFraction: 1.0,
onPageChanged: (index, reason) {
CarouselSlider(
items: items,
CarouselOptions(
height: 400,
aspectRatio: 16/9,
viewportFraction: 0.8,
initialPage: 0,
enableInfiniteScroll: true,
reverse: false,
autoPlay: true,
List<T> map<T>(List list, Function handler) {
List<T> result = [];
for (var i = 0; i < list.length; i++) {
result.add(handler(i, list[i]));
}
return result;
}
List imgNews = [
"lib/images/header-1.jpg",
"lib/images/header-2.jpg",
"lib/images/header-3.jpg",
"lib/images/header-4.jpg",
];
Padding(
padding: const EdgeInsets.only(top: 20.0, right: 45.0, left: 45.0),
child: new FormField(
builder: (FormFieldState state) {
return InputDecorator(
decoration: InputDecoration(
icon: const Icon(Icons.business),
labelText: 'Department',
),
child: new DropdownButtonHideUnderline(