Skip to content
Snippets Groups Projects
Commit bd47e2f6 authored by Thi Huyen Trang Nguyen's avatar Thi Huyen Trang Nguyen
Browse files

KAT-51: Added navigation for RaisedButtons in after_opening_airways.dart

parent d7605fc2
No related branches found
No related tags found
No related merge requests found
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'camera_access.dart';
class AfterOpeningAirways extends StatefulWidget { class AfterOpeningAirways extends StatefulWidget {
AfterOpeningAirways({Key key, this.title}) : super(key: key); AfterOpeningAirways({Key key, this.title}) : super(key: key);
final String title; final String title;
...@@ -114,7 +116,13 @@ class _AfterOpeningAirwaysState extends State<AfterOpeningAirways> { ...@@ -114,7 +116,13 @@ class _AfterOpeningAirwaysState extends State<AfterOpeningAirways> {
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
color: Colors.blue[900])), color: Colors.blue[900])),
color: Colors.blue, color: Colors.blue,
onPressed: null ))), onPressed: () {
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => CameraAccess()),
);
}))),
SizedBox( SizedBox(
height: 10, height: 10,
), ),
...@@ -129,7 +137,13 @@ class _AfterOpeningAirwaysState extends State<AfterOpeningAirways> { ...@@ -129,7 +137,13 @@ class _AfterOpeningAirwaysState extends State<AfterOpeningAirways> {
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
color: Colors.blue[900])), color: Colors.blue[900])),
color: Colors.blue, color: Colors.blue,
onPressed: null))), onPressed: () {
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => CameraAccess()),
);
}))),
SizedBox( SizedBox(
height: 50, height: 50,
), ),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment