header_view.dart
1.22 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
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
class HeaderView extends StatelessWidget {
const HeaderView({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
// TODO: implement build
return Container(
height: 320,
color: const Color(0XFFFEFFFE),
child: Stack(
children: <Widget>[
Positioned(
left: 0,
right: 0,
top: 0,
bottom: 40,
child: Image.asset("assets/data/friends/banner.jpg" , fit: BoxFit.fill,)
),
Positioned(
right: 15,
bottom: 20,
child: SizedBox(
width: 60,
height: 60,
child: ClipRRect(borderRadius:BorderRadius.circular(8) , child: Image.asset("assets/data/friends/logo.jpg" , fit: BoxFit.cover,))
),
),
const Positioned(
right: 100,
bottom: 50,
child: Text("sunnytu" , style: TextStyle(fontSize: 20 , fontWeight: FontWeight.w600 , color: Colors.white , shadows:[
Shadow(color: Colors.black, offset: Offset(1, 1))
] ),),
)
],
),
);
}
}