This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"ResponseCode": "500", | |
"ResponseMessage": "Success", | |
"ResponseData": [ | |
{ | |
"ID": 1, | |
"UserID": "djanuar", | |
"UserName": "Januar Aransyah", | |
"CheckInDay": "Monday", | |
"CheckInDate": "2019-07-01T00:00:00", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
onPageChanged: (index, reason) { | |
setState(() { | |
_current = index; | |
}); | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
onPageChanged: (index, reason) { | |
setState(() { | |
_current = index; | |
}); | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int _current = 0; | |
Widget build(BuildContext context) { | |
return Column( | |
children: <Widget>[ | |
CarouselSlider( | |
options: CarouselOptions( | |
autoPlay: true, | |
height: 250, | |
viewportFraction: 1.0, | |
onPageChanged: (index, reason) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CarouselSlider( | |
items: items, | |
CarouselOptions( | |
height: 400, | |
aspectRatio: 16/9, | |
viewportFraction: 0.8, | |
initialPage: 0, | |
enableInfiniteScroll: true, | |
reverse: false, | |
autoPlay: true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@override | |
Widget build(BuildContext context) { | |
return CarouselSlider( | |
options: CarouselOptions( | |
autoPlay: true, | |
height: 250, | |
viewportFraction: 1.0, | |
onPageChanged: (index, reason) { | |
setState(() { | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
List imgNews = [ | |
"lib/images/header-1.jpg", | |
"lib/images/header-2.jpg", | |
"lib/images/header-3.jpg", | |
"lib/images/header-4.jpg", | |
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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( |