50 lines
1.3 KiB
Dart
50 lines
1.3 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:skripsi_getit/themes/colors.dart';
|
|
import 'package:skripsi_getit/themes/fonts.dart';
|
|
|
|
class WidgetTopHome extends StatelessWidget {
|
|
const WidgetTopHome({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Row(
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
children: [
|
|
Expanded(
|
|
flex: 3,
|
|
child: Column(
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
children: [
|
|
Text(
|
|
"Hello Welcome",
|
|
style: AppFonts.poppins(
|
|
fontSize: 20,
|
|
color: whiteColor,
|
|
fontWeight: FontWeight.bold,
|
|
),
|
|
),
|
|
Text(
|
|
"Watch your favorite movies here",
|
|
style: AppFonts.poppins(
|
|
fontSize: 14,
|
|
color: whiteColor,
|
|
fontWeight: FontWeight.w300,
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
InkWell(
|
|
onTap: () {
|
|
Navigator.pushNamed(context, '/profile');
|
|
},
|
|
child: const CircleAvatar(
|
|
radius: 20,
|
|
backgroundImage: AssetImage('images/killua.jpg'),
|
|
),
|
|
),
|
|
],
|
|
);
|
|
}
|
|
}
|