-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathmain_bar.dart
More file actions
32 lines (30 loc) · 1013 Bytes
/
main_bar.dart
File metadata and controls
32 lines (30 loc) · 1013 Bytes
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
import 'package:flutter/material.dart';
import 'package:news/screen/details/detail_news.dart';
class MainBar extends StatelessWidget {
const MainBar({
Key? key,
}) : super(key: key);
@override
Widget build(BuildContext context) {
final screenWidth = MediaQuery.of(context).size.width;
return Column(
children: [
ClipRRect(
borderRadius: BorderRadius.circular(14),
child: Image.network(
'https://images.unsplash.com/photo-1543699539-33a389c5dcfe?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=2070&q=80',
),
),
SizedBox(height: 15),
Container(
width: screenWidth * 1,
padding: const EdgeInsets.only(left: 8),
child: Text(
'Over 10 crore Indians own cryptocurrency, highest in the world',
style: Theme.of(context).primaryTextTheme.headline5,
),
),
],
);
}
}