Skip to content

Instantly share code, notes, and snippets.

@hongsw
Created October 17, 2023 10:55
Show Gist options
  • Save hongsw/4958e76da4d0e67acc9977283dba3cca to your computer and use it in GitHub Desktop.
Save hongsw/4958e76da4d0e67acc9977283dba3cca to your computer and use it in GitHub Desktop.
gpt4v test
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: MedicalicHome(),
);
}
}
class MedicalicHome extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
body: SafeArea(
child: Padding(
padding: const EdgeInsets.all(16.0),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Icon(Icons.search),
Text(
'Medicalic',
style: TextStyle(
fontWeight: FontWeight.bold,
fontSize: 24,
),
),
CircleAvatar(
backgroundImage: AssetImage('path_to_your_image'), // Add your avatar image here
),
],
),
SizedBox(height: 20),
Row(
mainAxisAlignment: MainAxisAlignment.spaceAround,
children: [
_buildIconOption(Icons.people, 'Doctors'),
_buildIconOption(Icons.thermostat, 'Therm'),
_buildIconOption(Icons.note, 'EHR'),
],
),
SizedBox(height: 20),
ListTile(
title: Text(
'Ruby Melinda Charles',
style: TextStyle(fontWeight: FontWeight.bold, fontSize: 18),
),
subtitle: Text('Psychology Specialist'),
trailing: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text('3 yrs Experience'),
SizedBox(height: 4),
Text('4.7'),
Text('362 Reviews'),
],
),
),
SizedBox(height: 20),
ListTile(
title: Text(
'Glucose Level',
style: TextStyle(fontWeight: FontWeight.bold, fontSize: 18),
),
subtitle: Text('Empowering You with Healthy Glucose Levels.'),
trailing: Text('168,93 mg/dL'),
),
SizedBox(height: 20),
ListTile(
title: Text(
'Heart Rate',
style: TextStyle(fontWeight: FontWeight.bold, fontSize: 18),
),
subtitle: Text('Monitoring Hearts, One Beat at a Time.'),
trailing: Text('24,32 Bpm'),
),
Spacer(),
Row(
mainAxisAlignment: MainAxisAlignment.spaceAround,
children: [
Icon(Icons.home),
Icon(Icons.calendar_today),
Icon(Icons.message),
Icon(Icons.person),
],
)
],
),
),
),
);
}
Widget _buildIconOption(IconData icon, String label) {
return Column(
children: [
Container(
decoration: BoxDecoration(
color: Colors.blue,
borderRadius: BorderRadius.circular(50),
),
padding: EdgeInsets.all(10.0),
child: Icon(
icon,
color: Colors.white,
size: 24.0,
),
),
SizedBox(height: 10),
Text(
label,
style: TextStyle(
fontSize: 16,
fontWeight: FontWeight.w500,
),
),
],
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment