Add application source code and update project structure

This commit is contained in:
PhongMacbook
2025-11-05 03:20:59 +07:00
parent 95f8296211
commit b145c7844f
155 changed files with 9171 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
import '/flutter_flow/flutter_flow_theme.dart';
import '/flutter_flow/flutter_flow_util.dart';
import 'healthy_copy_widget.dart' show HealthyCopyWidget;
import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart';
import 'package:provider/provider.dart';
class HealthyCopyModel extends FlutterFlowModel<HealthyCopyWidget> {
@override
void initState(BuildContext context) {}
@override
void dispose() {}
}

View File

@@ -0,0 +1,107 @@
import '/flutter_flow/flutter_flow_theme.dart';
import '/flutter_flow/flutter_flow_util.dart';
import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart';
import 'package:provider/provider.dart';
import 'healthy_copy_model.dart';
export 'healthy_copy_model.dart';
class HealthyCopyWidget extends StatefulWidget {
const HealthyCopyWidget({super.key});
@override
State<HealthyCopyWidget> createState() => _HealthyCopyWidgetState();
}
class _HealthyCopyWidgetState extends State<HealthyCopyWidget> {
late HealthyCopyModel _model;
@override
void setState(VoidCallback callback) {
super.setState(callback);
_model.onUpdate();
}
@override
void initState() {
super.initState();
_model = createModel(context, () => HealthyCopyModel());
}
@override
void dispose() {
_model.maybeDispose();
super.dispose();
}
@override
Widget build(BuildContext context) {
return Padding(
padding: EdgeInsetsDirectional.fromSTEB(16.0, 12.0, 16.0, 12.0),
child: Container(
width: double.infinity,
decoration: BoxDecoration(
color: FlutterFlowTheme.of(context).secondaryBackground,
boxShadow: [
BoxShadow(
blurRadius: 7.0,
color: Color(0x2F1D2429),
offset: Offset(
0.0,
3.0,
),
)
],
borderRadius: BorderRadius.circular(8.0),
),
child: Padding(
padding: EdgeInsets.all(12.0),
child: Column(
mainAxisSize: MainAxisSize.max,
children: [
ClipRRect(
borderRadius: BorderRadius.circular(8.0),
child: Image.asset(
'assets/images/sun-eye.jpg',
width: double.infinity,
height: 100.0,
fit: BoxFit.cover,
),
),
Padding(
padding: EdgeInsetsDirectional.fromSTEB(0.0, 8.0, 0.0, 8.0),
child: Row(
mainAxisSize: MainAxisSize.max,
children: [
Text(
'The Eyes',
style: FlutterFlowTheme.of(context).bodyLarge.override(
fontFamily: 'Inter',
letterSpacing: 0.0,
),
),
],
),
),
Row(
mainAxisSize: MainAxisSize.max,
children: [
Expanded(
child: Text(
'UV exposure can contribute to macular degeneration, a leading cause of age-related blindness.',
style: FlutterFlowTheme.of(context).labelMedium.override(
fontFamily: 'Inter',
letterSpacing: 0.0,
),
),
),
],
),
],
),
),
),
);
}
}