1810 lines
109 KiB
Dart
1810 lines
109 KiB
Dart
import '/components/popup/popup_widget.dart';
|
|
import '/flutter_flow/flutter_flow_animations.dart';
|
|
import '/flutter_flow/flutter_flow_theme.dart';
|
|
import '/flutter_flow/flutter_flow_util.dart';
|
|
import '/flutter_flow/flutter_flow_widgets.dart';
|
|
import 'dart:math';
|
|
import 'package:cached_network_image/cached_network_image.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:flutter/scheduler.dart';
|
|
import 'package:flutter_animate/flutter_animate.dart';
|
|
import 'package:google_fonts/google_fonts.dart';
|
|
import 'package:provider/provider.dart';
|
|
|
|
import 'settings_model.dart';
|
|
export 'settings_model.dart';
|
|
|
|
class SettingsWidget extends StatefulWidget {
|
|
const SettingsWidget({super.key});
|
|
|
|
@override
|
|
State<SettingsWidget> createState() => _SettingsWidgetState();
|
|
}
|
|
|
|
class _SettingsWidgetState extends State<SettingsWidget>
|
|
with TickerProviderStateMixin {
|
|
late SettingsModel _model;
|
|
|
|
final scaffoldKey = GlobalKey<ScaffoldState>();
|
|
|
|
final animationsMap = <String, AnimationInfo>{};
|
|
|
|
@override
|
|
void initState() {
|
|
super.initState();
|
|
_model = createModel(context, () => SettingsModel());
|
|
|
|
animationsMap.addAll({
|
|
'containerOnPageLoadAnimation1': AnimationInfo(
|
|
trigger: AnimationTrigger.onPageLoad,
|
|
effectsBuilder: () => [
|
|
FadeEffect(
|
|
curve: Curves.easeInOut,
|
|
delay: 0.0.ms,
|
|
duration: 600.0.ms,
|
|
begin: 0.0,
|
|
end: 1.0,
|
|
),
|
|
MoveEffect(
|
|
curve: Curves.easeInOut,
|
|
delay: 0.0.ms,
|
|
duration: 600.0.ms,
|
|
begin: Offset(0.0, 90.0),
|
|
end: Offset(0.0, 0.0),
|
|
),
|
|
],
|
|
),
|
|
'containerOnPageLoadAnimation2': AnimationInfo(
|
|
trigger: AnimationTrigger.onPageLoad,
|
|
effectsBuilder: () => [
|
|
FadeEffect(
|
|
curve: Curves.easeInOut,
|
|
delay: 0.0.ms,
|
|
duration: 600.0.ms,
|
|
begin: 0.0,
|
|
end: 1.0,
|
|
),
|
|
MoveEffect(
|
|
curve: Curves.easeInOut,
|
|
delay: 0.0.ms,
|
|
duration: 600.0.ms,
|
|
begin: Offset(0.0, 90.0),
|
|
end: Offset(0.0, 0.0),
|
|
),
|
|
],
|
|
),
|
|
});
|
|
setupAnimations(
|
|
animationsMap.values.where((anim) =>
|
|
anim.trigger == AnimationTrigger.onActionTrigger ||
|
|
!anim.applyInitialState),
|
|
this,
|
|
);
|
|
}
|
|
|
|
@override
|
|
void dispose() {
|
|
_model.dispose();
|
|
|
|
super.dispose();
|
|
}
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
key: scaffoldKey,
|
|
backgroundColor: FlutterFlowTheme.of(context).secondaryBackground,
|
|
appBar: MediaQuery.sizeOf(context).width <= 991.0
|
|
? AppBar(
|
|
backgroundColor: FlutterFlowTheme.of(context).secondaryBackground,
|
|
automaticallyImplyLeading: false,
|
|
title: Text(
|
|
'My Profile',
|
|
style: FlutterFlowTheme.of(context).headlineMedium.override(
|
|
fontFamily: 'Outfit',
|
|
letterSpacing: 0,
|
|
),
|
|
),
|
|
actions: [],
|
|
centerTitle: false,
|
|
elevation: 0,
|
|
)
|
|
: null,
|
|
body: SafeArea(
|
|
top: true,
|
|
child: Stack(
|
|
children: [
|
|
Row(
|
|
mainAxisSize: MainAxisSize.max,
|
|
children: [
|
|
if (responsiveVisibility(
|
|
context: context,
|
|
phone: false,
|
|
tablet: false,
|
|
))
|
|
Container(
|
|
width: 270,
|
|
height: double.infinity,
|
|
decoration: BoxDecoration(
|
|
color: FlutterFlowTheme.of(context).primaryBackground,
|
|
borderRadius: BorderRadius.circular(0),
|
|
border: Border.all(
|
|
color: FlutterFlowTheme.of(context).alternate,
|
|
width: 1,
|
|
),
|
|
),
|
|
child: Padding(
|
|
padding: EdgeInsetsDirectional.fromSTEB(0, 24, 0, 16),
|
|
child: Column(
|
|
mainAxisSize: MainAxisSize.max,
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
children: [
|
|
Padding(
|
|
padding:
|
|
EdgeInsetsDirectional.fromSTEB(16, 0, 16, 12),
|
|
child: Row(
|
|
mainAxisSize: MainAxisSize.max,
|
|
children: [
|
|
Icon(
|
|
Icons.add_task_rounded,
|
|
color: FlutterFlowTheme.of(context).primary,
|
|
size: 32,
|
|
),
|
|
Padding(
|
|
padding: EdgeInsetsDirectional.fromSTEB(
|
|
12, 0, 0, 0),
|
|
child: Text(
|
|
'check.io',
|
|
style: FlutterFlowTheme.of(context)
|
|
.headlineMedium
|
|
.override(
|
|
fontFamily: 'Outfit',
|
|
letterSpacing: 0,
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
Divider(
|
|
height: 12,
|
|
thickness: 2,
|
|
color: FlutterFlowTheme.of(context).alternate,
|
|
),
|
|
Expanded(
|
|
child: Column(
|
|
mainAxisSize: MainAxisSize.max,
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
children: [
|
|
Padding(
|
|
padding: EdgeInsetsDirectional.fromSTEB(
|
|
16, 12, 0, 0),
|
|
child: Text(
|
|
'Platform Navigation',
|
|
style: FlutterFlowTheme.of(context)
|
|
.labelMedium
|
|
.override(
|
|
fontFamily: 'Readex Pro',
|
|
letterSpacing: 0,
|
|
),
|
|
),
|
|
),
|
|
Padding(
|
|
padding: EdgeInsetsDirectional.fromSTEB(
|
|
16, 0, 16, 0),
|
|
child: AnimatedContainer(
|
|
duration: Duration(milliseconds: 200),
|
|
curve: Curves.easeInOut,
|
|
width: double.infinity,
|
|
height: 44,
|
|
decoration: BoxDecoration(
|
|
color: FlutterFlowTheme.of(context)
|
|
.primaryBackground,
|
|
borderRadius: BorderRadius.circular(12),
|
|
shape: BoxShape.rectangle,
|
|
),
|
|
child: Padding(
|
|
padding: EdgeInsetsDirectional.fromSTEB(
|
|
8, 0, 6, 0),
|
|
child: Row(
|
|
mainAxisSize: MainAxisSize.max,
|
|
children: [
|
|
Icon(
|
|
Icons.space_dashboard,
|
|
color: FlutterFlowTheme.of(context)
|
|
.primaryText,
|
|
size: 24,
|
|
),
|
|
Padding(
|
|
padding:
|
|
EdgeInsetsDirectional.fromSTEB(
|
|
12, 0, 0, 0),
|
|
child: Text(
|
|
'Dashboard',
|
|
style:
|
|
FlutterFlowTheme.of(context)
|
|
.bodyMedium
|
|
.override(
|
|
fontFamily:
|
|
'Readex Pro',
|
|
letterSpacing: 0,
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
),
|
|
Padding(
|
|
padding: EdgeInsetsDirectional.fromSTEB(
|
|
16, 0, 16, 0),
|
|
child: AnimatedContainer(
|
|
duration: Duration(milliseconds: 200),
|
|
curve: Curves.easeInOut,
|
|
width: double.infinity,
|
|
height: 44,
|
|
decoration: BoxDecoration(
|
|
color: FlutterFlowTheme.of(context)
|
|
.primaryBackground,
|
|
borderRadius: BorderRadius.circular(12),
|
|
shape: BoxShape.rectangle,
|
|
),
|
|
child: Padding(
|
|
padding: EdgeInsetsDirectional.fromSTEB(
|
|
8, 0, 6, 0),
|
|
child: Row(
|
|
mainAxisSize: MainAxisSize.max,
|
|
children: [
|
|
Icon(
|
|
Icons.forum_rounded,
|
|
color: FlutterFlowTheme.of(context)
|
|
.primaryText,
|
|
size: 24,
|
|
),
|
|
Padding(
|
|
padding:
|
|
EdgeInsetsDirectional.fromSTEB(
|
|
12, 0, 0, 0),
|
|
child: Text(
|
|
'Chats',
|
|
style:
|
|
FlutterFlowTheme.of(context)
|
|
.bodyMedium
|
|
.override(
|
|
fontFamily:
|
|
'Readex Pro',
|
|
letterSpacing: 0,
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
),
|
|
Padding(
|
|
padding: EdgeInsetsDirectional.fromSTEB(
|
|
16, 0, 16, 0),
|
|
child: AnimatedContainer(
|
|
duration: Duration(milliseconds: 200),
|
|
curve: Curves.easeInOut,
|
|
width: double.infinity,
|
|
height: 44,
|
|
decoration: BoxDecoration(
|
|
color: FlutterFlowTheme.of(context)
|
|
.primaryBackground,
|
|
borderRadius: BorderRadius.circular(12),
|
|
shape: BoxShape.rectangle,
|
|
),
|
|
child: Padding(
|
|
padding: EdgeInsetsDirectional.fromSTEB(
|
|
8, 0, 6, 0),
|
|
child: Row(
|
|
mainAxisSize: MainAxisSize.max,
|
|
children: [
|
|
Icon(
|
|
Icons.work,
|
|
color: FlutterFlowTheme.of(context)
|
|
.primaryText,
|
|
size: 24,
|
|
),
|
|
Padding(
|
|
padding:
|
|
EdgeInsetsDirectional.fromSTEB(
|
|
12, 0, 0, 0),
|
|
child: Text(
|
|
'Projects',
|
|
style:
|
|
FlutterFlowTheme.of(context)
|
|
.bodyMedium
|
|
.override(
|
|
fontFamily:
|
|
'Readex Pro',
|
|
letterSpacing: 0,
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
),
|
|
Padding(
|
|
padding: EdgeInsetsDirectional.fromSTEB(
|
|
16, 0, 16, 0),
|
|
child: AnimatedContainer(
|
|
duration: Duration(milliseconds: 200),
|
|
curve: Curves.easeInOut,
|
|
width: double.infinity,
|
|
height: 44,
|
|
decoration: BoxDecoration(
|
|
color:
|
|
FlutterFlowTheme.of(context).accent1,
|
|
borderRadius: BorderRadius.circular(12),
|
|
shape: BoxShape.rectangle,
|
|
),
|
|
child: Padding(
|
|
padding: EdgeInsetsDirectional.fromSTEB(
|
|
8, 0, 6, 0),
|
|
child: Row(
|
|
mainAxisSize: MainAxisSize.max,
|
|
children: [
|
|
Icon(
|
|
Icons.receipt_rounded,
|
|
color: FlutterFlowTheme.of(context)
|
|
.primary,
|
|
size: 24,
|
|
),
|
|
Expanded(
|
|
child: Padding(
|
|
padding: EdgeInsetsDirectional
|
|
.fromSTEB(12, 0, 0, 0),
|
|
child: Text(
|
|
'Recent Orders',
|
|
style:
|
|
FlutterFlowTheme.of(context)
|
|
.bodyMedium
|
|
.override(
|
|
fontFamily:
|
|
'Readex Pro',
|
|
letterSpacing: 0,
|
|
),
|
|
),
|
|
),
|
|
),
|
|
Container(
|
|
height: 32,
|
|
decoration: BoxDecoration(
|
|
color:
|
|
FlutterFlowTheme.of(context)
|
|
.primary,
|
|
borderRadius:
|
|
BorderRadius.circular(8),
|
|
),
|
|
child: Align(
|
|
alignment:
|
|
AlignmentDirectional(0, 0),
|
|
child: Padding(
|
|
padding: EdgeInsetsDirectional
|
|
.fromSTEB(8, 4, 8, 4),
|
|
child: Text(
|
|
'12',
|
|
style: FlutterFlowTheme.of(
|
|
context)
|
|
.bodyMedium
|
|
.override(
|
|
fontFamily:
|
|
'Readex Pro',
|
|
color:
|
|
FlutterFlowTheme.of(
|
|
context)
|
|
.info,
|
|
letterSpacing: 0,
|
|
),
|
|
),
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
),
|
|
Padding(
|
|
padding: EdgeInsetsDirectional.fromSTEB(
|
|
16, 0, 0, 0),
|
|
child: Text(
|
|
'Settings',
|
|
style: FlutterFlowTheme.of(context)
|
|
.labelMedium
|
|
.override(
|
|
fontFamily: 'Readex Pro',
|
|
letterSpacing: 0,
|
|
),
|
|
),
|
|
),
|
|
Padding(
|
|
padding: EdgeInsetsDirectional.fromSTEB(
|
|
16, 0, 16, 0),
|
|
child: AnimatedContainer(
|
|
duration: Duration(milliseconds: 200),
|
|
curve: Curves.easeInOut,
|
|
width: double.infinity,
|
|
height: 44,
|
|
decoration: BoxDecoration(
|
|
color: FlutterFlowTheme.of(context)
|
|
.primaryBackground,
|
|
borderRadius: BorderRadius.circular(12),
|
|
shape: BoxShape.rectangle,
|
|
),
|
|
child: Padding(
|
|
padding: EdgeInsetsDirectional.fromSTEB(
|
|
8, 0, 6, 0),
|
|
child: Row(
|
|
mainAxisSize: MainAxisSize.max,
|
|
children: [
|
|
Icon(
|
|
Icons.attach_money_rounded,
|
|
color: FlutterFlowTheme.of(context)
|
|
.primaryText,
|
|
size: 24,
|
|
),
|
|
Padding(
|
|
padding:
|
|
EdgeInsetsDirectional.fromSTEB(
|
|
12, 0, 0, 0),
|
|
child: Text(
|
|
'Billing',
|
|
style:
|
|
FlutterFlowTheme.of(context)
|
|
.bodyMedium
|
|
.override(
|
|
fontFamily:
|
|
'Readex Pro',
|
|
letterSpacing: 0,
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
),
|
|
Padding(
|
|
padding: EdgeInsetsDirectional.fromSTEB(
|
|
16, 0, 16, 0),
|
|
child: AnimatedContainer(
|
|
duration: Duration(milliseconds: 200),
|
|
curve: Curves.easeInOut,
|
|
width: double.infinity,
|
|
height: 44,
|
|
decoration: BoxDecoration(
|
|
color: FlutterFlowTheme.of(context)
|
|
.primaryBackground,
|
|
borderRadius: BorderRadius.circular(12),
|
|
shape: BoxShape.rectangle,
|
|
),
|
|
child: Padding(
|
|
padding: EdgeInsetsDirectional.fromSTEB(
|
|
8, 0, 6, 0),
|
|
child: Row(
|
|
mainAxisSize: MainAxisSize.max,
|
|
children: [
|
|
Icon(
|
|
Icons.wifi_tethering_rounded,
|
|
color: FlutterFlowTheme.of(context)
|
|
.primaryText,
|
|
size: 24,
|
|
),
|
|
Padding(
|
|
padding:
|
|
EdgeInsetsDirectional.fromSTEB(
|
|
12, 0, 0, 0),
|
|
child: Text(
|
|
'Explore',
|
|
style:
|
|
FlutterFlowTheme.of(context)
|
|
.bodyMedium
|
|
.override(
|
|
fontFamily:
|
|
'Readex Pro',
|
|
letterSpacing: 0,
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
),
|
|
].divide(SizedBox(height: 12)),
|
|
),
|
|
),
|
|
Align(
|
|
alignment: AlignmentDirectional(0, -1),
|
|
child: Padding(
|
|
padding:
|
|
EdgeInsetsDirectional.fromSTEB(0, 8, 0, 16),
|
|
child: Container(
|
|
width: 250,
|
|
height: 50,
|
|
decoration: BoxDecoration(
|
|
color: FlutterFlowTheme.of(context)
|
|
.primaryBackground,
|
|
borderRadius: BorderRadius.circular(12),
|
|
border: Border.all(
|
|
color:
|
|
FlutterFlowTheme.of(context).alternate,
|
|
width: 1,
|
|
),
|
|
),
|
|
child: Padding(
|
|
padding: EdgeInsets.all(4),
|
|
child: Row(
|
|
mainAxisSize: MainAxisSize.max,
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
children: [
|
|
Expanded(
|
|
child: InkWell(
|
|
splashColor: Colors.transparent,
|
|
focusColor: Colors.transparent,
|
|
hoverColor: Colors.transparent,
|
|
highlightColor: Colors.transparent,
|
|
onTap: () async {
|
|
setDarkModeSetting(
|
|
context, ThemeMode.light);
|
|
},
|
|
child: Container(
|
|
width: 115,
|
|
height: 100,
|
|
decoration: BoxDecoration(
|
|
color: Theme.of(context)
|
|
.brightness ==
|
|
Brightness.light
|
|
? FlutterFlowTheme.of(context)
|
|
.secondaryBackground
|
|
: FlutterFlowTheme.of(context)
|
|
.primaryBackground,
|
|
borderRadius:
|
|
BorderRadius.circular(10),
|
|
border: Border.all(
|
|
color: valueOrDefault<Color>(
|
|
Theme.of(context)
|
|
.brightness ==
|
|
Brightness.light
|
|
? FlutterFlowTheme.of(
|
|
context)
|
|
.alternate
|
|
: FlutterFlowTheme.of(
|
|
context)
|
|
.primaryBackground,
|
|
FlutterFlowTheme.of(context)
|
|
.alternate,
|
|
),
|
|
width: 1,
|
|
),
|
|
),
|
|
child: Row(
|
|
mainAxisSize: MainAxisSize.max,
|
|
mainAxisAlignment:
|
|
MainAxisAlignment.center,
|
|
children: [
|
|
Icon(
|
|
Icons.wb_sunny_rounded,
|
|
color: Theme.of(context)
|
|
.brightness ==
|
|
Brightness.light
|
|
? FlutterFlowTheme.of(
|
|
context)
|
|
.primaryText
|
|
: FlutterFlowTheme.of(
|
|
context)
|
|
.secondaryText,
|
|
size: 16,
|
|
),
|
|
Padding(
|
|
padding: EdgeInsetsDirectional
|
|
.fromSTEB(4, 0, 0, 0),
|
|
child: Text(
|
|
'Light Mode',
|
|
style:
|
|
FlutterFlowTheme.of(
|
|
context)
|
|
.bodyMedium
|
|
.override(
|
|
fontFamily:
|
|
'Readex Pro',
|
|
color: Theme.of(context)
|
|
.brightness ==
|
|
Brightness
|
|
.light
|
|
? FlutterFlowTheme.of(
|
|
context)
|
|
.primaryText
|
|
: FlutterFlowTheme.of(
|
|
context)
|
|
.secondaryText,
|
|
letterSpacing: 0,
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
),
|
|
Expanded(
|
|
child: InkWell(
|
|
splashColor: Colors.transparent,
|
|
focusColor: Colors.transparent,
|
|
hoverColor: Colors.transparent,
|
|
highlightColor: Colors.transparent,
|
|
onTap: () async {
|
|
setDarkModeSetting(
|
|
context, ThemeMode.dark);
|
|
},
|
|
child: Container(
|
|
width: 115,
|
|
height: 100,
|
|
decoration: BoxDecoration(
|
|
color: Theme.of(context)
|
|
.brightness ==
|
|
Brightness.dark
|
|
? FlutterFlowTheme.of(context)
|
|
.secondaryBackground
|
|
: FlutterFlowTheme.of(context)
|
|
.primaryBackground,
|
|
borderRadius:
|
|
BorderRadius.circular(10),
|
|
border: Border.all(
|
|
color: valueOrDefault<Color>(
|
|
Theme.of(context)
|
|
.brightness ==
|
|
Brightness.dark
|
|
? FlutterFlowTheme.of(
|
|
context)
|
|
.alternate
|
|
: FlutterFlowTheme.of(
|
|
context)
|
|
.primaryBackground,
|
|
FlutterFlowTheme.of(context)
|
|
.primaryBackground,
|
|
),
|
|
width: 1,
|
|
),
|
|
),
|
|
child: Row(
|
|
mainAxisSize: MainAxisSize.max,
|
|
mainAxisAlignment:
|
|
MainAxisAlignment.center,
|
|
children: [
|
|
Icon(
|
|
Icons.nightlight_round,
|
|
color: Theme.of(context)
|
|
.brightness ==
|
|
Brightness.dark
|
|
? FlutterFlowTheme.of(
|
|
context)
|
|
.primaryText
|
|
: FlutterFlowTheme.of(
|
|
context)
|
|
.secondaryText,
|
|
size: 16,
|
|
),
|
|
Padding(
|
|
padding: EdgeInsetsDirectional
|
|
.fromSTEB(4, 0, 0, 0),
|
|
child: Text(
|
|
'Dark Mode',
|
|
style:
|
|
FlutterFlowTheme.of(
|
|
context)
|
|
.bodyMedium
|
|
.override(
|
|
fontFamily:
|
|
'Readex Pro',
|
|
color: Theme.of(context)
|
|
.brightness ==
|
|
Brightness
|
|
.dark
|
|
? FlutterFlowTheme.of(
|
|
context)
|
|
.primaryText
|
|
: FlutterFlowTheme.of(
|
|
context)
|
|
.secondaryText,
|
|
letterSpacing: 0,
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
),
|
|
),
|
|
Divider(
|
|
height: 12,
|
|
thickness: 2,
|
|
color: FlutterFlowTheme.of(context).alternate,
|
|
),
|
|
Padding(
|
|
padding:
|
|
EdgeInsetsDirectional.fromSTEB(16, 12, 16, 12),
|
|
child: Row(
|
|
mainAxisSize: MainAxisSize.max,
|
|
children: [
|
|
Container(
|
|
width: 50,
|
|
height: 50,
|
|
decoration: BoxDecoration(
|
|
color: FlutterFlowTheme.of(context).accent1,
|
|
borderRadius: BorderRadius.circular(12),
|
|
border: Border.all(
|
|
color:
|
|
FlutterFlowTheme.of(context).primary,
|
|
width: 2,
|
|
),
|
|
),
|
|
child: Padding(
|
|
padding: EdgeInsets.all(2),
|
|
child: ClipRRect(
|
|
borderRadius: BorderRadius.circular(8),
|
|
child: CachedNetworkImage(
|
|
fadeInDuration:
|
|
Duration(milliseconds: 500),
|
|
fadeOutDuration:
|
|
Duration(milliseconds: 500),
|
|
imageUrl:
|
|
'https://images.unsplash.com/photo-1624561172888-ac93c696e10c?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxzZWFyY2h8NjJ8fHVzZXJzfGVufDB8fDB8fA%3D%3D&auto=format&fit=crop&w=900&q=60',
|
|
width: 44,
|
|
height: 44,
|
|
fit: BoxFit.cover,
|
|
),
|
|
),
|
|
),
|
|
),
|
|
Expanded(
|
|
child: Padding(
|
|
padding: EdgeInsetsDirectional.fromSTEB(
|
|
12, 0, 0, 0),
|
|
child: Column(
|
|
mainAxisSize: MainAxisSize.max,
|
|
crossAxisAlignment:
|
|
CrossAxisAlignment.start,
|
|
children: [
|
|
Text(
|
|
'Casper Ghost',
|
|
style: FlutterFlowTheme.of(context)
|
|
.bodyLarge
|
|
.override(
|
|
fontFamily: 'Readex Pro',
|
|
letterSpacing: 0,
|
|
),
|
|
),
|
|
Text(
|
|
'admin@gmail.com',
|
|
style: FlutterFlowTheme.of(context)
|
|
.labelMedium
|
|
.override(
|
|
fontFamily: 'Readex Pro',
|
|
letterSpacing: 0,
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
Padding(
|
|
padding:
|
|
EdgeInsetsDirectional.fromSTEB(16, 0, 16, 0),
|
|
child: Row(
|
|
mainAxisSize: MainAxisSize.max,
|
|
mainAxisAlignment: MainAxisAlignment.end,
|
|
children: [
|
|
Icon(
|
|
Icons.menu_open_rounded,
|
|
color: FlutterFlowTheme.of(context)
|
|
.secondaryText,
|
|
size: 24,
|
|
),
|
|
],
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
Expanded(
|
|
child: Align(
|
|
alignment: AlignmentDirectional(0, 0),
|
|
child: SingleChildScrollView(
|
|
child: Column(
|
|
mainAxisSize: MainAxisSize.max,
|
|
children: [
|
|
if (responsiveVisibility(
|
|
context: context,
|
|
phone: false,
|
|
tablet: false,
|
|
))
|
|
Container(
|
|
width: double.infinity,
|
|
height: 24,
|
|
decoration: BoxDecoration(),
|
|
),
|
|
Align(
|
|
alignment: AlignmentDirectional(0, -1),
|
|
child: Padding(
|
|
padding:
|
|
EdgeInsetsDirectional.fromSTEB(16, 16, 16, 0),
|
|
child: Wrap(
|
|
spacing: 16,
|
|
runSpacing: 16,
|
|
alignment: WrapAlignment.center,
|
|
crossAxisAlignment: WrapCrossAlignment.start,
|
|
direction: Axis.horizontal,
|
|
runAlignment: WrapAlignment.center,
|
|
verticalDirection: VerticalDirection.down,
|
|
clipBehavior: Clip.none,
|
|
children: [
|
|
Container(
|
|
width: double.infinity,
|
|
constraints: BoxConstraints(
|
|
maxWidth: 390,
|
|
),
|
|
decoration: BoxDecoration(
|
|
color: FlutterFlowTheme.of(context)
|
|
.secondaryBackground,
|
|
borderRadius: BorderRadius.circular(12),
|
|
border: Border.all(
|
|
color: FlutterFlowTheme.of(context)
|
|
.alternate,
|
|
width: 1,
|
|
),
|
|
),
|
|
child: Column(
|
|
mainAxisSize: MainAxisSize.max,
|
|
children: [
|
|
Padding(
|
|
padding: EdgeInsets.all(16),
|
|
child: Row(
|
|
mainAxisSize: MainAxisSize.max,
|
|
children: [
|
|
Container(
|
|
width: 72,
|
|
height: 72,
|
|
decoration: BoxDecoration(
|
|
color: FlutterFlowTheme.of(
|
|
context)
|
|
.accent1,
|
|
borderRadius:
|
|
BorderRadius.circular(12),
|
|
border: Border.all(
|
|
color: FlutterFlowTheme.of(
|
|
context)
|
|
.primary,
|
|
width: 2,
|
|
),
|
|
),
|
|
child: Padding(
|
|
padding: EdgeInsets.all(2),
|
|
child: ClipRRect(
|
|
borderRadius:
|
|
BorderRadius.circular(
|
|
8),
|
|
child: CachedNetworkImage(
|
|
fadeInDuration: Duration(
|
|
milliseconds: 500),
|
|
fadeOutDuration: Duration(
|
|
milliseconds: 500),
|
|
imageUrl:
|
|
'https://images.unsplash.com/photo-1624561172888-ac93c696e10c?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxzZWFyY2h8NjJ8fHVzZXJzfGVufDB8fDB8fA%3D%3D&auto=format&fit=crop&w=900&q=60',
|
|
width: 44,
|
|
height: 44,
|
|
fit: BoxFit.cover,
|
|
),
|
|
),
|
|
),
|
|
),
|
|
Expanded(
|
|
child: Padding(
|
|
padding: EdgeInsetsDirectional
|
|
.fromSTEB(16, 4, 0, 4),
|
|
child: Column(
|
|
mainAxisSize:
|
|
MainAxisSize.max,
|
|
crossAxisAlignment:
|
|
CrossAxisAlignment
|
|
.start,
|
|
children: [
|
|
Text(
|
|
'Casper Ghost',
|
|
style: FlutterFlowTheme
|
|
.of(context)
|
|
.headlineSmall
|
|
.override(
|
|
fontFamily:
|
|
'Outfit',
|
|
letterSpacing: 0,
|
|
),
|
|
),
|
|
Padding(
|
|
padding:
|
|
EdgeInsetsDirectional
|
|
.fromSTEB(
|
|
0, 4, 0, 0),
|
|
child: Text(
|
|
'casper@ghustbusters.com',
|
|
style: FlutterFlowTheme
|
|
.of(context)
|
|
.labelMedium
|
|
.override(
|
|
fontFamily:
|
|
'Readex Pro',
|
|
letterSpacing:
|
|
0,
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
Divider(
|
|
height: 2,
|
|
thickness: 1,
|
|
color: FlutterFlowTheme.of(context)
|
|
.alternate,
|
|
),
|
|
Row(
|
|
mainAxisSize: MainAxisSize.max,
|
|
children: [
|
|
Expanded(
|
|
child: Padding(
|
|
padding: EdgeInsetsDirectional
|
|
.fromSTEB(0, 0, 0, 12),
|
|
child: Container(
|
|
width: 200,
|
|
decoration: BoxDecoration(
|
|
color: FlutterFlowTheme.of(
|
|
context)
|
|
.secondaryBackground,
|
|
borderRadius:
|
|
BorderRadius.circular(
|
|
8),
|
|
),
|
|
child: Padding(
|
|
padding:
|
|
EdgeInsetsDirectional
|
|
.fromSTEB(
|
|
12, 12, 12, 0),
|
|
child: Column(
|
|
mainAxisSize:
|
|
MainAxisSize.max,
|
|
mainAxisAlignment:
|
|
MainAxisAlignment
|
|
.center,
|
|
children: [
|
|
Icon(
|
|
Icons.receipt_rounded,
|
|
color: FlutterFlowTheme
|
|
.of(context)
|
|
.primary,
|
|
size: 44,
|
|
),
|
|
Padding(
|
|
padding:
|
|
EdgeInsetsDirectional
|
|
.fromSTEB(0,
|
|
8, 0, 4),
|
|
child: Text(
|
|
'2,200',
|
|
textAlign: TextAlign
|
|
.center,
|
|
style: FlutterFlowTheme
|
|
.of(context)
|
|
.headlineSmall
|
|
.override(
|
|
fontFamily:
|
|
'Outfit',
|
|
letterSpacing:
|
|
0,
|
|
),
|
|
),
|
|
),
|
|
Text(
|
|
'Orders Placed',
|
|
textAlign:
|
|
TextAlign.center,
|
|
style: FlutterFlowTheme
|
|
.of(context)
|
|
.labelMedium
|
|
.override(
|
|
fontFamily:
|
|
'Readex Pro',
|
|
letterSpacing:
|
|
0,
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
).animateOnPageLoad(animationsMap[
|
|
'containerOnPageLoadAnimation1']!),
|
|
),
|
|
),
|
|
Expanded(
|
|
child: Padding(
|
|
padding: EdgeInsetsDirectional
|
|
.fromSTEB(0, 0, 0, 12),
|
|
child: Container(
|
|
width: 200,
|
|
decoration: BoxDecoration(
|
|
color: FlutterFlowTheme.of(
|
|
context)
|
|
.secondaryBackground,
|
|
borderRadius:
|
|
BorderRadius.circular(
|
|
8),
|
|
),
|
|
child: Padding(
|
|
padding:
|
|
EdgeInsetsDirectional
|
|
.fromSTEB(
|
|
12, 12, 12, 0),
|
|
child: Column(
|
|
mainAxisSize:
|
|
MainAxisSize.max,
|
|
mainAxisAlignment:
|
|
MainAxisAlignment
|
|
.center,
|
|
children: [
|
|
Icon(
|
|
Icons
|
|
.ssid_chart_rounded,
|
|
color: FlutterFlowTheme
|
|
.of(context)
|
|
.primary,
|
|
size: 44,
|
|
),
|
|
Padding(
|
|
padding:
|
|
EdgeInsetsDirectional
|
|
.fromSTEB(0,
|
|
8, 0, 4),
|
|
child: Text(
|
|
'\$212.4k',
|
|
textAlign: TextAlign
|
|
.center,
|
|
style: FlutterFlowTheme
|
|
.of(context)
|
|
.headlineSmall
|
|
.override(
|
|
fontFamily:
|
|
'Outfit',
|
|
letterSpacing:
|
|
0,
|
|
),
|
|
),
|
|
),
|
|
Text(
|
|
'Money Earned',
|
|
textAlign:
|
|
TextAlign.center,
|
|
style: FlutterFlowTheme
|
|
.of(context)
|
|
.labelMedium
|
|
.override(
|
|
fontFamily:
|
|
'Readex Pro',
|
|
letterSpacing:
|
|
0,
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
).animateOnPageLoad(animationsMap[
|
|
'containerOnPageLoadAnimation2']!),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
],
|
|
),
|
|
),
|
|
Container(
|
|
width: double.infinity,
|
|
constraints: BoxConstraints(
|
|
maxWidth: 470,
|
|
),
|
|
decoration: BoxDecoration(),
|
|
child: Column(
|
|
mainAxisSize: MainAxisSize.max,
|
|
crossAxisAlignment:
|
|
CrossAxisAlignment.start,
|
|
children: [
|
|
Container(
|
|
width: double.infinity,
|
|
decoration: BoxDecoration(
|
|
color: FlutterFlowTheme.of(context)
|
|
.primaryBackground,
|
|
borderRadius:
|
|
BorderRadius.circular(12),
|
|
border: Border.all(
|
|
color:
|
|
FlutterFlowTheme.of(context)
|
|
.alternate,
|
|
),
|
|
),
|
|
child: Padding(
|
|
padding:
|
|
EdgeInsetsDirectional.fromSTEB(
|
|
16, 12, 0, 12),
|
|
child: Text(
|
|
'My Account Information',
|
|
style:
|
|
FlutterFlowTheme.of(context)
|
|
.labelMedium
|
|
.override(
|
|
fontFamily:
|
|
'Readex Pro',
|
|
letterSpacing: 0,
|
|
),
|
|
),
|
|
),
|
|
),
|
|
Padding(
|
|
padding:
|
|
EdgeInsetsDirectional.fromSTEB(
|
|
0, 0, 0, 1),
|
|
child: Container(
|
|
width: double.infinity,
|
|
height: 60,
|
|
decoration: BoxDecoration(
|
|
color:
|
|
FlutterFlowTheme.of(context)
|
|
.secondaryBackground,
|
|
boxShadow: [
|
|
BoxShadow(
|
|
blurRadius: 0,
|
|
color: FlutterFlowTheme.of(
|
|
context)
|
|
.alternate,
|
|
offset: Offset(
|
|
0,
|
|
1,
|
|
),
|
|
)
|
|
],
|
|
shape: BoxShape.rectangle,
|
|
),
|
|
child: Padding(
|
|
padding: EdgeInsetsDirectional
|
|
.fromSTEB(16, 0, 16, 0),
|
|
child: Column(
|
|
mainAxisSize: MainAxisSize.max,
|
|
mainAxisAlignment:
|
|
MainAxisAlignment.center,
|
|
children: [
|
|
Row(
|
|
mainAxisSize:
|
|
MainAxisSize.max,
|
|
children: [
|
|
Text(
|
|
'Change Password',
|
|
style: FlutterFlowTheme
|
|
.of(context)
|
|
.bodyLarge
|
|
.override(
|
|
fontFamily:
|
|
'Readex Pro',
|
|
letterSpacing: 0,
|
|
),
|
|
),
|
|
Expanded(
|
|
child: Align(
|
|
alignment:
|
|
AlignmentDirectional(
|
|
1, 0),
|
|
child: Icon(
|
|
Icons
|
|
.chevron_right_rounded,
|
|
color: FlutterFlowTheme
|
|
.of(context)
|
|
.secondaryText,
|
|
size: 20,
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
),
|
|
Padding(
|
|
padding:
|
|
EdgeInsetsDirectional.fromSTEB(
|
|
0, 0, 0, 1),
|
|
child: Container(
|
|
width: double.infinity,
|
|
height: 60,
|
|
decoration: BoxDecoration(
|
|
color:
|
|
FlutterFlowTheme.of(context)
|
|
.secondaryBackground,
|
|
boxShadow: [
|
|
BoxShadow(
|
|
blurRadius: 0,
|
|
color: FlutterFlowTheme.of(
|
|
context)
|
|
.alternate,
|
|
offset: Offset(
|
|
0,
|
|
1,
|
|
),
|
|
)
|
|
],
|
|
shape: BoxShape.rectangle,
|
|
),
|
|
child: Padding(
|
|
padding: EdgeInsetsDirectional
|
|
.fromSTEB(16, 0, 16, 0),
|
|
child: Column(
|
|
mainAxisSize: MainAxisSize.max,
|
|
mainAxisAlignment:
|
|
MainAxisAlignment.center,
|
|
children: [
|
|
Row(
|
|
mainAxisSize:
|
|
MainAxisSize.max,
|
|
children: [
|
|
Text(
|
|
'Edit Profile',
|
|
style:
|
|
FlutterFlowTheme.of(
|
|
context)
|
|
.bodyLarge
|
|
.override(
|
|
fontFamily:
|
|
'Readex Pro',
|
|
color: FlutterFlowTheme.of(
|
|
context)
|
|
.primaryText,
|
|
letterSpacing:
|
|
0,
|
|
),
|
|
),
|
|
Expanded(
|
|
child: Align(
|
|
alignment:
|
|
AlignmentDirectional(
|
|
1, 0),
|
|
child: Icon(
|
|
Icons
|
|
.chevron_right_rounded,
|
|
color: FlutterFlowTheme
|
|
.of(context)
|
|
.secondaryText,
|
|
size: 20,
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
),
|
|
Padding(
|
|
padding:
|
|
EdgeInsetsDirectional.fromSTEB(
|
|
0, 12, 0, 0),
|
|
child: Container(
|
|
width: double.infinity,
|
|
decoration: BoxDecoration(
|
|
color:
|
|
FlutterFlowTheme.of(context)
|
|
.primaryBackground,
|
|
borderRadius:
|
|
BorderRadius.circular(12),
|
|
border: Border.all(
|
|
color:
|
|
FlutterFlowTheme.of(context)
|
|
.alternate,
|
|
),
|
|
),
|
|
child: Padding(
|
|
padding: EdgeInsetsDirectional
|
|
.fromSTEB(16, 12, 0, 12),
|
|
child: Text(
|
|
'Support',
|
|
style:
|
|
FlutterFlowTheme.of(context)
|
|
.labelMedium
|
|
.override(
|
|
fontFamily:
|
|
'Readex Pro',
|
|
letterSpacing: 0,
|
|
),
|
|
),
|
|
),
|
|
),
|
|
),
|
|
Padding(
|
|
padding:
|
|
EdgeInsetsDirectional.fromSTEB(
|
|
0, 0, 0, 1),
|
|
child: InkWell(
|
|
splashColor: Colors.transparent,
|
|
focusColor: Colors.transparent,
|
|
hoverColor: Colors.transparent,
|
|
highlightColor: Colors.transparent,
|
|
onTap: () async {
|
|
context.pushNamed(
|
|
'SupportForm',
|
|
extra: <String, dynamic>{
|
|
kTransitionInfoKey:
|
|
TransitionInfo(
|
|
hasTransition: true,
|
|
transitionType:
|
|
PageTransitionType
|
|
.rightToLeft,
|
|
duration: Duration(
|
|
milliseconds: 250),
|
|
),
|
|
},
|
|
);
|
|
},
|
|
child: Container(
|
|
width: double.infinity,
|
|
height: 60,
|
|
decoration: BoxDecoration(
|
|
color:
|
|
FlutterFlowTheme.of(context)
|
|
.secondaryBackground,
|
|
boxShadow: [
|
|
BoxShadow(
|
|
blurRadius: 0,
|
|
color: FlutterFlowTheme.of(
|
|
context)
|
|
.alternate,
|
|
offset: Offset(
|
|
0,
|
|
1,
|
|
),
|
|
)
|
|
],
|
|
shape: BoxShape.rectangle,
|
|
),
|
|
child: Padding(
|
|
padding: EdgeInsetsDirectional
|
|
.fromSTEB(16, 0, 16, 0),
|
|
child: Column(
|
|
mainAxisSize:
|
|
MainAxisSize.max,
|
|
mainAxisAlignment:
|
|
MainAxisAlignment.center,
|
|
children: [
|
|
Row(
|
|
mainAxisSize:
|
|
MainAxisSize.max,
|
|
children: [
|
|
Text(
|
|
'Bug or Feature Request',
|
|
style: FlutterFlowTheme
|
|
.of(context)
|
|
.bodyLarge
|
|
.override(
|
|
fontFamily:
|
|
'Readex Pro',
|
|
color: FlutterFlowTheme.of(
|
|
context)
|
|
.primaryText,
|
|
letterSpacing:
|
|
0,
|
|
),
|
|
),
|
|
Expanded(
|
|
child: Align(
|
|
alignment:
|
|
AlignmentDirectional(
|
|
1, 0),
|
|
child: Icon(
|
|
Icons
|
|
.chevron_right_rounded,
|
|
color: FlutterFlowTheme
|
|
.of(context)
|
|
.secondaryText,
|
|
size: 20,
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
),
|
|
),
|
|
Padding(
|
|
padding:
|
|
EdgeInsetsDirectional.fromSTEB(
|
|
0, 0, 0, 1),
|
|
child: InkWell(
|
|
splashColor: Colors.transparent,
|
|
focusColor: Colors.transparent,
|
|
hoverColor: Colors.transparent,
|
|
highlightColor: Colors.transparent,
|
|
onTap: () async {
|
|
await showModalBottomSheet(
|
|
isScrollControlled: true,
|
|
backgroundColor:
|
|
Colors.transparent,
|
|
enableDrag: false,
|
|
useSafeArea: true,
|
|
context: context,
|
|
builder: (context) {
|
|
return Padding(
|
|
padding:
|
|
MediaQuery.viewInsetsOf(
|
|
context),
|
|
child: PopupWidget(),
|
|
);
|
|
},
|
|
).then((value) =>
|
|
safeSetState(() {}));
|
|
},
|
|
child: Container(
|
|
width: double.infinity,
|
|
height: 60,
|
|
decoration: BoxDecoration(
|
|
color:
|
|
FlutterFlowTheme.of(context)
|
|
.secondaryBackground,
|
|
boxShadow: [
|
|
BoxShadow(
|
|
blurRadius: 0,
|
|
color: FlutterFlowTheme.of(
|
|
context)
|
|
.alternate,
|
|
offset: Offset(
|
|
0,
|
|
1,
|
|
),
|
|
)
|
|
],
|
|
shape: BoxShape.rectangle,
|
|
),
|
|
child: Padding(
|
|
padding: EdgeInsetsDirectional
|
|
.fromSTEB(16, 0, 16, 0),
|
|
child: Column(
|
|
mainAxisSize:
|
|
MainAxisSize.max,
|
|
mainAxisAlignment:
|
|
MainAxisAlignment.center,
|
|
children: [
|
|
Row(
|
|
mainAxisSize:
|
|
MainAxisSize.max,
|
|
children: [
|
|
Text(
|
|
'Open-source licenses & other info',
|
|
style: FlutterFlowTheme
|
|
.of(context)
|
|
.bodyLarge
|
|
.override(
|
|
fontFamily:
|
|
'Readex Pro',
|
|
letterSpacing:
|
|
0,
|
|
),
|
|
),
|
|
Expanded(
|
|
child: Align(
|
|
alignment:
|
|
AlignmentDirectional(
|
|
1, 0),
|
|
child: Icon(
|
|
Icons
|
|
.chevron_right_rounded,
|
|
color: FlutterFlowTheme
|
|
.of(context)
|
|
.secondaryText,
|
|
size: 20,
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
),
|
|
),
|
|
Align(
|
|
alignment:
|
|
AlignmentDirectional(0, -1),
|
|
child: Padding(
|
|
padding: EdgeInsets.all(16),
|
|
child: Container(
|
|
width: double.infinity,
|
|
height: 50,
|
|
constraints: BoxConstraints(
|
|
maxWidth: 500,
|
|
),
|
|
decoration: BoxDecoration(
|
|
color:
|
|
FlutterFlowTheme.of(context)
|
|
.primaryBackground,
|
|
borderRadius:
|
|
BorderRadius.circular(12),
|
|
border: Border.all(
|
|
color: FlutterFlowTheme.of(
|
|
context)
|
|
.alternate,
|
|
width: 1,
|
|
),
|
|
),
|
|
child: Padding(
|
|
padding: EdgeInsets.all(4),
|
|
child: Row(
|
|
mainAxisSize:
|
|
MainAxisSize.max,
|
|
mainAxisAlignment:
|
|
MainAxisAlignment.start,
|
|
children: [
|
|
Expanded(
|
|
child: InkWell(
|
|
splashColor:
|
|
Colors.transparent,
|
|
focusColor:
|
|
Colors.transparent,
|
|
hoverColor:
|
|
Colors.transparent,
|
|
highlightColor:
|
|
Colors.transparent,
|
|
onTap: () async {
|
|
setDarkModeSetting(
|
|
context,
|
|
ThemeMode.light);
|
|
},
|
|
child: Container(
|
|
width: 115,
|
|
height: 100,
|
|
decoration:
|
|
BoxDecoration(
|
|
color: Theme.of(context)
|
|
.brightness ==
|
|
Brightness
|
|
.light
|
|
? FlutterFlowTheme.of(
|
|
context)
|
|
.secondaryBackground
|
|
: FlutterFlowTheme.of(
|
|
context)
|
|
.primaryBackground,
|
|
borderRadius:
|
|
BorderRadius
|
|
.circular(
|
|
10),
|
|
border: Border.all(
|
|
color:
|
|
valueOrDefault<
|
|
Color>(
|
|
Theme.of(context)
|
|
.brightness ==
|
|
Brightness
|
|
.light
|
|
? FlutterFlowTheme.of(
|
|
context)
|
|
.alternate
|
|
: FlutterFlowTheme.of(
|
|
context)
|
|
.primaryBackground,
|
|
FlutterFlowTheme.of(
|
|
context)
|
|
.alternate,
|
|
),
|
|
width: 1,
|
|
),
|
|
),
|
|
child: Row(
|
|
mainAxisSize:
|
|
MainAxisSize
|
|
.max,
|
|
mainAxisAlignment:
|
|
MainAxisAlignment
|
|
.center,
|
|
children: [
|
|
Icon(
|
|
Icons
|
|
.wb_sunny_rounded,
|
|
color: Theme.of(context)
|
|
.brightness ==
|
|
Brightness
|
|
.light
|
|
? FlutterFlowTheme.of(
|
|
context)
|
|
.primaryText
|
|
: FlutterFlowTheme.of(
|
|
context)
|
|
.secondaryText,
|
|
size: 16,
|
|
),
|
|
Padding(
|
|
padding:
|
|
EdgeInsetsDirectional
|
|
.fromSTEB(
|
|
4,
|
|
0,
|
|
0,
|
|
0),
|
|
child: Text(
|
|
'Light ',
|
|
style: FlutterFlowTheme.of(
|
|
context)
|
|
.bodyMedium
|
|
.override(
|
|
fontFamily:
|
|
'Readex Pro',
|
|
color: Theme.of(context).brightness ==
|
|
Brightness.light
|
|
? FlutterFlowTheme.of(context).primaryText
|
|
: FlutterFlowTheme.of(context).secondaryText,
|
|
letterSpacing:
|
|
0,
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
),
|
|
Expanded(
|
|
child: InkWell(
|
|
splashColor:
|
|
Colors.transparent,
|
|
focusColor:
|
|
Colors.transparent,
|
|
hoverColor:
|
|
Colors.transparent,
|
|
highlightColor:
|
|
Colors.transparent,
|
|
onTap: () async {
|
|
setDarkModeSetting(
|
|
context,
|
|
ThemeMode.dark);
|
|
},
|
|
child: Container(
|
|
width: 115,
|
|
height: 100,
|
|
decoration:
|
|
BoxDecoration(
|
|
color: Theme.of(context)
|
|
.brightness ==
|
|
Brightness
|
|
.dark
|
|
? FlutterFlowTheme.of(
|
|
context)
|
|
.secondaryBackground
|
|
: FlutterFlowTheme.of(
|
|
context)
|
|
.primaryBackground,
|
|
borderRadius:
|
|
BorderRadius
|
|
.circular(
|
|
10),
|
|
border: Border.all(
|
|
color: Theme.of(context)
|
|
.brightness ==
|
|
Brightness
|
|
.dark
|
|
? FlutterFlowTheme.of(
|
|
context)
|
|
.alternate
|
|
: FlutterFlowTheme.of(
|
|
context)
|
|
.primaryBackground,
|
|
width: 1,
|
|
),
|
|
),
|
|
child: Row(
|
|
mainAxisSize:
|
|
MainAxisSize
|
|
.max,
|
|
mainAxisAlignment:
|
|
MainAxisAlignment
|
|
.center,
|
|
children: [
|
|
Icon(
|
|
Icons
|
|
.nightlight_round,
|
|
color: Theme.of(context)
|
|
.brightness ==
|
|
Brightness
|
|
.dark
|
|
? FlutterFlowTheme.of(
|
|
context)
|
|
.primaryText
|
|
: FlutterFlowTheme.of(
|
|
context)
|
|
.secondaryText,
|
|
size: 16,
|
|
),
|
|
Padding(
|
|
padding:
|
|
EdgeInsetsDirectional
|
|
.fromSTEB(
|
|
4,
|
|
0,
|
|
0,
|
|
0),
|
|
child: Text(
|
|
'Dark',
|
|
style: FlutterFlowTheme.of(
|
|
context)
|
|
.bodyMedium
|
|
.override(
|
|
fontFamily:
|
|
'Readex Pro',
|
|
color: Theme.of(context).brightness ==
|
|
Brightness.dark
|
|
? FlutterFlowTheme.of(context).primaryText
|
|
: FlutterFlowTheme.of(context).secondaryText,
|
|
letterSpacing:
|
|
0,
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
].addToEnd(SizedBox(height: 72)),
|
|
),
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
],
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|