-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathdetailNews.dart
More file actions
47 lines (45 loc) · 1.17 KB
/
detailNews.dart
File metadata and controls
47 lines (45 loc) · 1.17 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
import 'package:flutter/material.dart';
import 'package:newsapp/screen/home/widget/mainbar.dart';
class DetailNews extends StatelessWidget {
static const routeName = 'DetailName';
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
backgroundColor: Colors.white,
elevation: 0,
actions: [
Padding(
padding: const EdgeInsets.all(8.0),
child: Icon(
Icons.share,
color: Colors.black,
),
)
],
leading: IconButton(
onPressed: () {
Navigator.of(context).pop();
},
icon: Icon(
Icons.arrow_back_sharp,
color: Colors.black,
),
),
),
body: SafeArea(
child: SingleChildScrollView(
child: Padding(
padding: const EdgeInsets.symmetric(vertical: 10, horizontal: 8),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
// Main_bar(),
const SizedBox(height:8),
],
),
),
)),
);
}
}