117 lines
4.5 KiB
Dart
117 lines
4.5 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:get/get.dart';
|
|
import 'package:google_fonts/google_fonts.dart';
|
|
import '../controllers/about_controller.dart';
|
|
|
|
class AboutView extends GetView<AboutController> {
|
|
const AboutView({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
backgroundColor: Colors.blue[400],
|
|
body: SafeArea(
|
|
child: Padding(
|
|
padding: const EdgeInsets.all(20),
|
|
child: Column(
|
|
children: [
|
|
Row(
|
|
children: [
|
|
IconButton(
|
|
icon: const Icon(
|
|
Icons.arrow_back,
|
|
color: Colors.white, // Set the icon color to white
|
|
size: 30.0, // Set the icon size
|
|
),
|
|
onPressed: () => Get.back(),
|
|
),
|
|
const SizedBox(width: 8),
|
|
Expanded(
|
|
child: Container(
|
|
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 10),
|
|
child: Center(
|
|
child: Text(
|
|
'About Us',
|
|
style: GoogleFonts.poppins(
|
|
color: Colors.white,
|
|
fontSize: 30,
|
|
fontWeight: FontWeight.bold,
|
|
),
|
|
),
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
const SizedBox(height: 20),
|
|
Expanded(
|
|
child: SingleChildScrollView(
|
|
child: Stack(
|
|
clipBehavior: Clip.none,
|
|
children: [
|
|
Container(
|
|
margin: const EdgeInsets.only(top: 70),
|
|
padding: const EdgeInsets.fromLTRB(16, 80, 16, 16),
|
|
decoration: BoxDecoration(
|
|
color: Colors.white,
|
|
borderRadius: BorderRadius.circular(16),
|
|
boxShadow: [
|
|
BoxShadow(
|
|
color: Colors.black.withOpacity(0.1),
|
|
blurRadius: 10,
|
|
offset: const Offset(0, 5),
|
|
),
|
|
],
|
|
),
|
|
child: Column(
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
children: [
|
|
const SizedBox(height: 8),
|
|
Text(
|
|
'Kacamata Pintar',
|
|
style: GoogleFonts.poppins(
|
|
fontSize: 20,
|
|
fontWeight: FontWeight.bold,
|
|
color: Colors.blue[800],
|
|
),
|
|
),
|
|
const SizedBox(height: 4),
|
|
Text(
|
|
'Versi 2025',
|
|
style: GoogleFonts.poppins(
|
|
fontSize: 14,
|
|
color: Colors.grey[600],
|
|
),
|
|
),
|
|
const SizedBox(height: 16),
|
|
Text(
|
|
'Menunjukkan bahwa Kacamata Pintar dapat membantu penyandang tunanetra dalam beraktivitas dengan mendeteksi rintangan di depan mereka melalui output suara dari buzzer. Selain itu, kacamata pintar ini juga dilengkapi dengan fitur monitoring yang berfungsi sebagai alat mendeteksi keberadaan lingkungan sekitar, sehingga meningkatkan keamanan dan kenyamanan bagi penyandang tunanetra.',
|
|
textAlign: TextAlign.justify,
|
|
style: GoogleFonts.poppins(
|
|
fontSize: 14,
|
|
color: Colors.black87,
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
Positioned(
|
|
top: 0,
|
|
left: 16,
|
|
child: CircleAvatar(
|
|
radius: 70, // lebih besar
|
|
backgroundImage: AssetImage('assets/images/vr.png'),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|