From bd47e2f634160dd223e54415deb91a97eafc230b Mon Sep 17 00:00:00 2001 From: Trang Nguyen <thi_huyen_trang.nguyen@student.reutlingen-university.de> Date: Fri, 27 Nov 2020 08:12:35 +0100 Subject: [PATCH] KAT-51: Added navigation for RaisedButtons in after_opening_airways.dart --- .../after_opening_airways.dart | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/rescueapp/lib/start_triage_system/after_opening_airways.dart b/rescueapp/lib/start_triage_system/after_opening_airways.dart index 3e342d1..55f0538 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, ), -- GitLab