diff --git a/rescueapp/lib/start_triage_system/after_opening_airways.dart b/rescueapp/lib/start_triage_system/after_opening_airways.dart index 3e342d1daf6acb788923d07c32c85ab963c990ab..55f05386b5fab9e36d39eef87dc7dbaf712102bf 100644 --- a/rescueapp/lib/start_triage_system/after_opening_airways.dart +++ b/rescueapp/lib/start_triage_system/after_opening_airways.dart @@ -1,5 +1,7 @@ import 'package:flutter/material.dart'; +import 'camera_access.dart'; + class AfterOpeningAirways extends StatefulWidget { AfterOpeningAirways({Key key, this.title}) : super(key: key); final String title; @@ -114,7 +116,13 @@ class _AfterOpeningAirwaysState extends State<AfterOpeningAirways> { fontWeight: FontWeight.w600, color: Colors.blue[900])), color: Colors.blue, - onPressed: null ))), + onPressed: () { + Navigator.push( + context, + MaterialPageRoute( + builder: (context) => CameraAccess()), + ); + }))), SizedBox( height: 10, ), @@ -129,7 +137,13 @@ class _AfterOpeningAirwaysState extends State<AfterOpeningAirways> { fontWeight: FontWeight.w600, color: Colors.blue[900])), color: Colors.blue, - onPressed: null))), + onPressed: () { + Navigator.push( + context, + MaterialPageRoute( + builder: (context) => CameraAccess()), + ); + }))), SizedBox( height: 50, ),