WIP
This commit is contained in:
parent
2c1ca87b3b
commit
f481967af1
|
@ -1,5 +1,6 @@
|
||||||
import 'dart:developer';
|
import 'dart:developer';
|
||||||
|
|
||||||
|
import 'package:flutter/gestures.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:google_fonts/google_fonts.dart';
|
import 'package:google_fonts/google_fonts.dart';
|
||||||
import 'package:hub/actions/actions.dart';
|
import 'package:hub/actions/actions.dart';
|
||||||
|
@ -9,6 +10,7 @@ import 'package:hub/backend/schema/enums/enums.dart';
|
||||||
import 'package:hub/components/organism_components/bottom_arrow_linked_locals_component/bottom_arrow_linked_locals_component_widget.dart';
|
import 'package:hub/components/organism_components/bottom_arrow_linked_locals_component/bottom_arrow_linked_locals_component_widget.dart';
|
||||||
import 'package:hub/components/organism_components/local_profile_component/local_profile_component_widget.dart';
|
import 'package:hub/components/organism_components/local_profile_component/local_profile_component_widget.dart';
|
||||||
import 'package:hub/components/organism_components/menu_component/menu_component_widget.dart';
|
import 'package:hub/components/organism_components/menu_component/menu_component_widget.dart';
|
||||||
|
import 'package:hub/flutter_flow/flutter_flow_icon_button.dart';
|
||||||
import 'package:hub/flutter_flow/flutter_flow_theme.dart';
|
import 'package:hub/flutter_flow/flutter_flow_theme.dart';
|
||||||
import 'package:hub/flutter_flow/flutter_flow_util.dart';
|
import 'package:hub/flutter_flow/flutter_flow_util.dart';
|
||||||
import 'package:hub/pages/home_page/home_page_model.dart';
|
import 'package:hub/pages/home_page/home_page_model.dart';
|
||||||
|
@ -121,7 +123,9 @@ class _HomePageWidgetState extends State<HomePageWidget> {
|
||||||
backgroundColor: FlutterFlowTheme.of(context).secondaryBackground,
|
backgroundColor: FlutterFlowTheme.of(context).secondaryBackground,
|
||||||
// drawer: buildDrawer(context),
|
// drawer: buildDrawer(context),
|
||||||
drawerEnableOpenDragGesture: true,
|
drawerEnableOpenDragGesture: true,
|
||||||
endDrawer: CustomDrawer(model: _model),
|
drawerDragStartBehavior: DragStartBehavior.start,
|
||||||
|
|
||||||
|
drawer: CustomDrawer(model: _model),
|
||||||
body: buildPage(context, localStatus),
|
body: buildPage(context, localStatus),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
@ -158,10 +162,14 @@ class _HomePageWidgetState extends State<HomePageWidget> {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
Widget createHeader(BuildContext context) {
|
Row createHeader(BuildContext context) {
|
||||||
return Container(
|
return Row(
|
||||||
width: MediaQuery.of(context).size.width,
|
mainAxisSize: MainAxisSize.max,
|
||||||
height: MediaQuery.of(context).size.height * 0.12,
|
children: [
|
||||||
|
Expanded(
|
||||||
|
child: Container(
|
||||||
|
width: 100.0,
|
||||||
|
height: 100.0,
|
||||||
decoration: const BoxDecoration(
|
decoration: const BoxDecoration(
|
||||||
color: Color(0xFF1AAB5F),
|
color: Color(0xFF1AAB5F),
|
||||||
),
|
),
|
||||||
|
@ -169,24 +177,43 @@ class _HomePageWidgetState extends State<HomePageWidget> {
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
children: [
|
children: [
|
||||||
Padding(
|
Align(
|
||||||
padding: const EdgeInsetsDirectional.fromSTEB(0.0, 0.0, 0.0, 0.0),
|
alignment: const AlignmentDirectional(0.0, 1.0),
|
||||||
child: IconButton(
|
child: Container(
|
||||||
|
height: 50.0,
|
||||||
|
decoration: const BoxDecoration(),
|
||||||
|
child: Align(
|
||||||
|
alignment: const AlignmentDirectional(0.0, 0.0),
|
||||||
|
child: Row(
|
||||||
|
mainAxisSize: MainAxisSize.max,
|
||||||
|
children: [
|
||||||
|
Align(
|
||||||
|
alignment: const AlignmentDirectional(-1.0, 0.0),
|
||||||
|
child: Padding(
|
||||||
|
padding: const EdgeInsetsDirectional.fromSTEB(
|
||||||
|
10.0, 0.0, 0.0, 0.0),
|
||||||
|
child: FlutterFlowIconButton(
|
||||||
|
borderRadius: 20.0,
|
||||||
|
borderWidth: 1.0,
|
||||||
|
buttonSize: 40.0,
|
||||||
|
fillColor: FlutterFlowTheme.of(context).primary,
|
||||||
icon: const Icon(
|
icon: const Icon(
|
||||||
Icons.menu_rounded,
|
Icons.menu_rounded,
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
size: 28.0,
|
size: 28.0,
|
||||||
),
|
),
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
scaffoldKey.currentState!.openEndDrawer();
|
scaffoldKey.currentState!.openDrawer();
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Row(
|
),
|
||||||
mainAxisSize: MainAxisSize.max,
|
Align(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
alignment: const AlignmentDirectional(-1.0, 0.0),
|
||||||
children: [
|
child: Padding(
|
||||||
ClipRRect(
|
padding: const EdgeInsetsDirectional.fromSTEB(
|
||||||
|
60.0, 15.0, 0.0, 0.0),
|
||||||
|
child: ClipRRect(
|
||||||
borderRadius: BorderRadius.circular(8.0),
|
borderRadius: BorderRadius.circular(8.0),
|
||||||
child: Image.asset(
|
child: Image.asset(
|
||||||
'assets/images/logo.png',
|
'assets/images/logo.png',
|
||||||
|
@ -195,21 +222,62 @@ class _HomePageWidgetState extends State<HomePageWidget> {
|
||||||
fit: BoxFit.none,
|
fit: BoxFit.none,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Text(
|
),
|
||||||
|
),
|
||||||
|
Align(
|
||||||
|
alignment: const AlignmentDirectional(0.0, 0.0),
|
||||||
|
child: Padding(
|
||||||
|
padding: const EdgeInsetsDirectional.fromSTEB(
|
||||||
|
0.0, 15.0, 0.0, 0.0),
|
||||||
|
child: Text(
|
||||||
'FRE ACCESS',
|
'FRE ACCESS',
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: FlutterFlowTheme.of(context)
|
||||||
fontFamily: FlutterFlowTheme.of(context).bodyMediumFamily,
|
.bodyMedium
|
||||||
|
.override(
|
||||||
|
fontFamily: FlutterFlowTheme.of(context)
|
||||||
|
.bodyMediumFamily,
|
||||||
color: FlutterFlowTheme.of(context).info,
|
color: FlutterFlowTheme.of(context).info,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
useGoogleFonts: GoogleFonts.asMap().containsKey(
|
useGoogleFonts: GoogleFonts.asMap()
|
||||||
FlutterFlowTheme.of(context).bodyMediumFamily),
|
.containsKey(
|
||||||
|
FlutterFlowTheme.of(context)
|
||||||
|
.bodyMediumFamily),
|
||||||
|
),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
const SizedBox(),
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
// Align(
|
||||||
|
// alignment: const AlignmentDirectional(0.0, 1.0),
|
||||||
|
// child: Container(
|
||||||
|
// width: 100.0,
|
||||||
|
// height: 50.0,
|
||||||
|
// decoration: const BoxDecoration(),
|
||||||
|
// child: Align(
|
||||||
|
// alignment: const AlignmentDirectional(1.0, 1.0),
|
||||||
|
// child: FlutterFlowIconButton(
|
||||||
|
// borderRadius: 20.0,
|
||||||
|
// borderWidth: 1.0,
|
||||||
|
// buttonSize: 40.0,
|
||||||
|
// icon: Icon(
|
||||||
|
// Icons.notifications_sharp,
|
||||||
|
// color: FlutterFlowTheme.of(context).info,
|
||||||
|
// size: 24.0,
|
||||||
|
// ),
|
||||||
|
// onPressed: () {},
|
||||||
|
// ),
|
||||||
|
// ),
|
||||||
|
// ),
|
||||||
|
// ),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue