-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path17.dart
34 lines (33 loc) · 958 Bytes
/
17.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import 'package:sizer/sizer.dart';
import 'package:flutter/material.dart';
import 'package:untitled/navigationdetail.dart';
class navigator1 extends StatelessWidget{
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('Ali'),
actions: [GestureDetector(
onTap: (){
// Navigator.pop(context);
//Navigator.push(context, MaterialPageRoute(builder: (context) => Navigationdetailed()));
Navigator.pushNamed(context, '/second-screen');
},
child: Icon(Icons.arrow_forward))],
),
body: GestureDetector(
onTap: (){
Navigator.push(context, MaterialPageRoute(builder: (context) => Navigationdetailed()));
},
child: Center(
child: Container(
height: 15.h,
width: 50.w,
color: Colors.limeAccent,
child: Center(child: Text('Home Page')),
),
),
),
);
}
}