Guest User

Untitled

a guest
Jun 25th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.67 KB | None | 0 0
  1. new GestureDetector(
  2. onTap: () {
  3. var route = new MaterialPageRoute(builder: (BuildContext context) => new FilterScreen(areaList));
  4. Navigator.of(context).push(route);
  5. },
  6. child: new Container(
  7. margin: EdgeInsets.all(10.0),
  8. child: new Image.asset(
  9. "images/ic_filter.png",
  10. height: 30.0,
  11. width: 30.0,
  12. )),
  13. ),
  14.  
  15. new Expanded(
  16. child: new MaterialButton(
  17. onPressed: () {
  18. String areaIds = "";
  19. for(int i=0;i<areaList.length;i++){
  20. if(areaList[i].isChecked){
  21. areaIds += "${areaList[i].AreaMasterId},";
  22. }
  23. }
  24. // Constants.areaMasterIds = areaIds;
  25. // Constants.isLoadingAllStore = true;
  26. var route = new MaterialPageRoute(builder: (BuildContext context) => new AllStoreTabScreen(false));
  27. Navigator.of(context).pushReplacement(route);
  28.  
  29. },
  30. color: Colors.myColor,
  31. child: new Container(
  32. padding: EdgeInsets.all(15.0),
  33. child: new Text(
  34. "APPLY",
  35. style: Theme
  36. .of(context)
  37. .textTheme
  38. .body1
  39. .apply(color: Colors.white),
  40. ),
  41. ),
  42. ),
  43. ),
Add Comment
Please, Sign In to add comment