fixed project structure issues. now removing flutterflow dependencies.
This commit is contained in:
+1
-3
@@ -3,10 +3,8 @@ import '/flutter_flow/flutter_flow_icon_button.dart';
|
||||
import '/flutter_flow/flutter_flow_theme.dart';
|
||||
import '/flutter_flow/flutter_flow_util.dart';
|
||||
import '/flutter_flow/flutter_flow_widgets.dart';
|
||||
import 'dart:ui';
|
||||
import 'conversation_details_overlay_widget.dart'
|
||||
import '../conversation_details_overlay_widget.dart'
|
||||
show ConversationDetailsOverlayWidget;
|
||||
import 'package:flutter/gestures.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:google_fonts/google_fonts.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
+14
-15
@@ -4,7 +4,6 @@ import '/flutter_flow/flutter_flow_theme.dart';
|
||||
import '/flutter_flow/flutter_flow_util.dart';
|
||||
import '/flutter_flow/flutter_flow_widgets.dart';
|
||||
import 'dart:ui';
|
||||
import 'package:flutter/gestures.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:google_fonts/google_fonts.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
@@ -55,20 +54,20 @@ class _ConversationDetailsOverlayWidgetState
|
||||
child: Container(
|
||||
width: double.infinity,
|
||||
height: double.infinity,
|
||||
decoration: BoxDecoration(),
|
||||
decoration: const BoxDecoration(),
|
||||
child: Align(
|
||||
alignment: AlignmentDirectional(0, -1),
|
||||
alignment: const AlignmentDirectional(0, -1),
|
||||
child: Container(
|
||||
width: double.infinity,
|
||||
height: double.infinity,
|
||||
constraints: BoxConstraints(
|
||||
constraints: const BoxConstraints(
|
||||
maxWidth: 700,
|
||||
),
|
||||
decoration: BoxDecoration(
|
||||
borderRadius: BorderRadius.circular(0),
|
||||
),
|
||||
child: Padding(
|
||||
padding: EdgeInsetsDirectional.fromSTEB(0, 70, 0, 0),
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(0, 70, 0, 0),
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.max,
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
@@ -78,7 +77,7 @@ class _ConversationDetailsOverlayWidgetState
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
Padding(
|
||||
padding: EdgeInsetsDirectional.fromSTEB(16, 0, 0, 0),
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(16, 0, 0, 0),
|
||||
child: Text(
|
||||
'Chat Details',
|
||||
style: FlutterFlowTheme.of(context)
|
||||
@@ -90,7 +89,7 @@ class _ConversationDetailsOverlayWidgetState
|
||||
),
|
||||
),
|
||||
Padding(
|
||||
padding: EdgeInsetsDirectional.fromSTEB(0, 0, 16, 0),
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(0, 0, 16, 0),
|
||||
child: FlutterFlowIconButton(
|
||||
borderColor: FlutterFlowTheme.of(context).alternate,
|
||||
borderRadius: 12,
|
||||
@@ -110,12 +109,12 @@ class _ConversationDetailsOverlayWidgetState
|
||||
],
|
||||
),
|
||||
Padding(
|
||||
padding: EdgeInsetsDirectional.fromSTEB(16, 4, 0, 4),
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(16, 4, 0, 4),
|
||||
child: RichText(
|
||||
textScaler: MediaQuery.of(context).textScaler,
|
||||
text: TextSpan(
|
||||
children: [
|
||||
TextSpan(
|
||||
const TextSpan(
|
||||
text: 'Group Chat ID: ',
|
||||
style: TextStyle(),
|
||||
),
|
||||
@@ -137,7 +136,7 @@ class _ConversationDetailsOverlayWidgetState
|
||||
),
|
||||
Expanded(
|
||||
child: Align(
|
||||
alignment: AlignmentDirectional(0, 0),
|
||||
alignment: const AlignmentDirectional(0, 0),
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.max,
|
||||
mainAxisAlignment: MainAxisAlignment.start,
|
||||
@@ -151,9 +150,9 @@ class _ConversationDetailsOverlayWidgetState
|
||||
),
|
||||
),
|
||||
Align(
|
||||
alignment: AlignmentDirectional(0, -1),
|
||||
alignment: const AlignmentDirectional(0, -1),
|
||||
child: Padding(
|
||||
padding: EdgeInsetsDirectional.fromSTEB(16, 0, 16, 0),
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(16, 0, 16, 0),
|
||||
child: ClipRRect(
|
||||
borderRadius: BorderRadius.circular(12),
|
||||
child: Container(
|
||||
@@ -176,7 +175,7 @@ class _ConversationDetailsOverlayWidgetState
|
||||
),
|
||||
),
|
||||
Padding(
|
||||
padding: EdgeInsetsDirectional.fromSTEB(16, 16, 16, 44),
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(16, 16, 16, 44),
|
||||
child: FFButtonWidget(
|
||||
onPressed: () async {
|
||||
Navigator.pop(context);
|
||||
@@ -185,9 +184,9 @@ class _ConversationDetailsOverlayWidgetState
|
||||
options: FFButtonOptions(
|
||||
width: double.infinity,
|
||||
height: 52,
|
||||
padding: EdgeInsetsDirectional.fromSTEB(44, 0, 44, 0),
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(44, 0, 44, 0),
|
||||
iconPadding:
|
||||
EdgeInsetsDirectional.fromSTEB(0, 0, 0, 0),
|
||||
const EdgeInsetsDirectional.fromSTEB(0, 0, 0, 0),
|
||||
color:
|
||||
FlutterFlowTheme.of(context).secondaryBackground,
|
||||
textStyle:
|
||||
+17
-17
@@ -45,7 +45,7 @@ class _ConversationOptionsWidgetState extends State<ConversationOptionsWidget> {
|
||||
color: FlutterFlowTheme.of(context).secondaryBackground,
|
||||
),
|
||||
child: Padding(
|
||||
padding: EdgeInsetsDirectional.fromSTEB(0, 12, 0, 24),
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(0, 12, 0, 24),
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.max,
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
@@ -53,9 +53,9 @@ class _ConversationOptionsWidgetState extends State<ConversationOptionsWidget> {
|
||||
Container(
|
||||
width: double.infinity,
|
||||
height: 60,
|
||||
decoration: BoxDecoration(),
|
||||
decoration: const BoxDecoration(),
|
||||
child: Padding(
|
||||
padding: EdgeInsetsDirectional.fromSTEB(12, 8, 12, 8),
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(12, 8, 12, 8),
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.max,
|
||||
children: [
|
||||
@@ -67,7 +67,7 @@ class _ConversationOptionsWidgetState extends State<ConversationOptionsWidget> {
|
||||
borderRadius: BorderRadius.circular(40),
|
||||
),
|
||||
child: Padding(
|
||||
padding: EdgeInsets.all(8),
|
||||
padding: const EdgeInsets.all(8),
|
||||
child: Icon(
|
||||
Icons.share_rounded,
|
||||
color: FlutterFlowTheme.of(context).secondaryText,
|
||||
@@ -77,7 +77,7 @@ class _ConversationOptionsWidgetState extends State<ConversationOptionsWidget> {
|
||||
),
|
||||
Expanded(
|
||||
child: Padding(
|
||||
padding: EdgeInsetsDirectional.fromSTEB(12, 0, 0, 0),
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(12, 0, 0, 0),
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.max,
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
@@ -102,9 +102,9 @@ class _ConversationOptionsWidgetState extends State<ConversationOptionsWidget> {
|
||||
Container(
|
||||
width: double.infinity,
|
||||
height: 60,
|
||||
decoration: BoxDecoration(),
|
||||
decoration: const BoxDecoration(),
|
||||
child: Padding(
|
||||
padding: EdgeInsetsDirectional.fromSTEB(12, 8, 12, 8),
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(12, 8, 12, 8),
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.max,
|
||||
children: [
|
||||
@@ -116,7 +116,7 @@ class _ConversationOptionsWidgetState extends State<ConversationOptionsWidget> {
|
||||
borderRadius: BorderRadius.circular(40),
|
||||
),
|
||||
child: Padding(
|
||||
padding: EdgeInsets.all(8),
|
||||
padding: const EdgeInsets.all(8),
|
||||
child: Icon(
|
||||
Icons.insert_link,
|
||||
color: FlutterFlowTheme.of(context).secondaryText,
|
||||
@@ -126,7 +126,7 @@ class _ConversationOptionsWidgetState extends State<ConversationOptionsWidget> {
|
||||
),
|
||||
Expanded(
|
||||
child: Padding(
|
||||
padding: EdgeInsetsDirectional.fromSTEB(12, 0, 0, 0),
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(12, 0, 0, 0),
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.max,
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
@@ -151,9 +151,9 @@ class _ConversationOptionsWidgetState extends State<ConversationOptionsWidget> {
|
||||
Container(
|
||||
width: double.infinity,
|
||||
height: 60,
|
||||
decoration: BoxDecoration(),
|
||||
decoration: const BoxDecoration(),
|
||||
child: Padding(
|
||||
padding: EdgeInsetsDirectional.fromSTEB(12, 8, 12, 8),
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(12, 8, 12, 8),
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.max,
|
||||
children: [
|
||||
@@ -165,7 +165,7 @@ class _ConversationOptionsWidgetState extends State<ConversationOptionsWidget> {
|
||||
borderRadius: BorderRadius.circular(40),
|
||||
),
|
||||
child: Padding(
|
||||
padding: EdgeInsets.all(8),
|
||||
padding: const EdgeInsets.all(8),
|
||||
child: Icon(
|
||||
Icons.mode_edit,
|
||||
color: FlutterFlowTheme.of(context).secondaryText,
|
||||
@@ -175,7 +175,7 @@ class _ConversationOptionsWidgetState extends State<ConversationOptionsWidget> {
|
||||
),
|
||||
Expanded(
|
||||
child: Padding(
|
||||
padding: EdgeInsetsDirectional.fromSTEB(12, 0, 0, 0),
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(12, 0, 0, 0),
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.max,
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
@@ -200,9 +200,9 @@ class _ConversationOptionsWidgetState extends State<ConversationOptionsWidget> {
|
||||
Container(
|
||||
width: double.infinity,
|
||||
height: 60,
|
||||
decoration: BoxDecoration(),
|
||||
decoration: const BoxDecoration(),
|
||||
child: Padding(
|
||||
padding: EdgeInsetsDirectional.fromSTEB(12, 8, 12, 8),
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(12, 8, 12, 8),
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.max,
|
||||
children: [
|
||||
@@ -214,7 +214,7 @@ class _ConversationOptionsWidgetState extends State<ConversationOptionsWidget> {
|
||||
borderRadius: BorderRadius.circular(40),
|
||||
),
|
||||
child: Padding(
|
||||
padding: EdgeInsets.all(8),
|
||||
padding: const EdgeInsets.all(8),
|
||||
child: Icon(
|
||||
Icons.hide_source,
|
||||
color: FlutterFlowTheme.of(context).secondaryText,
|
||||
@@ -224,7 +224,7 @@ class _ConversationOptionsWidgetState extends State<ConversationOptionsWidget> {
|
||||
),
|
||||
Expanded(
|
||||
child: Padding(
|
||||
padding: EdgeInsetsDirectional.fromSTEB(12, 0, 0, 0),
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(12, 0, 0, 0),
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.max,
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
+12
-12
@@ -57,7 +57,7 @@ class _ConversationThreadWidgetState extends State<ConversationThreadWidget> {
|
||||
children: [
|
||||
Expanded(
|
||||
child: ListView(
|
||||
padding: EdgeInsets.fromLTRB(
|
||||
padding: const EdgeInsets.fromLTRB(
|
||||
0,
|
||||
12,
|
||||
0,
|
||||
@@ -67,14 +67,14 @@ class _ConversationThreadWidgetState extends State<ConversationThreadWidget> {
|
||||
scrollDirection: Axis.vertical,
|
||||
children: [
|
||||
Container(
|
||||
decoration: BoxDecoration(),
|
||||
decoration: const BoxDecoration(),
|
||||
),
|
||||
Container(
|
||||
height: MediaQuery.sizeOf(context).height * 1,
|
||||
constraints: BoxConstraints(
|
||||
minHeight: MediaQuery.sizeOf(context).height * 1,
|
||||
),
|
||||
decoration: BoxDecoration(),
|
||||
decoration: const BoxDecoration(),
|
||||
child: wrapWithModel(
|
||||
model: _model.conversationBubblesModel,
|
||||
updateCallback: () => setState(() {}),
|
||||
@@ -88,7 +88,7 @@ class _ConversationThreadWidgetState extends State<ConversationThreadWidget> {
|
||||
width: double.infinity,
|
||||
decoration: BoxDecoration(
|
||||
color: FlutterFlowTheme.of(context).secondaryBackground,
|
||||
boxShadow: [
|
||||
boxShadow: const [
|
||||
BoxShadow(
|
||||
blurRadius: 3,
|
||||
color: Color(0x33000000),
|
||||
@@ -107,7 +107,7 @@ class _ConversationThreadWidgetState extends State<ConversationThreadWidget> {
|
||||
children: [
|
||||
Expanded(
|
||||
child: Padding(
|
||||
padding: EdgeInsetsDirectional.fromSTEB(0, 12, 0, 0),
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(0, 12, 0, 0),
|
||||
child: SingleChildScrollView(
|
||||
scrollDirection: Axis.horizontal,
|
||||
child: Row(
|
||||
@@ -119,9 +119,9 @@ class _ConversationThreadWidgetState extends State<ConversationThreadWidget> {
|
||||
imageBuilder: (path) => ClipRRect(
|
||||
borderRadius: BorderRadius.circular(8),
|
||||
child: CachedNetworkImage(
|
||||
fadeInDuration: Duration(milliseconds: 500),
|
||||
fadeInDuration: const Duration(milliseconds: 500),
|
||||
fadeOutDuration:
|
||||
Duration(milliseconds: 500),
|
||||
const Duration(milliseconds: 500),
|
||||
imageUrl: path,
|
||||
width: 120,
|
||||
height: 100,
|
||||
@@ -140,7 +140,7 @@ class _ConversationThreadWidgetState extends State<ConversationThreadWidget> {
|
||||
),
|
||||
),
|
||||
Align(
|
||||
alignment: AlignmentDirectional(-1, -1),
|
||||
alignment: const AlignmentDirectional(-1, -1),
|
||||
child: FlutterFlowIconButton(
|
||||
borderColor:
|
||||
FlutterFlowTheme.of(context).error,
|
||||
@@ -160,9 +160,9 @@ class _ConversationThreadWidgetState extends State<ConversationThreadWidget> {
|
||||
),
|
||||
),
|
||||
]
|
||||
.divide(SizedBox(width: 8))
|
||||
.addToStart(SizedBox(width: 16))
|
||||
.addToEnd(SizedBox(width: 16)),
|
||||
.divide(const SizedBox(width: 8))
|
||||
.addToStart(const SizedBox(width: 16))
|
||||
.addToEnd(const SizedBox(width: 16)),
|
||||
),
|
||||
),
|
||||
),
|
||||
@@ -173,7 +173,7 @@ class _ConversationThreadWidgetState extends State<ConversationThreadWidget> {
|
||||
key: _model.formKey,
|
||||
autovalidateMode: AutovalidateMode.disabled,
|
||||
child: Padding(
|
||||
padding: EdgeInsetsDirectional.fromSTEB(0, 0, 0, 8),
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(0, 0, 0, 8),
|
||||
child: wrapWithModel(
|
||||
model: _model.promptBoxModel,
|
||||
updateCallback: () => setState(() {}),
|
||||
+10
-10
@@ -41,13 +41,19 @@ class _ModelItemWidgetState extends State<ModelItemWidget> {
|
||||
return MouseRegion(
|
||||
opaque: false,
|
||||
cursor: MouseCursor.defer ?? MouseCursor.defer,
|
||||
onEnter: ((event) async {
|
||||
setState(() => _model.iuserHovered = true);
|
||||
}),
|
||||
onExit: ((event) async {
|
||||
setState(() => _model.iuserHovered = false);
|
||||
}),
|
||||
child: Container(
|
||||
decoration: BoxDecoration(
|
||||
color: FlutterFlowTheme.of(context).primaryBackground,
|
||||
borderRadius: BorderRadius.circular(0),
|
||||
),
|
||||
child: Padding(
|
||||
padding: EdgeInsetsDirectional.fromSTEB(12, 8, 12, 8),
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(12, 8, 12, 8),
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.max,
|
||||
children: [
|
||||
@@ -63,7 +69,7 @@ class _ModelItemWidgetState extends State<ModelItemWidget> {
|
||||
),
|
||||
),
|
||||
child: Align(
|
||||
alignment: AlignmentDirectional(0, 0),
|
||||
alignment: const AlignmentDirectional(0, 0),
|
||||
child: Text(
|
||||
'A',
|
||||
textAlign: TextAlign.center,
|
||||
@@ -77,7 +83,7 @@ class _ModelItemWidgetState extends State<ModelItemWidget> {
|
||||
),
|
||||
Expanded(
|
||||
child: Padding(
|
||||
padding: EdgeInsetsDirectional.fromSTEB(12, 0, 8, 0),
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(12, 0, 8, 0),
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.max,
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
@@ -92,7 +98,7 @@ class _ModelItemWidgetState extends State<ModelItemWidget> {
|
||||
),
|
||||
),
|
||||
Padding(
|
||||
padding: EdgeInsetsDirectional.fromSTEB(0, 4, 0, 0),
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(0, 4, 0, 0),
|
||||
child: Text(
|
||||
'name@domainname.com',
|
||||
style:
|
||||
@@ -111,12 +117,6 @@ class _ModelItemWidgetState extends State<ModelItemWidget> {
|
||||
),
|
||||
),
|
||||
),
|
||||
onEnter: ((event) async {
|
||||
setState(() => _model.iuserHovered = true);
|
||||
}),
|
||||
onExit: ((event) async {
|
||||
setState(() => _model.iuserHovered = false);
|
||||
}),
|
||||
);
|
||||
}
|
||||
}
|
||||
+5
-5
@@ -13,8 +13,8 @@ class NoChatsWidget extends StatefulWidget {
|
||||
this.icon,
|
||||
String? title,
|
||||
String? body,
|
||||
}) : this.title = title ?? 'No Comments',
|
||||
this.body = body ?? 'There are no comments associated with this post.';
|
||||
}) : title = title ?? 'No Comments',
|
||||
body = body ?? 'There are no comments associated with this post.';
|
||||
|
||||
final Widget? icon;
|
||||
final String title;
|
||||
@@ -49,14 +49,14 @@ class _NoChatsWidgetState extends State<NoChatsWidget> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Align(
|
||||
alignment: AlignmentDirectional(0, -1),
|
||||
alignment: const AlignmentDirectional(0, -1),
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.max,
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
widget.icon!,
|
||||
Padding(
|
||||
padding: EdgeInsetsDirectional.fromSTEB(0, 16, 0, 0),
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(0, 16, 0, 0),
|
||||
child: Text(
|
||||
widget.title,
|
||||
textAlign: TextAlign.center,
|
||||
@@ -68,7 +68,7 @@ class _NoChatsWidgetState extends State<NoChatsWidget> {
|
||||
),
|
||||
),
|
||||
Padding(
|
||||
padding: EdgeInsetsDirectional.fromSTEB(16, 8, 16, 0),
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(16, 8, 16, 0),
|
||||
child: Text(
|
||||
widget.body,
|
||||
textAlign: TextAlign.center,
|
||||
+27
-27
@@ -6,8 +6,8 @@ import 'package:flutter/material.dart';
|
||||
import 'package:google_fonts/google_fonts.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
|
||||
import 'popup_model.dart';
|
||||
export 'popup_model.dart';
|
||||
import '/components/popup/popup_model.dart';
|
||||
export '/components/popup/popup_model.dart';
|
||||
|
||||
class PopupWidget extends StatefulWidget {
|
||||
const PopupWidget({super.key});
|
||||
@@ -43,16 +43,16 @@ class _PopupWidgetState extends State<PopupWidget> {
|
||||
return Visibility(
|
||||
visible: true,
|
||||
child: Align(
|
||||
alignment: AlignmentDirectional(0, 0),
|
||||
alignment: const AlignmentDirectional(0, 0),
|
||||
child: Container(
|
||||
width: double.infinity,
|
||||
constraints: BoxConstraints(
|
||||
constraints: const BoxConstraints(
|
||||
maxWidth: 570,
|
||||
maxHeight: 375,
|
||||
),
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.white,
|
||||
boxShadow: [
|
||||
boxShadow: const [
|
||||
BoxShadow(
|
||||
blurRadius: 64,
|
||||
color: Color(0xB2000000),
|
||||
@@ -65,14 +65,14 @@ class _PopupWidgetState extends State<PopupWidget> {
|
||||
],
|
||||
borderRadius: BorderRadius.circular(12),
|
||||
border: Border.all(
|
||||
color: Color(0xFFE0E3E7),
|
||||
color: const Color(0xFFE0E3E7),
|
||||
),
|
||||
),
|
||||
alignment: AlignmentDirectional(0, 0),
|
||||
alignment: const AlignmentDirectional(0, 0),
|
||||
child: Align(
|
||||
alignment: AlignmentDirectional(0, 0),
|
||||
alignment: const AlignmentDirectional(0, 0),
|
||||
child: Padding(
|
||||
padding: EdgeInsets.all(24),
|
||||
padding: const EdgeInsets.all(24),
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.max,
|
||||
mainAxisAlignment: MainAxisAlignment.end,
|
||||
@@ -83,14 +83,14 @@ class _PopupWidgetState extends State<PopupWidget> {
|
||||
children: [
|
||||
Expanded(
|
||||
child: Padding(
|
||||
padding: EdgeInsetsDirectional.fromSTEB(0, 0, 12, 0),
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(0, 0, 12, 0),
|
||||
child: Text(
|
||||
'Refine the components modal.',
|
||||
style: FlutterFlowTheme.of(context)
|
||||
.headlineMedium
|
||||
.override(
|
||||
fontFamily: 'Outfit',
|
||||
color: Color(0xFF14181B),
|
||||
color: const Color(0xFF14181B),
|
||||
fontSize: 24,
|
||||
letterSpacing: 0,
|
||||
fontWeight: FontWeight.normal,
|
||||
@@ -99,11 +99,11 @@ class _PopupWidgetState extends State<PopupWidget> {
|
||||
),
|
||||
),
|
||||
FlutterFlowIconButton(
|
||||
borderColor: Color(0xFFF1F4F8),
|
||||
borderColor: const Color(0xFFF1F4F8),
|
||||
borderRadius: 30,
|
||||
borderWidth: 2,
|
||||
buttonSize: 44,
|
||||
icon: Icon(
|
||||
icon: const Icon(
|
||||
Icons.close_rounded,
|
||||
color: Color(0xFF57636C),
|
||||
size: 24,
|
||||
@@ -114,7 +114,7 @@ class _PopupWidgetState extends State<PopupWidget> {
|
||||
),
|
||||
],
|
||||
),
|
||||
Divider(
|
||||
const Divider(
|
||||
height: 24,
|
||||
thickness: 2,
|
||||
color: Color(0xFFF1F4F8),
|
||||
@@ -123,14 +123,14 @@ class _PopupWidgetState extends State<PopupWidget> {
|
||||
'FlutterFlow is a visual development platform that allows you to easily create beautiful and responsive user interfaces for your mobile and web applications. With its drag-and-drop interface and pre-built components, you can quickly prototype and build your app without writing any code. \nAdditionally, FlutterFlow\'s real-time preview feature allows you to see your changes in real-time and make adjustments on the fly.',
|
||||
style: FlutterFlowTheme.of(context).labelMedium.override(
|
||||
fontFamily: 'Readex Pro',
|
||||
color: Color(0xFF57636C),
|
||||
color: const Color(0xFF57636C),
|
||||
fontSize: 14,
|
||||
letterSpacing: 0,
|
||||
fontWeight: FontWeight.normal,
|
||||
),
|
||||
),
|
||||
Padding(
|
||||
padding: EdgeInsetsDirectional.fromSTEB(0, 16, 0, 0),
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(0, 16, 0, 0),
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.max,
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
@@ -143,26 +143,26 @@ class _PopupWidgetState extends State<PopupWidget> {
|
||||
options: FFButtonOptions(
|
||||
height: 40,
|
||||
padding:
|
||||
EdgeInsetsDirectional.fromSTEB(24, 0, 24, 0),
|
||||
const EdgeInsetsDirectional.fromSTEB(24, 0, 24, 0),
|
||||
iconPadding:
|
||||
EdgeInsetsDirectional.fromSTEB(0, 0, 0, 0),
|
||||
const EdgeInsetsDirectional.fromSTEB(0, 0, 0, 0),
|
||||
color: Colors.white,
|
||||
textStyle:
|
||||
FlutterFlowTheme.of(context).bodySmall.override(
|
||||
fontFamily: 'Readex Pro',
|
||||
color: Color(0xFF14181B),
|
||||
color: const Color(0xFF14181B),
|
||||
fontSize: 12,
|
||||
letterSpacing: 0,
|
||||
fontWeight: FontWeight.normal,
|
||||
),
|
||||
elevation: 0,
|
||||
borderSide: BorderSide(
|
||||
borderSide: const BorderSide(
|
||||
color: Color(0xFFF1F4F8),
|
||||
width: 2,
|
||||
),
|
||||
borderRadius: BorderRadius.circular(8),
|
||||
hoverColor: Color(0xFFF1F4F8),
|
||||
hoverTextColor: Color(0xFF14181B),
|
||||
hoverColor: const Color(0xFFF1F4F8),
|
||||
hoverTextColor: const Color(0xFF14181B),
|
||||
),
|
||||
),
|
||||
FFButtonWidget(
|
||||
@@ -173,10 +173,10 @@ class _PopupWidgetState extends State<PopupWidget> {
|
||||
options: FFButtonOptions(
|
||||
width: 130,
|
||||
height: 40,
|
||||
padding: EdgeInsetsDirectional.fromSTEB(0, 0, 0, 0),
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(0, 0, 0, 0),
|
||||
iconPadding:
|
||||
EdgeInsetsDirectional.fromSTEB(0, 0, 0, 0),
|
||||
color: Color(0xFF4B39EF),
|
||||
const EdgeInsetsDirectional.fromSTEB(0, 0, 0, 0),
|
||||
color: const Color(0xFF4B39EF),
|
||||
textStyle: FlutterFlowTheme.of(context)
|
||||
.titleSmall
|
||||
.override(
|
||||
@@ -187,12 +187,12 @@ class _PopupWidgetState extends State<PopupWidget> {
|
||||
fontWeight: FontWeight.w500,
|
||||
),
|
||||
elevation: 3,
|
||||
borderSide: BorderSide(
|
||||
borderSide: const BorderSide(
|
||||
color: Colors.transparent,
|
||||
width: 1,
|
||||
),
|
||||
borderRadius: BorderRadius.circular(8),
|
||||
hoverColor: Color(0xFF2B16ED),
|
||||
hoverColor: const Color(0xFF2B16ED),
|
||||
hoverTextColor: Colors.white,
|
||||
),
|
||||
),
|
||||
+25
-25
@@ -43,16 +43,16 @@ class _PopupWidgetState extends State<PopupWidget> {
|
||||
return Visibility(
|
||||
visible: true,
|
||||
child: Align(
|
||||
alignment: AlignmentDirectional(0, 0),
|
||||
alignment: const AlignmentDirectional(0, 0),
|
||||
child: Container(
|
||||
width: double.infinity,
|
||||
constraints: BoxConstraints(
|
||||
constraints: const BoxConstraints(
|
||||
maxWidth: 570,
|
||||
maxHeight: 375,
|
||||
),
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.white,
|
||||
boxShadow: [
|
||||
boxShadow: const [
|
||||
BoxShadow(
|
||||
blurRadius: 64,
|
||||
color: Color(0xB2000000),
|
||||
@@ -65,14 +65,14 @@ class _PopupWidgetState extends State<PopupWidget> {
|
||||
],
|
||||
borderRadius: BorderRadius.circular(12),
|
||||
border: Border.all(
|
||||
color: Color(0xFFE0E3E7),
|
||||
color: const Color(0xFFE0E3E7),
|
||||
),
|
||||
),
|
||||
alignment: AlignmentDirectional(0, 0),
|
||||
alignment: const AlignmentDirectional(0, 0),
|
||||
child: Align(
|
||||
alignment: AlignmentDirectional(0, 0),
|
||||
alignment: const AlignmentDirectional(0, 0),
|
||||
child: Padding(
|
||||
padding: EdgeInsets.all(24),
|
||||
padding: const EdgeInsets.all(24),
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.max,
|
||||
mainAxisAlignment: MainAxisAlignment.end,
|
||||
@@ -83,14 +83,14 @@ class _PopupWidgetState extends State<PopupWidget> {
|
||||
children: [
|
||||
Expanded(
|
||||
child: Padding(
|
||||
padding: EdgeInsetsDirectional.fromSTEB(0, 0, 12, 0),
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(0, 0, 12, 0),
|
||||
child: Text(
|
||||
'Refine the components modal.',
|
||||
style: FlutterFlowTheme.of(context)
|
||||
.headlineMedium
|
||||
.override(
|
||||
fontFamily: 'Outfit',
|
||||
color: Color(0xFF14181B),
|
||||
color: const Color(0xFF14181B),
|
||||
fontSize: 24,
|
||||
letterSpacing: 0,
|
||||
fontWeight: FontWeight.normal,
|
||||
@@ -99,11 +99,11 @@ class _PopupWidgetState extends State<PopupWidget> {
|
||||
),
|
||||
),
|
||||
FlutterFlowIconButton(
|
||||
borderColor: Color(0xFFF1F4F8),
|
||||
borderColor: const Color(0xFFF1F4F8),
|
||||
borderRadius: 30,
|
||||
borderWidth: 2,
|
||||
buttonSize: 44,
|
||||
icon: Icon(
|
||||
icon: const Icon(
|
||||
Icons.close_rounded,
|
||||
color: Color(0xFF57636C),
|
||||
size: 24,
|
||||
@@ -114,7 +114,7 @@ class _PopupWidgetState extends State<PopupWidget> {
|
||||
),
|
||||
],
|
||||
),
|
||||
Divider(
|
||||
const Divider(
|
||||
height: 24,
|
||||
thickness: 2,
|
||||
color: Color(0xFFF1F4F8),
|
||||
@@ -123,14 +123,14 @@ class _PopupWidgetState extends State<PopupWidget> {
|
||||
'FlutterFlow is a visual development platform that allows you to easily create beautiful and responsive user interfaces for your mobile and web applications. With its drag-and-drop interface and pre-built components, you can quickly prototype and build your app without writing any code. \nAdditionally, FlutterFlow\'s real-time preview feature allows you to see your changes in real-time and make adjustments on the fly.',
|
||||
style: FlutterFlowTheme.of(context).labelMedium.override(
|
||||
fontFamily: 'Readex Pro',
|
||||
color: Color(0xFF57636C),
|
||||
color: const Color(0xFF57636C),
|
||||
fontSize: 14,
|
||||
letterSpacing: 0,
|
||||
fontWeight: FontWeight.normal,
|
||||
),
|
||||
),
|
||||
Padding(
|
||||
padding: EdgeInsetsDirectional.fromSTEB(0, 16, 0, 0),
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(0, 16, 0, 0),
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.max,
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
@@ -143,26 +143,26 @@ class _PopupWidgetState extends State<PopupWidget> {
|
||||
options: FFButtonOptions(
|
||||
height: 40,
|
||||
padding:
|
||||
EdgeInsetsDirectional.fromSTEB(24, 0, 24, 0),
|
||||
const EdgeInsetsDirectional.fromSTEB(24, 0, 24, 0),
|
||||
iconPadding:
|
||||
EdgeInsetsDirectional.fromSTEB(0, 0, 0, 0),
|
||||
const EdgeInsetsDirectional.fromSTEB(0, 0, 0, 0),
|
||||
color: Colors.white,
|
||||
textStyle:
|
||||
FlutterFlowTheme.of(context).bodySmall.override(
|
||||
fontFamily: 'Readex Pro',
|
||||
color: Color(0xFF14181B),
|
||||
color: const Color(0xFF14181B),
|
||||
fontSize: 12,
|
||||
letterSpacing: 0,
|
||||
fontWeight: FontWeight.normal,
|
||||
),
|
||||
elevation: 0,
|
||||
borderSide: BorderSide(
|
||||
borderSide: const BorderSide(
|
||||
color: Color(0xFFF1F4F8),
|
||||
width: 2,
|
||||
),
|
||||
borderRadius: BorderRadius.circular(8),
|
||||
hoverColor: Color(0xFFF1F4F8),
|
||||
hoverTextColor: Color(0xFF14181B),
|
||||
hoverColor: const Color(0xFFF1F4F8),
|
||||
hoverTextColor: const Color(0xFF14181B),
|
||||
),
|
||||
),
|
||||
FFButtonWidget(
|
||||
@@ -173,10 +173,10 @@ class _PopupWidgetState extends State<PopupWidget> {
|
||||
options: FFButtonOptions(
|
||||
width: 130,
|
||||
height: 40,
|
||||
padding: EdgeInsetsDirectional.fromSTEB(0, 0, 0, 0),
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(0, 0, 0, 0),
|
||||
iconPadding:
|
||||
EdgeInsetsDirectional.fromSTEB(0, 0, 0, 0),
|
||||
color: Color(0xFF4B39EF),
|
||||
const EdgeInsetsDirectional.fromSTEB(0, 0, 0, 0),
|
||||
color: const Color(0xFF4B39EF),
|
||||
textStyle: FlutterFlowTheme.of(context)
|
||||
.titleSmall
|
||||
.override(
|
||||
@@ -187,12 +187,12 @@ class _PopupWidgetState extends State<PopupWidget> {
|
||||
fontWeight: FontWeight.w500,
|
||||
),
|
||||
elevation: 3,
|
||||
borderSide: BorderSide(
|
||||
borderSide: const BorderSide(
|
||||
color: Colors.transparent,
|
||||
width: 1,
|
||||
),
|
||||
borderRadius: BorderRadius.circular(8),
|
||||
hoverColor: Color(0xFF2B16ED),
|
||||
hoverColor: const Color(0xFF2B16ED),
|
||||
hoverTextColor: Colors.white,
|
||||
),
|
||||
),
|
||||
+11
-11
@@ -50,7 +50,7 @@ class _PromptBoxWidgetState extends State<PromptBoxWidget> {
|
||||
color: FlutterFlowTheme.of(context).secondaryBackground,
|
||||
borderRadius: BorderRadius.circular(10),
|
||||
),
|
||||
alignment: AlignmentDirectional(0, 0),
|
||||
alignment: const AlignmentDirectional(0, 0),
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.max,
|
||||
children: [
|
||||
@@ -61,7 +61,7 @@ class _PromptBoxWidgetState extends State<PromptBoxWidget> {
|
||||
children: [
|
||||
Expanded(
|
||||
child: Padding(
|
||||
padding: EdgeInsets.all(14),
|
||||
padding: const EdgeInsets.all(14),
|
||||
child: FlutterFlowIconButton(
|
||||
borderColor: Colors.transparent,
|
||||
borderRadius: 30,
|
||||
@@ -80,7 +80,7 @@ class _PromptBoxWidgetState extends State<PromptBoxWidget> {
|
||||
),
|
||||
Expanded(
|
||||
child: Padding(
|
||||
padding: EdgeInsets.all(14),
|
||||
padding: const EdgeInsets.all(14),
|
||||
child: FlutterFlowIconButton(
|
||||
borderColor: Colors.transparent,
|
||||
borderRadius: 30,
|
||||
@@ -99,7 +99,7 @@ class _PromptBoxWidgetState extends State<PromptBoxWidget> {
|
||||
),
|
||||
Expanded(
|
||||
child: Padding(
|
||||
padding: EdgeInsets.all(14),
|
||||
padding: const EdgeInsets.all(14),
|
||||
child: FlutterFlowIconButton(
|
||||
borderColor: Colors.transparent,
|
||||
borderRadius: 30,
|
||||
@@ -118,7 +118,7 @@ class _PromptBoxWidgetState extends State<PromptBoxWidget> {
|
||||
),
|
||||
Expanded(
|
||||
child: Padding(
|
||||
padding: EdgeInsets.all(14),
|
||||
padding: const EdgeInsets.all(14),
|
||||
child: FlutterFlowIconButton(
|
||||
borderColor: Colors.transparent,
|
||||
borderRadius: 30,
|
||||
@@ -137,7 +137,7 @@ class _PromptBoxWidgetState extends State<PromptBoxWidget> {
|
||||
),
|
||||
Expanded(
|
||||
child: Padding(
|
||||
padding: EdgeInsets.all(14),
|
||||
padding: const EdgeInsets.all(14),
|
||||
child: FlutterFlowIconButton(
|
||||
borderColor: Colors.transparent,
|
||||
borderRadius: 30,
|
||||
@@ -162,13 +162,13 @@ class _PromptBoxWidgetState extends State<PromptBoxWidget> {
|
||||
Expanded(
|
||||
flex: 7,
|
||||
child: Padding(
|
||||
padding: EdgeInsetsDirectional.fromSTEB(12, 0, 12, 0),
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(12, 0, 12, 0),
|
||||
child: TextFormField(
|
||||
controller: _model.textController,
|
||||
focusNode: _model.textFieldFocusNode,
|
||||
onChanged: (_) => EasyDebounce.debounce(
|
||||
'_model.textController',
|
||||
Duration(milliseconds: 2000),
|
||||
const Duration(milliseconds: 2000),
|
||||
() => setState(() {}),
|
||||
),
|
||||
autofocus: true,
|
||||
@@ -192,21 +192,21 @@ class _PromptBoxWidgetState extends State<PromptBoxWidget> {
|
||||
borderRadius: BorderRadius.circular(12),
|
||||
),
|
||||
focusedBorder: OutlineInputBorder(
|
||||
borderSide: BorderSide(
|
||||
borderSide: const BorderSide(
|
||||
color: Color(0x00000000),
|
||||
width: 2,
|
||||
),
|
||||
borderRadius: BorderRadius.circular(12),
|
||||
),
|
||||
errorBorder: OutlineInputBorder(
|
||||
borderSide: BorderSide(
|
||||
borderSide: const BorderSide(
|
||||
color: Color(0x00000000),
|
||||
width: 2,
|
||||
),
|
||||
borderRadius: BorderRadius.circular(12),
|
||||
),
|
||||
focusedErrorBorder: OutlineInputBorder(
|
||||
borderSide: BorderSide(
|
||||
borderSide: const BorderSide(
|
||||
color: Color(0x00000000),
|
||||
width: 2,
|
||||
),
|
||||
+2
-2
@@ -66,7 +66,7 @@ class _ConversationWidgetState extends State<ConversationWidget> {
|
||||
kTransitionInfoKey: TransitionInfo(
|
||||
hasTransition: true,
|
||||
transitionType: PageTransitionType.leftToRight,
|
||||
duration: Duration(milliseconds: 250),
|
||||
duration: const Duration(milliseconds: 250),
|
||||
),
|
||||
},
|
||||
);
|
||||
@@ -79,7 +79,7 @@ class _ConversationWidgetState extends State<ConversationWidget> {
|
||||
),
|
||||
actions: [
|
||||
Padding(
|
||||
padding: EdgeInsetsDirectional.fromSTEB(0, 8, 16, 8),
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(0, 8, 16, 8),
|
||||
child: FlutterFlowIconButton(
|
||||
borderColor: FlutterFlowTheme.of(context).alternate,
|
||||
borderRadius: 12,
|
||||
+8
-8
@@ -93,7 +93,7 @@ class _ConversationsListWidgetState extends State<ConversationsListWidget> {
|
||||
letterSpacing: 0,
|
||||
),
|
||||
),
|
||||
actions: [],
|
||||
actions: const [],
|
||||
centerTitle: false,
|
||||
elevation: 0,
|
||||
),
|
||||
@@ -104,7 +104,7 @@ class _ConversationsListWidgetState extends State<ConversationsListWidget> {
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Padding(
|
||||
padding: EdgeInsetsDirectional.fromSTEB(16, 0, 0, 0),
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(16, 0, 0, 0),
|
||||
child: Text(
|
||||
'AI conversations',
|
||||
style: FlutterFlowTheme.of(context).labelMedium.override(
|
||||
@@ -115,14 +115,14 @@ class _ConversationsListWidgetState extends State<ConversationsListWidget> {
|
||||
),
|
||||
Expanded(
|
||||
child: Align(
|
||||
alignment: AlignmentDirectional(0, 0),
|
||||
alignment: const AlignmentDirectional(0, 0),
|
||||
child: ListView(
|
||||
padding: EdgeInsets.zero,
|
||||
reverse: true,
|
||||
scrollDirection: Axis.vertical,
|
||||
children: [
|
||||
Align(
|
||||
alignment: AlignmentDirectional(0, 0),
|
||||
alignment: const AlignmentDirectional(0, 0),
|
||||
child: InkWell(
|
||||
splashColor: Colors.transparent,
|
||||
focusColor: Colors.transparent,
|
||||
@@ -144,7 +144,7 @@ class _ConversationsListWidgetState extends State<ConversationsListWidget> {
|
||||
.secondaryBackground,
|
||||
),
|
||||
child: Align(
|
||||
alignment: AlignmentDirectional(0, 0),
|
||||
alignment: const AlignmentDirectional(0, 0),
|
||||
child: Icon(
|
||||
Icons.settings_outlined,
|
||||
color: FlutterFlowTheme.of(context)
|
||||
@@ -155,7 +155,7 @@ class _ConversationsListWidgetState extends State<ConversationsListWidget> {
|
||||
),
|
||||
Expanded(
|
||||
child: Align(
|
||||
alignment: AlignmentDirectional(-1, 0),
|
||||
alignment: const AlignmentDirectional(-1, 0),
|
||||
child: Container(
|
||||
width: 100,
|
||||
height: 100,
|
||||
@@ -177,7 +177,7 @@ class _ConversationsListWidgetState extends State<ConversationsListWidget> {
|
||||
children: [
|
||||
Align(
|
||||
alignment:
|
||||
AlignmentDirectional(-1, 0),
|
||||
const AlignmentDirectional(-1, 0),
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.max,
|
||||
children: [
|
||||
@@ -196,7 +196,7 @@ class _ConversationsListWidgetState extends State<ConversationsListWidget> {
|
||||
),
|
||||
Align(
|
||||
alignment:
|
||||
AlignmentDirectional(-1, 0),
|
||||
const AlignmentDirectional(-1, 0),
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.max,
|
||||
children: [
|
||||
-2
@@ -3,12 +3,10 @@ import '/flutter_flow/flutter_flow_icon_button.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 'image_details_widget.dart' show ImageDetailsWidget;
|
||||
import 'package:auto_size_text/auto_size_text.dart';
|
||||
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';
|
||||
+21
-23
@@ -3,11 +3,9 @@ import '/flutter_flow/flutter_flow_icon_button.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:auto_size_text/auto_size_text.dart';
|
||||
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';
|
||||
@@ -51,15 +49,15 @@ class _ImageDetailsWidgetState extends State<ImageDetailsWidget>
|
||||
curve: Curves.easeInOut,
|
||||
delay: 0.0.ms,
|
||||
duration: 300.0.ms,
|
||||
begin: Offset(0.0, 30.0),
|
||||
end: Offset(0.0, 0.0),
|
||||
begin: const Offset(0.0, 30.0),
|
||||
end: const Offset(0.0, 0.0),
|
||||
),
|
||||
ScaleEffect(
|
||||
curve: Curves.easeInOut,
|
||||
delay: 0.0.ms,
|
||||
duration: 300.0.ms,
|
||||
begin: Offset(0.7, 0.7),
|
||||
end: Offset(1.0, 1.0),
|
||||
begin: const Offset(0.7, 0.7),
|
||||
end: const Offset(1.0, 1.0),
|
||||
),
|
||||
],
|
||||
),
|
||||
@@ -78,15 +76,15 @@ class _ImageDetailsWidgetState extends State<ImageDetailsWidget>
|
||||
curve: Curves.easeInOut,
|
||||
delay: 0.0.ms,
|
||||
duration: 300.0.ms,
|
||||
begin: Offset(0.0, 30.0),
|
||||
end: Offset(0.0, 0.0),
|
||||
begin: const Offset(0.0, 30.0),
|
||||
end: const Offset(0.0, 0.0),
|
||||
),
|
||||
TiltEffect(
|
||||
curve: Curves.easeInOut,
|
||||
delay: 0.0.ms,
|
||||
duration: 300.0.ms,
|
||||
begin: Offset(-0.698, 0),
|
||||
end: Offset(0, 0),
|
||||
begin: const Offset(-0.698, 0),
|
||||
end: const Offset(0, 0),
|
||||
),
|
||||
],
|
||||
),
|
||||
@@ -126,7 +124,7 @@ class _ImageDetailsWidgetState extends State<ImageDetailsWidget>
|
||||
context.pop();
|
||||
},
|
||||
),
|
||||
actions: [],
|
||||
actions: const [],
|
||||
centerTitle: false,
|
||||
elevation: 0,
|
||||
),
|
||||
@@ -137,15 +135,15 @@ class _ImageDetailsWidgetState extends State<ImageDetailsWidget>
|
||||
children: [
|
||||
Expanded(
|
||||
child: Padding(
|
||||
padding: EdgeInsets.all(12),
|
||||
padding: const EdgeInsets.all(12),
|
||||
child: Hero(
|
||||
tag: 'hero',
|
||||
transitionOnUserGestures: true,
|
||||
child: ClipRRect(
|
||||
borderRadius: BorderRadius.circular(8),
|
||||
child: CachedNetworkImage(
|
||||
fadeInDuration: Duration(milliseconds: 500),
|
||||
fadeOutDuration: Duration(milliseconds: 500),
|
||||
fadeInDuration: const Duration(milliseconds: 500),
|
||||
fadeOutDuration: const Duration(milliseconds: 500),
|
||||
imageUrl: 'https://picsum.photos/seed/150/600',
|
||||
width: double.infinity,
|
||||
fit: BoxFit.fitWidth,
|
||||
@@ -158,13 +156,13 @@ class _ImageDetailsWidgetState extends State<ImageDetailsWidget>
|
||||
),
|
||||
),
|
||||
Padding(
|
||||
padding: EdgeInsetsDirectional.fromSTEB(12, 12, 12, 32),
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(12, 12, 12, 32),
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.max,
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Padding(
|
||||
padding: EdgeInsetsDirectional.fromSTEB(0, 4, 8, 16),
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(0, 4, 8, 16),
|
||||
child: Container(
|
||||
width: 36,
|
||||
height: 36,
|
||||
@@ -178,12 +176,12 @@ class _ImageDetailsWidgetState extends State<ImageDetailsWidget>
|
||||
),
|
||||
),
|
||||
child: Padding(
|
||||
padding: EdgeInsets.all(2),
|
||||
padding: const EdgeInsets.all(2),
|
||||
child: ClipRRect(
|
||||
borderRadius: BorderRadius.circular(8),
|
||||
child: CachedNetworkImage(
|
||||
fadeInDuration: Duration(milliseconds: 200),
|
||||
fadeOutDuration: Duration(milliseconds: 200),
|
||||
fadeInDuration: const Duration(milliseconds: 200),
|
||||
fadeOutDuration: const Duration(milliseconds: 200),
|
||||
imageUrl:
|
||||
'https://images.unsplash.com/photo-1521572267360-ee0c2909d518?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w0NTYyMDF8MHwxfHNlYXJjaHwyMHx8cHJvZmlsZXxlbnwwfHx8fDE2OTU4MjQ5OTN8MA&ixlib=rb-4.0.3&q=80&w=1080',
|
||||
width: 44,
|
||||
@@ -196,7 +194,7 @@ class _ImageDetailsWidgetState extends State<ImageDetailsWidget>
|
||||
),
|
||||
Flexible(
|
||||
child: Padding(
|
||||
padding: EdgeInsetsDirectional.fromSTEB(0, 0, 0, 8),
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(0, 0, 0, 8),
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.max,
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
@@ -218,7 +216,7 @@ class _ImageDetailsWidgetState extends State<ImageDetailsWidget>
|
||||
),
|
||||
)),
|
||||
Padding(
|
||||
padding: EdgeInsetsDirectional.fromSTEB(
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(
|
||||
0, 4, 0, 0),
|
||||
child: Text(
|
||||
'Just Now',
|
||||
@@ -230,11 +228,11 @@ class _ImageDetailsWidgetState extends State<ImageDetailsWidget>
|
||||
),
|
||||
),
|
||||
),
|
||||
].divide(SizedBox(width: 4)),
|
||||
].divide(const SizedBox(width: 4)),
|
||||
),
|
||||
Padding(
|
||||
padding:
|
||||
EdgeInsetsDirectional.fromSTEB(0, 4, 0, 0),
|
||||
const EdgeInsetsDirectional.fromSTEB(0, 4, 0, 0),
|
||||
child: SelectionArea(
|
||||
child: AutoSizeText(
|
||||
'Thanks so much! We really do appreciate it!',
|
||||
@@ -3,11 +3,9 @@ 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 'settings_widget.dart' show SettingsWidget;
|
||||
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';
|
||||
+94
-96
@@ -3,10 +3,8 @@ 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';
|
||||
@@ -49,8 +47,8 @@ class _SettingsWidgetState extends State<SettingsWidget>
|
||||
curve: Curves.easeInOut,
|
||||
delay: 0.0.ms,
|
||||
duration: 600.0.ms,
|
||||
begin: Offset(0.0, 90.0),
|
||||
end: Offset(0.0, 0.0),
|
||||
begin: const Offset(0.0, 90.0),
|
||||
end: const Offset(0.0, 0.0),
|
||||
),
|
||||
],
|
||||
),
|
||||
@@ -68,8 +66,8 @@ class _SettingsWidgetState extends State<SettingsWidget>
|
||||
curve: Curves.easeInOut,
|
||||
delay: 0.0.ms,
|
||||
duration: 600.0.ms,
|
||||
begin: Offset(0.0, 90.0),
|
||||
end: Offset(0.0, 0.0),
|
||||
begin: const Offset(0.0, 90.0),
|
||||
end: const Offset(0.0, 0.0),
|
||||
),
|
||||
],
|
||||
),
|
||||
@@ -105,7 +103,7 @@ class _SettingsWidgetState extends State<SettingsWidget>
|
||||
letterSpacing: 0,
|
||||
),
|
||||
),
|
||||
actions: [],
|
||||
actions: const [],
|
||||
centerTitle: false,
|
||||
elevation: 0,
|
||||
)
|
||||
@@ -134,14 +132,14 @@ class _SettingsWidgetState extends State<SettingsWidget>
|
||||
),
|
||||
),
|
||||
child: Padding(
|
||||
padding: EdgeInsetsDirectional.fromSTEB(0, 24, 0, 16),
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(0, 24, 0, 16),
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.max,
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Padding(
|
||||
padding:
|
||||
EdgeInsetsDirectional.fromSTEB(16, 0, 16, 12),
|
||||
const EdgeInsetsDirectional.fromSTEB(16, 0, 16, 12),
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.max,
|
||||
children: [
|
||||
@@ -151,7 +149,7 @@ class _SettingsWidgetState extends State<SettingsWidget>
|
||||
size: 32,
|
||||
),
|
||||
Padding(
|
||||
padding: EdgeInsetsDirectional.fromSTEB(
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(
|
||||
12, 0, 0, 0),
|
||||
child: Text(
|
||||
'check.io',
|
||||
@@ -177,7 +175,7 @@ class _SettingsWidgetState extends State<SettingsWidget>
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Padding(
|
||||
padding: EdgeInsetsDirectional.fromSTEB(
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(
|
||||
16, 12, 0, 0),
|
||||
child: Text(
|
||||
'Platform Navigation',
|
||||
@@ -190,10 +188,10 @@ class _SettingsWidgetState extends State<SettingsWidget>
|
||||
),
|
||||
),
|
||||
Padding(
|
||||
padding: EdgeInsetsDirectional.fromSTEB(
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(
|
||||
16, 0, 16, 0),
|
||||
child: AnimatedContainer(
|
||||
duration: Duration(milliseconds: 200),
|
||||
duration: const Duration(milliseconds: 200),
|
||||
curve: Curves.easeInOut,
|
||||
width: double.infinity,
|
||||
height: 44,
|
||||
@@ -204,7 +202,7 @@ class _SettingsWidgetState extends State<SettingsWidget>
|
||||
shape: BoxShape.rectangle,
|
||||
),
|
||||
child: Padding(
|
||||
padding: EdgeInsetsDirectional.fromSTEB(
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(
|
||||
8, 0, 6, 0),
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.max,
|
||||
@@ -217,7 +215,7 @@ class _SettingsWidgetState extends State<SettingsWidget>
|
||||
),
|
||||
Padding(
|
||||
padding:
|
||||
EdgeInsetsDirectional.fromSTEB(
|
||||
const EdgeInsetsDirectional.fromSTEB(
|
||||
12, 0, 0, 0),
|
||||
child: Text(
|
||||
'Dashboard',
|
||||
@@ -237,10 +235,10 @@ class _SettingsWidgetState extends State<SettingsWidget>
|
||||
),
|
||||
),
|
||||
Padding(
|
||||
padding: EdgeInsetsDirectional.fromSTEB(
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(
|
||||
16, 0, 16, 0),
|
||||
child: AnimatedContainer(
|
||||
duration: Duration(milliseconds: 200),
|
||||
duration: const Duration(milliseconds: 200),
|
||||
curve: Curves.easeInOut,
|
||||
width: double.infinity,
|
||||
height: 44,
|
||||
@@ -251,7 +249,7 @@ class _SettingsWidgetState extends State<SettingsWidget>
|
||||
shape: BoxShape.rectangle,
|
||||
),
|
||||
child: Padding(
|
||||
padding: EdgeInsetsDirectional.fromSTEB(
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(
|
||||
8, 0, 6, 0),
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.max,
|
||||
@@ -264,7 +262,7 @@ class _SettingsWidgetState extends State<SettingsWidget>
|
||||
),
|
||||
Padding(
|
||||
padding:
|
||||
EdgeInsetsDirectional.fromSTEB(
|
||||
const EdgeInsetsDirectional.fromSTEB(
|
||||
12, 0, 0, 0),
|
||||
child: Text(
|
||||
'Chats',
|
||||
@@ -284,10 +282,10 @@ class _SettingsWidgetState extends State<SettingsWidget>
|
||||
),
|
||||
),
|
||||
Padding(
|
||||
padding: EdgeInsetsDirectional.fromSTEB(
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(
|
||||
16, 0, 16, 0),
|
||||
child: AnimatedContainer(
|
||||
duration: Duration(milliseconds: 200),
|
||||
duration: const Duration(milliseconds: 200),
|
||||
curve: Curves.easeInOut,
|
||||
width: double.infinity,
|
||||
height: 44,
|
||||
@@ -298,7 +296,7 @@ class _SettingsWidgetState extends State<SettingsWidget>
|
||||
shape: BoxShape.rectangle,
|
||||
),
|
||||
child: Padding(
|
||||
padding: EdgeInsetsDirectional.fromSTEB(
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(
|
||||
8, 0, 6, 0),
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.max,
|
||||
@@ -311,7 +309,7 @@ class _SettingsWidgetState extends State<SettingsWidget>
|
||||
),
|
||||
Padding(
|
||||
padding:
|
||||
EdgeInsetsDirectional.fromSTEB(
|
||||
const EdgeInsetsDirectional.fromSTEB(
|
||||
12, 0, 0, 0),
|
||||
child: Text(
|
||||
'Projects',
|
||||
@@ -331,10 +329,10 @@ class _SettingsWidgetState extends State<SettingsWidget>
|
||||
),
|
||||
),
|
||||
Padding(
|
||||
padding: EdgeInsetsDirectional.fromSTEB(
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(
|
||||
16, 0, 16, 0),
|
||||
child: AnimatedContainer(
|
||||
duration: Duration(milliseconds: 200),
|
||||
duration: const Duration(milliseconds: 200),
|
||||
curve: Curves.easeInOut,
|
||||
width: double.infinity,
|
||||
height: 44,
|
||||
@@ -345,7 +343,7 @@ class _SettingsWidgetState extends State<SettingsWidget>
|
||||
shape: BoxShape.rectangle,
|
||||
),
|
||||
child: Padding(
|
||||
padding: EdgeInsetsDirectional.fromSTEB(
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(
|
||||
8, 0, 6, 0),
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.max,
|
||||
@@ -358,7 +356,7 @@ class _SettingsWidgetState extends State<SettingsWidget>
|
||||
),
|
||||
Expanded(
|
||||
child: Padding(
|
||||
padding: EdgeInsetsDirectional
|
||||
padding: const EdgeInsetsDirectional
|
||||
.fromSTEB(12, 0, 0, 0),
|
||||
child: Text(
|
||||
'Recent Orders',
|
||||
@@ -384,9 +382,9 @@ class _SettingsWidgetState extends State<SettingsWidget>
|
||||
),
|
||||
child: Align(
|
||||
alignment:
|
||||
AlignmentDirectional(0, 0),
|
||||
const AlignmentDirectional(0, 0),
|
||||
child: Padding(
|
||||
padding: EdgeInsetsDirectional
|
||||
padding: const EdgeInsetsDirectional
|
||||
.fromSTEB(8, 4, 8, 4),
|
||||
child: Text(
|
||||
'12',
|
||||
@@ -412,7 +410,7 @@ class _SettingsWidgetState extends State<SettingsWidget>
|
||||
),
|
||||
),
|
||||
Padding(
|
||||
padding: EdgeInsetsDirectional.fromSTEB(
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(
|
||||
16, 0, 0, 0),
|
||||
child: Text(
|
||||
'Settings',
|
||||
@@ -425,10 +423,10 @@ class _SettingsWidgetState extends State<SettingsWidget>
|
||||
),
|
||||
),
|
||||
Padding(
|
||||
padding: EdgeInsetsDirectional.fromSTEB(
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(
|
||||
16, 0, 16, 0),
|
||||
child: AnimatedContainer(
|
||||
duration: Duration(milliseconds: 200),
|
||||
duration: const Duration(milliseconds: 200),
|
||||
curve: Curves.easeInOut,
|
||||
width: double.infinity,
|
||||
height: 44,
|
||||
@@ -439,7 +437,7 @@ class _SettingsWidgetState extends State<SettingsWidget>
|
||||
shape: BoxShape.rectangle,
|
||||
),
|
||||
child: Padding(
|
||||
padding: EdgeInsetsDirectional.fromSTEB(
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(
|
||||
8, 0, 6, 0),
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.max,
|
||||
@@ -452,7 +450,7 @@ class _SettingsWidgetState extends State<SettingsWidget>
|
||||
),
|
||||
Padding(
|
||||
padding:
|
||||
EdgeInsetsDirectional.fromSTEB(
|
||||
const EdgeInsetsDirectional.fromSTEB(
|
||||
12, 0, 0, 0),
|
||||
child: Text(
|
||||
'Billing',
|
||||
@@ -472,10 +470,10 @@ class _SettingsWidgetState extends State<SettingsWidget>
|
||||
),
|
||||
),
|
||||
Padding(
|
||||
padding: EdgeInsetsDirectional.fromSTEB(
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(
|
||||
16, 0, 16, 0),
|
||||
child: AnimatedContainer(
|
||||
duration: Duration(milliseconds: 200),
|
||||
duration: const Duration(milliseconds: 200),
|
||||
curve: Curves.easeInOut,
|
||||
width: double.infinity,
|
||||
height: 44,
|
||||
@@ -486,7 +484,7 @@ class _SettingsWidgetState extends State<SettingsWidget>
|
||||
shape: BoxShape.rectangle,
|
||||
),
|
||||
child: Padding(
|
||||
padding: EdgeInsetsDirectional.fromSTEB(
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(
|
||||
8, 0, 6, 0),
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.max,
|
||||
@@ -499,7 +497,7 @@ class _SettingsWidgetState extends State<SettingsWidget>
|
||||
),
|
||||
Padding(
|
||||
padding:
|
||||
EdgeInsetsDirectional.fromSTEB(
|
||||
const EdgeInsetsDirectional.fromSTEB(
|
||||
12, 0, 0, 0),
|
||||
child: Text(
|
||||
'Explore',
|
||||
@@ -518,14 +516,14 @@ class _SettingsWidgetState extends State<SettingsWidget>
|
||||
),
|
||||
),
|
||||
),
|
||||
].divide(SizedBox(height: 12)),
|
||||
].divide(const SizedBox(height: 12)),
|
||||
),
|
||||
),
|
||||
Align(
|
||||
alignment: AlignmentDirectional(0, -1),
|
||||
alignment: const AlignmentDirectional(0, -1),
|
||||
child: Padding(
|
||||
padding:
|
||||
EdgeInsetsDirectional.fromSTEB(0, 8, 0, 16),
|
||||
const EdgeInsetsDirectional.fromSTEB(0, 8, 0, 16),
|
||||
child: Container(
|
||||
width: 250,
|
||||
height: 50,
|
||||
@@ -540,7 +538,7 @@ class _SettingsWidgetState extends State<SettingsWidget>
|
||||
),
|
||||
),
|
||||
child: Padding(
|
||||
padding: EdgeInsets.all(4),
|
||||
padding: const EdgeInsets.all(4),
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.max,
|
||||
mainAxisAlignment: MainAxisAlignment.start,
|
||||
@@ -604,7 +602,7 @@ class _SettingsWidgetState extends State<SettingsWidget>
|
||||
size: 16,
|
||||
),
|
||||
Padding(
|
||||
padding: EdgeInsetsDirectional
|
||||
padding: const EdgeInsetsDirectional
|
||||
.fromSTEB(4, 0, 0, 0),
|
||||
child: Text(
|
||||
'Light Mode',
|
||||
@@ -693,7 +691,7 @@ class _SettingsWidgetState extends State<SettingsWidget>
|
||||
size: 16,
|
||||
),
|
||||
Padding(
|
||||
padding: EdgeInsetsDirectional
|
||||
padding: const EdgeInsetsDirectional
|
||||
.fromSTEB(4, 0, 0, 0),
|
||||
child: Text(
|
||||
'Dark Mode',
|
||||
@@ -736,7 +734,7 @@ class _SettingsWidgetState extends State<SettingsWidget>
|
||||
),
|
||||
Padding(
|
||||
padding:
|
||||
EdgeInsetsDirectional.fromSTEB(16, 12, 16, 12),
|
||||
const EdgeInsetsDirectional.fromSTEB(16, 12, 16, 12),
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.max,
|
||||
children: [
|
||||
@@ -753,14 +751,14 @@ class _SettingsWidgetState extends State<SettingsWidget>
|
||||
),
|
||||
),
|
||||
child: Padding(
|
||||
padding: EdgeInsets.all(2),
|
||||
padding: const EdgeInsets.all(2),
|
||||
child: ClipRRect(
|
||||
borderRadius: BorderRadius.circular(8),
|
||||
child: CachedNetworkImage(
|
||||
fadeInDuration:
|
||||
Duration(milliseconds: 500),
|
||||
const Duration(milliseconds: 500),
|
||||
fadeOutDuration:
|
||||
Duration(milliseconds: 500),
|
||||
const 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,
|
||||
@@ -772,7 +770,7 @@ class _SettingsWidgetState extends State<SettingsWidget>
|
||||
),
|
||||
Expanded(
|
||||
child: Padding(
|
||||
padding: EdgeInsetsDirectional.fromSTEB(
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(
|
||||
12, 0, 0, 0),
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.max,
|
||||
@@ -806,7 +804,7 @@ class _SettingsWidgetState extends State<SettingsWidget>
|
||||
),
|
||||
Padding(
|
||||
padding:
|
||||
EdgeInsetsDirectional.fromSTEB(16, 0, 16, 0),
|
||||
const EdgeInsetsDirectional.fromSTEB(16, 0, 16, 0),
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.max,
|
||||
mainAxisAlignment: MainAxisAlignment.end,
|
||||
@@ -826,7 +824,7 @@ class _SettingsWidgetState extends State<SettingsWidget>
|
||||
),
|
||||
Expanded(
|
||||
child: Align(
|
||||
alignment: AlignmentDirectional(0, 0),
|
||||
alignment: const AlignmentDirectional(0, 0),
|
||||
child: SingleChildScrollView(
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.max,
|
||||
@@ -839,13 +837,13 @@ class _SettingsWidgetState extends State<SettingsWidget>
|
||||
Container(
|
||||
width: double.infinity,
|
||||
height: 24,
|
||||
decoration: BoxDecoration(),
|
||||
decoration: const BoxDecoration(),
|
||||
),
|
||||
Align(
|
||||
alignment: AlignmentDirectional(0, -1),
|
||||
alignment: const AlignmentDirectional(0, -1),
|
||||
child: Padding(
|
||||
padding:
|
||||
EdgeInsetsDirectional.fromSTEB(16, 16, 16, 0),
|
||||
const EdgeInsetsDirectional.fromSTEB(16, 16, 16, 0),
|
||||
child: Wrap(
|
||||
spacing: 16,
|
||||
runSpacing: 16,
|
||||
@@ -858,7 +856,7 @@ class _SettingsWidgetState extends State<SettingsWidget>
|
||||
children: [
|
||||
Container(
|
||||
width: double.infinity,
|
||||
constraints: BoxConstraints(
|
||||
constraints: const BoxConstraints(
|
||||
maxWidth: 390,
|
||||
),
|
||||
decoration: BoxDecoration(
|
||||
@@ -875,7 +873,7 @@ class _SettingsWidgetState extends State<SettingsWidget>
|
||||
mainAxisSize: MainAxisSize.max,
|
||||
children: [
|
||||
Padding(
|
||||
padding: EdgeInsets.all(16),
|
||||
padding: const EdgeInsets.all(16),
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.max,
|
||||
children: [
|
||||
@@ -896,15 +894,15 @@ class _SettingsWidgetState extends State<SettingsWidget>
|
||||
),
|
||||
),
|
||||
child: Padding(
|
||||
padding: EdgeInsets.all(2),
|
||||
padding: const EdgeInsets.all(2),
|
||||
child: ClipRRect(
|
||||
borderRadius:
|
||||
BorderRadius.circular(
|
||||
8),
|
||||
child: CachedNetworkImage(
|
||||
fadeInDuration: Duration(
|
||||
fadeInDuration: const Duration(
|
||||
milliseconds: 500),
|
||||
fadeOutDuration: Duration(
|
||||
fadeOutDuration: const 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',
|
||||
@@ -917,7 +915,7 @@ class _SettingsWidgetState extends State<SettingsWidget>
|
||||
),
|
||||
Expanded(
|
||||
child: Padding(
|
||||
padding: EdgeInsetsDirectional
|
||||
padding: const EdgeInsetsDirectional
|
||||
.fromSTEB(16, 4, 0, 4),
|
||||
child: Column(
|
||||
mainAxisSize:
|
||||
@@ -939,7 +937,7 @@ class _SettingsWidgetState extends State<SettingsWidget>
|
||||
),
|
||||
Padding(
|
||||
padding:
|
||||
EdgeInsetsDirectional
|
||||
const EdgeInsetsDirectional
|
||||
.fromSTEB(
|
||||
0, 4, 0, 0),
|
||||
child: Text(
|
||||
@@ -973,7 +971,7 @@ class _SettingsWidgetState extends State<SettingsWidget>
|
||||
children: [
|
||||
Expanded(
|
||||
child: Padding(
|
||||
padding: EdgeInsetsDirectional
|
||||
padding: const EdgeInsetsDirectional
|
||||
.fromSTEB(0, 0, 0, 12),
|
||||
child: Container(
|
||||
width: 200,
|
||||
@@ -987,7 +985,7 @@ class _SettingsWidgetState extends State<SettingsWidget>
|
||||
),
|
||||
child: Padding(
|
||||
padding:
|
||||
EdgeInsetsDirectional
|
||||
const EdgeInsetsDirectional
|
||||
.fromSTEB(
|
||||
12, 12, 12, 0),
|
||||
child: Column(
|
||||
@@ -1006,7 +1004,7 @@ class _SettingsWidgetState extends State<SettingsWidget>
|
||||
),
|
||||
Padding(
|
||||
padding:
|
||||
EdgeInsetsDirectional
|
||||
const EdgeInsetsDirectional
|
||||
.fromSTEB(0,
|
||||
8, 0, 4),
|
||||
child: Text(
|
||||
@@ -1047,7 +1045,7 @@ class _SettingsWidgetState extends State<SettingsWidget>
|
||||
),
|
||||
Expanded(
|
||||
child: Padding(
|
||||
padding: EdgeInsetsDirectional
|
||||
padding: const EdgeInsetsDirectional
|
||||
.fromSTEB(0, 0, 0, 12),
|
||||
child: Container(
|
||||
width: 200,
|
||||
@@ -1061,7 +1059,7 @@ class _SettingsWidgetState extends State<SettingsWidget>
|
||||
),
|
||||
child: Padding(
|
||||
padding:
|
||||
EdgeInsetsDirectional
|
||||
const EdgeInsetsDirectional
|
||||
.fromSTEB(
|
||||
12, 12, 12, 0),
|
||||
child: Column(
|
||||
@@ -1081,7 +1079,7 @@ class _SettingsWidgetState extends State<SettingsWidget>
|
||||
),
|
||||
Padding(
|
||||
padding:
|
||||
EdgeInsetsDirectional
|
||||
const EdgeInsetsDirectional
|
||||
.fromSTEB(0,
|
||||
8, 0, 4),
|
||||
child: Text(
|
||||
@@ -1127,10 +1125,10 @@ class _SettingsWidgetState extends State<SettingsWidget>
|
||||
),
|
||||
Container(
|
||||
width: double.infinity,
|
||||
constraints: BoxConstraints(
|
||||
constraints: const BoxConstraints(
|
||||
maxWidth: 470,
|
||||
),
|
||||
decoration: BoxDecoration(),
|
||||
decoration: const BoxDecoration(),
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.max,
|
||||
crossAxisAlignment:
|
||||
@@ -1151,7 +1149,7 @@ class _SettingsWidgetState extends State<SettingsWidget>
|
||||
),
|
||||
child: Padding(
|
||||
padding:
|
||||
EdgeInsetsDirectional.fromSTEB(
|
||||
const EdgeInsetsDirectional.fromSTEB(
|
||||
16, 12, 0, 12),
|
||||
child: Text(
|
||||
'My Account Information',
|
||||
@@ -1168,7 +1166,7 @@ class _SettingsWidgetState extends State<SettingsWidget>
|
||||
),
|
||||
Padding(
|
||||
padding:
|
||||
EdgeInsetsDirectional.fromSTEB(
|
||||
const EdgeInsetsDirectional.fromSTEB(
|
||||
0, 0, 0, 1),
|
||||
child: Container(
|
||||
width: double.infinity,
|
||||
@@ -1183,7 +1181,7 @@ class _SettingsWidgetState extends State<SettingsWidget>
|
||||
color: FlutterFlowTheme.of(
|
||||
context)
|
||||
.alternate,
|
||||
offset: Offset(
|
||||
offset: const Offset(
|
||||
0,
|
||||
1,
|
||||
),
|
||||
@@ -1192,7 +1190,7 @@ class _SettingsWidgetState extends State<SettingsWidget>
|
||||
shape: BoxShape.rectangle,
|
||||
),
|
||||
child: Padding(
|
||||
padding: EdgeInsetsDirectional
|
||||
padding: const EdgeInsetsDirectional
|
||||
.fromSTEB(16, 0, 16, 0),
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.max,
|
||||
@@ -1217,7 +1215,7 @@ class _SettingsWidgetState extends State<SettingsWidget>
|
||||
Expanded(
|
||||
child: Align(
|
||||
alignment:
|
||||
AlignmentDirectional(
|
||||
const AlignmentDirectional(
|
||||
1, 0),
|
||||
child: Icon(
|
||||
Icons
|
||||
@@ -1238,7 +1236,7 @@ class _SettingsWidgetState extends State<SettingsWidget>
|
||||
),
|
||||
Padding(
|
||||
padding:
|
||||
EdgeInsetsDirectional.fromSTEB(
|
||||
const EdgeInsetsDirectional.fromSTEB(
|
||||
0, 0, 0, 1),
|
||||
child: Container(
|
||||
width: double.infinity,
|
||||
@@ -1253,7 +1251,7 @@ class _SettingsWidgetState extends State<SettingsWidget>
|
||||
color: FlutterFlowTheme.of(
|
||||
context)
|
||||
.alternate,
|
||||
offset: Offset(
|
||||
offset: const Offset(
|
||||
0,
|
||||
1,
|
||||
),
|
||||
@@ -1262,7 +1260,7 @@ class _SettingsWidgetState extends State<SettingsWidget>
|
||||
shape: BoxShape.rectangle,
|
||||
),
|
||||
child: Padding(
|
||||
padding: EdgeInsetsDirectional
|
||||
padding: const EdgeInsetsDirectional
|
||||
.fromSTEB(16, 0, 16, 0),
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.max,
|
||||
@@ -1292,7 +1290,7 @@ class _SettingsWidgetState extends State<SettingsWidget>
|
||||
Expanded(
|
||||
child: Align(
|
||||
alignment:
|
||||
AlignmentDirectional(
|
||||
const AlignmentDirectional(
|
||||
1, 0),
|
||||
child: Icon(
|
||||
Icons
|
||||
@@ -1313,7 +1311,7 @@ class _SettingsWidgetState extends State<SettingsWidget>
|
||||
),
|
||||
Padding(
|
||||
padding:
|
||||
EdgeInsetsDirectional.fromSTEB(
|
||||
const EdgeInsetsDirectional.fromSTEB(
|
||||
0, 12, 0, 0),
|
||||
child: Container(
|
||||
width: double.infinity,
|
||||
@@ -1330,7 +1328,7 @@ class _SettingsWidgetState extends State<SettingsWidget>
|
||||
),
|
||||
),
|
||||
child: Padding(
|
||||
padding: EdgeInsetsDirectional
|
||||
padding: const EdgeInsetsDirectional
|
||||
.fromSTEB(16, 12, 0, 12),
|
||||
child: Text(
|
||||
'Support',
|
||||
@@ -1348,7 +1346,7 @@ class _SettingsWidgetState extends State<SettingsWidget>
|
||||
),
|
||||
Padding(
|
||||
padding:
|
||||
EdgeInsetsDirectional.fromSTEB(
|
||||
const EdgeInsetsDirectional.fromSTEB(
|
||||
0, 0, 0, 1),
|
||||
child: InkWell(
|
||||
splashColor: Colors.transparent,
|
||||
@@ -1365,7 +1363,7 @@ class _SettingsWidgetState extends State<SettingsWidget>
|
||||
transitionType:
|
||||
PageTransitionType
|
||||
.rightToLeft,
|
||||
duration: Duration(
|
||||
duration: const Duration(
|
||||
milliseconds: 250),
|
||||
),
|
||||
},
|
||||
@@ -1384,7 +1382,7 @@ class _SettingsWidgetState extends State<SettingsWidget>
|
||||
color: FlutterFlowTheme.of(
|
||||
context)
|
||||
.alternate,
|
||||
offset: Offset(
|
||||
offset: const Offset(
|
||||
0,
|
||||
1,
|
||||
),
|
||||
@@ -1393,7 +1391,7 @@ class _SettingsWidgetState extends State<SettingsWidget>
|
||||
shape: BoxShape.rectangle,
|
||||
),
|
||||
child: Padding(
|
||||
padding: EdgeInsetsDirectional
|
||||
padding: const EdgeInsetsDirectional
|
||||
.fromSTEB(16, 0, 16, 0),
|
||||
child: Column(
|
||||
mainAxisSize:
|
||||
@@ -1423,7 +1421,7 @@ class _SettingsWidgetState extends State<SettingsWidget>
|
||||
Expanded(
|
||||
child: Align(
|
||||
alignment:
|
||||
AlignmentDirectional(
|
||||
const AlignmentDirectional(
|
||||
1, 0),
|
||||
child: Icon(
|
||||
Icons
|
||||
@@ -1445,7 +1443,7 @@ class _SettingsWidgetState extends State<SettingsWidget>
|
||||
),
|
||||
Padding(
|
||||
padding:
|
||||
EdgeInsetsDirectional.fromSTEB(
|
||||
const EdgeInsetsDirectional.fromSTEB(
|
||||
0, 0, 0, 1),
|
||||
child: InkWell(
|
||||
splashColor: Colors.transparent,
|
||||
@@ -1484,7 +1482,7 @@ class _SettingsWidgetState extends State<SettingsWidget>
|
||||
color: FlutterFlowTheme.of(
|
||||
context)
|
||||
.alternate,
|
||||
offset: Offset(
|
||||
offset: const Offset(
|
||||
0,
|
||||
1,
|
||||
),
|
||||
@@ -1493,7 +1491,7 @@ class _SettingsWidgetState extends State<SettingsWidget>
|
||||
shape: BoxShape.rectangle,
|
||||
),
|
||||
child: Padding(
|
||||
padding: EdgeInsetsDirectional
|
||||
padding: const EdgeInsetsDirectional
|
||||
.fromSTEB(16, 0, 16, 0),
|
||||
child: Column(
|
||||
mainAxisSize:
|
||||
@@ -1520,7 +1518,7 @@ class _SettingsWidgetState extends State<SettingsWidget>
|
||||
Expanded(
|
||||
child: Align(
|
||||
alignment:
|
||||
AlignmentDirectional(
|
||||
const AlignmentDirectional(
|
||||
1, 0),
|
||||
child: Icon(
|
||||
Icons
|
||||
@@ -1542,13 +1540,13 @@ class _SettingsWidgetState extends State<SettingsWidget>
|
||||
),
|
||||
Align(
|
||||
alignment:
|
||||
AlignmentDirectional(0, -1),
|
||||
const AlignmentDirectional(0, -1),
|
||||
child: Padding(
|
||||
padding: EdgeInsets.all(16),
|
||||
padding: const EdgeInsets.all(16),
|
||||
child: Container(
|
||||
width: double.infinity,
|
||||
height: 50,
|
||||
constraints: BoxConstraints(
|
||||
constraints: const BoxConstraints(
|
||||
maxWidth: 500,
|
||||
),
|
||||
decoration: BoxDecoration(
|
||||
@@ -1565,7 +1563,7 @@ class _SettingsWidgetState extends State<SettingsWidget>
|
||||
),
|
||||
),
|
||||
child: Padding(
|
||||
padding: EdgeInsets.all(4),
|
||||
padding: const EdgeInsets.all(4),
|
||||
child: Row(
|
||||
mainAxisSize:
|
||||
MainAxisSize.max,
|
||||
@@ -1652,7 +1650,7 @@ class _SettingsWidgetState extends State<SettingsWidget>
|
||||
),
|
||||
Padding(
|
||||
padding:
|
||||
EdgeInsetsDirectional
|
||||
const EdgeInsetsDirectional
|
||||
.fromSTEB(
|
||||
4,
|
||||
0,
|
||||
@@ -1753,7 +1751,7 @@ class _SettingsWidgetState extends State<SettingsWidget>
|
||||
),
|
||||
Padding(
|
||||
padding:
|
||||
EdgeInsetsDirectional
|
||||
const EdgeInsetsDirectional
|
||||
.fromSTEB(
|
||||
4,
|
||||
0,
|
||||
@@ -1794,7 +1792,7 @@ class _SettingsWidgetState extends State<SettingsWidget>
|
||||
),
|
||||
),
|
||||
),
|
||||
].addToEnd(SizedBox(height: 72)),
|
||||
].addToEnd(const SizedBox(height: 72)),
|
||||
),
|
||||
),
|
||||
),
|
||||
@@ -2,10 +2,8 @@ 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 'setup_widget.dart' show SetupWidget;
|
||||
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';
|
||||
@@ -2,9 +2,7 @@ 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: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';
|
||||
@@ -48,8 +46,8 @@ class _SetupWidgetState extends State<SetupWidget>
|
||||
curve: Curves.easeInOut,
|
||||
delay: 0.0.ms,
|
||||
duration: 400.0.ms,
|
||||
begin: Offset(3.0, 3.0),
|
||||
end: Offset(1.0, 1.0),
|
||||
begin: const Offset(3.0, 3.0),
|
||||
end: const Offset(1.0, 1.0),
|
||||
),
|
||||
],
|
||||
),
|
||||
@@ -68,8 +66,8 @@ class _SetupWidgetState extends State<SetupWidget>
|
||||
curve: Curves.bounceOut,
|
||||
delay: 300.0.ms,
|
||||
duration: 300.0.ms,
|
||||
begin: Offset(0.6, 0.6),
|
||||
end: Offset(1.0, 1.0),
|
||||
begin: const Offset(0.6, 0.6),
|
||||
end: const Offset(1.0, 1.0),
|
||||
),
|
||||
],
|
||||
),
|
||||
@@ -88,8 +86,8 @@ class _SetupWidgetState extends State<SetupWidget>
|
||||
curve: Curves.easeInOut,
|
||||
delay: 350.0.ms,
|
||||
duration: 400.0.ms,
|
||||
begin: Offset(0.0, 30.0),
|
||||
end: Offset(0.0, 0.0),
|
||||
begin: const Offset(0.0, 30.0),
|
||||
end: const Offset(0.0, 0.0),
|
||||
),
|
||||
],
|
||||
),
|
||||
@@ -108,8 +106,8 @@ class _SetupWidgetState extends State<SetupWidget>
|
||||
curve: Curves.easeInOut,
|
||||
delay: 400.0.ms,
|
||||
duration: 400.0.ms,
|
||||
begin: Offset(0.0, 30.0),
|
||||
end: Offset(0.0, 0.0),
|
||||
begin: const Offset(0.0, 30.0),
|
||||
end: const Offset(0.0, 0.0),
|
||||
),
|
||||
],
|
||||
),
|
||||
@@ -128,8 +126,8 @@ class _SetupWidgetState extends State<SetupWidget>
|
||||
curve: Curves.bounceOut,
|
||||
delay: 300.0.ms,
|
||||
duration: 600.0.ms,
|
||||
begin: Offset(0.6, 0.6),
|
||||
end: Offset(1.0, 1.0),
|
||||
begin: const Offset(0.6, 0.6),
|
||||
end: const Offset(1.0, 1.0),
|
||||
),
|
||||
],
|
||||
),
|
||||
@@ -167,9 +165,9 @@ class _SetupWidgetState extends State<SetupWidget>
|
||||
FlutterFlowTheme.of(context).error,
|
||||
FlutterFlowTheme.of(context).tertiary
|
||||
],
|
||||
stops: [0, 0.5, 1],
|
||||
begin: AlignmentDirectional(-1, -1),
|
||||
end: AlignmentDirectional(1, 1),
|
||||
stops: const [0, 0.5, 1],
|
||||
begin: const AlignmentDirectional(-1, -1),
|
||||
end: const AlignmentDirectional(1, 1),
|
||||
),
|
||||
),
|
||||
child: Container(
|
||||
@@ -178,12 +176,12 @@ class _SetupWidgetState extends State<SetupWidget>
|
||||
decoration: BoxDecoration(
|
||||
gradient: LinearGradient(
|
||||
colors: [
|
||||
Color(0x00FFFFFF),
|
||||
const Color(0x00FFFFFF),
|
||||
FlutterFlowTheme.of(context).secondaryBackground
|
||||
],
|
||||
stops: [0, 1],
|
||||
begin: AlignmentDirectional(0, -1),
|
||||
end: AlignmentDirectional(0, 1),
|
||||
stops: const [0, 1],
|
||||
begin: const AlignmentDirectional(0, -1),
|
||||
end: const AlignmentDirectional(0, 1),
|
||||
),
|
||||
),
|
||||
child: Column(
|
||||
@@ -198,7 +196,7 @@ class _SetupWidgetState extends State<SetupWidget>
|
||||
shape: BoxShape.circle,
|
||||
),
|
||||
child: Padding(
|
||||
padding: EdgeInsets.all(8),
|
||||
padding: const EdgeInsets.all(8),
|
||||
child: Image.network(
|
||||
'https://storage.googleapis.com/flutterflow-io-6f20.appspot.com/projects/f-f-templates-q1-23-fbcr63/assets/ax4fvwjz7awx/@4xff_badgeDesign_dark_small.png',
|
||||
width: 100,
|
||||
@@ -209,7 +207,7 @@ class _SetupWidgetState extends State<SetupWidget>
|
||||
).animateOnPageLoad(
|
||||
animationsMap['containerOnPageLoadAnimation2']!),
|
||||
Padding(
|
||||
padding: EdgeInsetsDirectional.fromSTEB(0, 44, 0, 0),
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(0, 44, 0, 0),
|
||||
child: Text(
|
||||
'Welcome!',
|
||||
style: FlutterFlowTheme.of(context)
|
||||
@@ -222,7 +220,7 @@ class _SetupWidgetState extends State<SetupWidget>
|
||||
animationsMap['textOnPageLoadAnimation1']!),
|
||||
),
|
||||
Padding(
|
||||
padding: EdgeInsetsDirectional.fromSTEB(44, 8, 44, 0),
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(44, 8, 44, 0),
|
||||
child: Text(
|
||||
'Thanks for joining! Access or create your account below, and get started on your journey!',
|
||||
textAlign: TextAlign.center,
|
||||
@@ -241,15 +239,15 @@ class _SetupWidgetState extends State<SetupWidget>
|
||||
animationsMap['containerOnPageLoadAnimation1']!),
|
||||
),
|
||||
Padding(
|
||||
padding: EdgeInsetsDirectional.fromSTEB(16, 24, 16, 44),
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(16, 24, 16, 44),
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.max,
|
||||
children: [
|
||||
Expanded(
|
||||
child: Align(
|
||||
alignment: AlignmentDirectional(0, 0),
|
||||
alignment: const AlignmentDirectional(0, 0),
|
||||
child: Padding(
|
||||
padding: EdgeInsetsDirectional.fromSTEB(0, 0, 8, 16),
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(0, 0, 8, 16),
|
||||
child: FFButtonWidget(
|
||||
onPressed: () {
|
||||
print('Button pressed ...');
|
||||
@@ -258,9 +256,9 @@ class _SetupWidgetState extends State<SetupWidget>
|
||||
options: FFButtonOptions(
|
||||
width: 230,
|
||||
height: 52,
|
||||
padding: EdgeInsetsDirectional.fromSTEB(0, 0, 0, 0),
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(0, 0, 0, 0),
|
||||
iconPadding:
|
||||
EdgeInsetsDirectional.fromSTEB(0, 0, 0, 0),
|
||||
const EdgeInsetsDirectional.fromSTEB(0, 0, 0, 0),
|
||||
color: FlutterFlowTheme.of(context)
|
||||
.secondaryBackground,
|
||||
textStyle:
|
||||
@@ -281,9 +279,9 @@ class _SetupWidgetState extends State<SetupWidget>
|
||||
),
|
||||
Expanded(
|
||||
child: Align(
|
||||
alignment: AlignmentDirectional(0, 0),
|
||||
alignment: const AlignmentDirectional(0, 0),
|
||||
child: Padding(
|
||||
padding: EdgeInsetsDirectional.fromSTEB(8, 0, 0, 16),
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(8, 0, 0, 16),
|
||||
child: FFButtonWidget(
|
||||
onPressed: () {
|
||||
print('Button pressed ...');
|
||||
@@ -292,9 +290,9 @@ class _SetupWidgetState extends State<SetupWidget>
|
||||
options: FFButtonOptions(
|
||||
width: 230,
|
||||
height: 52,
|
||||
padding: EdgeInsetsDirectional.fromSTEB(0, 0, 0, 0),
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(0, 0, 0, 0),
|
||||
iconPadding:
|
||||
EdgeInsetsDirectional.fromSTEB(0, 0, 0, 0),
|
||||
const EdgeInsetsDirectional.fromSTEB(0, 0, 0, 0),
|
||||
color: FlutterFlowTheme.of(context).primary,
|
||||
textStyle: FlutterFlowTheme.of(context)
|
||||
.titleSmall
|
||||
@@ -304,7 +302,7 @@ class _SetupWidgetState extends State<SetupWidget>
|
||||
letterSpacing: 0,
|
||||
),
|
||||
elevation: 3,
|
||||
borderSide: BorderSide(
|
||||
borderSide: const BorderSide(
|
||||
color: Colors.transparent,
|
||||
width: 1,
|
||||
),
|
||||
-2
@@ -3,10 +3,8 @@ import '/flutter_flow/flutter_flow_icon_button.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 'support_form_widget.dart' show SupportFormWidget;
|
||||
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';
|
||||
+33
-35
@@ -3,9 +3,7 @@ import '/flutter_flow/flutter_flow_icon_button.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: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';
|
||||
@@ -57,8 +55,8 @@ class _SupportFormWidgetState extends State<SupportFormWidget>
|
||||
curve: Curves.easeInOut,
|
||||
delay: 0.0.ms,
|
||||
duration: 600.0.ms,
|
||||
begin: Offset(0.0, 110.0),
|
||||
end: Offset(0.0, 0.0),
|
||||
begin: const Offset(0.0, 110.0),
|
||||
end: const Offset(0.0, 0.0),
|
||||
),
|
||||
],
|
||||
),
|
||||
@@ -76,8 +74,8 @@ class _SupportFormWidgetState extends State<SupportFormWidget>
|
||||
curve: Curves.easeInOut,
|
||||
delay: 0.0.ms,
|
||||
duration: 600.0.ms,
|
||||
begin: Offset(0.0, 110.0),
|
||||
end: Offset(0.0, 0.0),
|
||||
begin: const Offset(0.0, 110.0),
|
||||
end: const Offset(0.0, 0.0),
|
||||
),
|
||||
],
|
||||
),
|
||||
@@ -95,8 +93,8 @@ class _SupportFormWidgetState extends State<SupportFormWidget>
|
||||
curve: Curves.easeInOut,
|
||||
delay: 0.0.ms,
|
||||
duration: 600.0.ms,
|
||||
begin: Offset(0.0, 110.0),
|
||||
end: Offset(0.0, 0.0),
|
||||
begin: const Offset(0.0, 110.0),
|
||||
end: const Offset(0.0, 0.0),
|
||||
),
|
||||
],
|
||||
),
|
||||
@@ -149,16 +147,16 @@ class _SupportFormWidgetState extends State<SupportFormWidget>
|
||||
letterSpacing: 0,
|
||||
),
|
||||
),
|
||||
actions: [],
|
||||
actions: const [],
|
||||
centerTitle: false,
|
||||
elevation: 0,
|
||||
),
|
||||
body: SafeArea(
|
||||
top: true,
|
||||
child: Align(
|
||||
alignment: AlignmentDirectional(0, 1),
|
||||
alignment: const AlignmentDirectional(0, 1),
|
||||
child: Padding(
|
||||
padding: EdgeInsetsDirectional.fromSTEB(16, 12, 16, 0),
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(16, 12, 16, 0),
|
||||
child: SingleChildScrollView(
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.max,
|
||||
@@ -172,7 +170,7 @@ class _SupportFormWidgetState extends State<SupportFormWidget>
|
||||
),
|
||||
),
|
||||
Padding(
|
||||
padding: EdgeInsetsDirectional.fromSTEB(0, 4, 0, 0),
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(0, 4, 0, 0),
|
||||
child: Text(
|
||||
'Submit a bug',
|
||||
style: FlutterFlowTheme.of(context)
|
||||
@@ -189,10 +187,10 @@ class _SupportFormWidgetState extends State<SupportFormWidget>
|
||||
Expanded(
|
||||
child: Padding(
|
||||
padding:
|
||||
EdgeInsetsDirectional.fromSTEB(0, 16, 0, 0),
|
||||
const EdgeInsetsDirectional.fromSTEB(0, 16, 0, 0),
|
||||
child: Container(
|
||||
width: 120,
|
||||
constraints: BoxConstraints(
|
||||
constraints: const BoxConstraints(
|
||||
maxWidth: 500,
|
||||
),
|
||||
decoration: BoxDecoration(
|
||||
@@ -205,7 +203,7 @@ class _SupportFormWidgetState extends State<SupportFormWidget>
|
||||
),
|
||||
),
|
||||
child: Padding(
|
||||
padding: EdgeInsetsDirectional.fromSTEB(
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(
|
||||
8, 16, 8, 16),
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.max,
|
||||
@@ -219,7 +217,7 @@ class _SupportFormWidgetState extends State<SupportFormWidget>
|
||||
size: 36,
|
||||
),
|
||||
Padding(
|
||||
padding: EdgeInsetsDirectional.fromSTEB(
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(
|
||||
0, 12, 0, 0),
|
||||
child: Text(
|
||||
'Email Us',
|
||||
@@ -242,10 +240,10 @@ class _SupportFormWidgetState extends State<SupportFormWidget>
|
||||
Expanded(
|
||||
child: Padding(
|
||||
padding:
|
||||
EdgeInsetsDirectional.fromSTEB(0, 16, 0, 0),
|
||||
const EdgeInsetsDirectional.fromSTEB(0, 16, 0, 0),
|
||||
child: Container(
|
||||
width: 120,
|
||||
constraints: BoxConstraints(
|
||||
constraints: const BoxConstraints(
|
||||
maxWidth: 500,
|
||||
),
|
||||
decoration: BoxDecoration(
|
||||
@@ -258,7 +256,7 @@ class _SupportFormWidgetState extends State<SupportFormWidget>
|
||||
),
|
||||
),
|
||||
child: Padding(
|
||||
padding: EdgeInsetsDirectional.fromSTEB(
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(
|
||||
8, 16, 8, 16),
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.max,
|
||||
@@ -272,7 +270,7 @@ class _SupportFormWidgetState extends State<SupportFormWidget>
|
||||
size: 36,
|
||||
),
|
||||
Padding(
|
||||
padding: EdgeInsetsDirectional.fromSTEB(
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(
|
||||
0, 12, 0, 0),
|
||||
child: Text(
|
||||
'Search FAQs',
|
||||
@@ -292,10 +290,10 @@ class _SupportFormWidgetState extends State<SupportFormWidget>
|
||||
'containerOnPageLoadAnimation2']!),
|
||||
),
|
||||
),
|
||||
].divide(SizedBox(width: 12)),
|
||||
].divide(const SizedBox(width: 12)),
|
||||
),
|
||||
Padding(
|
||||
padding: EdgeInsetsDirectional.fromSTEB(0, 16, 0, 0),
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(0, 16, 0, 0),
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.max,
|
||||
children: [
|
||||
@@ -346,7 +344,7 @@ class _SupportFormWidgetState extends State<SupportFormWidget>
|
||||
),
|
||||
borderRadius: BorderRadius.circular(12),
|
||||
),
|
||||
contentPadding: EdgeInsetsDirectional.fromSTEB(
|
||||
contentPadding: const EdgeInsetsDirectional.fromSTEB(
|
||||
16, 12, 16, 12),
|
||||
),
|
||||
style: FlutterFlowTheme.of(context)
|
||||
@@ -406,7 +404,7 @@ class _SupportFormWidgetState extends State<SupportFormWidget>
|
||||
),
|
||||
borderRadius: BorderRadius.circular(12),
|
||||
),
|
||||
contentPadding: EdgeInsetsDirectional.fromSTEB(
|
||||
contentPadding: const EdgeInsetsDirectional.fromSTEB(
|
||||
16, 12, 16, 12),
|
||||
),
|
||||
style: FlutterFlowTheme.of(context)
|
||||
@@ -467,7 +465,7 @@ class _SupportFormWidgetState extends State<SupportFormWidget>
|
||||
),
|
||||
borderRadius: BorderRadius.circular(12),
|
||||
),
|
||||
contentPadding: EdgeInsetsDirectional.fromSTEB(
|
||||
contentPadding: const EdgeInsetsDirectional.fromSTEB(
|
||||
16, 24, 16, 12),
|
||||
),
|
||||
style: FlutterFlowTheme.of(context)
|
||||
@@ -482,14 +480,14 @@ class _SupportFormWidgetState extends State<SupportFormWidget>
|
||||
validator: _model.textController3Validator
|
||||
.asValidator(context),
|
||||
),
|
||||
].divide(SizedBox(height: 12)),
|
||||
].divide(const SizedBox(height: 12)),
|
||||
),
|
||||
),
|
||||
Padding(
|
||||
padding: EdgeInsetsDirectional.fromSTEB(0, 16, 0, 0),
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(0, 16, 0, 0),
|
||||
child: Container(
|
||||
width: double.infinity,
|
||||
constraints: BoxConstraints(
|
||||
constraints: const BoxConstraints(
|
||||
maxWidth: 500,
|
||||
),
|
||||
decoration: BoxDecoration(
|
||||
@@ -502,7 +500,7 @@ class _SupportFormWidgetState extends State<SupportFormWidget>
|
||||
),
|
||||
),
|
||||
child: Padding(
|
||||
padding: EdgeInsets.all(8),
|
||||
padding: const EdgeInsets.all(8),
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.max,
|
||||
children: [
|
||||
@@ -513,7 +511,7 @@ class _SupportFormWidgetState extends State<SupportFormWidget>
|
||||
),
|
||||
Padding(
|
||||
padding:
|
||||
EdgeInsetsDirectional.fromSTEB(16, 0, 0, 0),
|
||||
const EdgeInsetsDirectional.fromSTEB(16, 0, 0, 0),
|
||||
child: Text(
|
||||
'Upload Screenshot',
|
||||
textAlign: TextAlign.center,
|
||||
@@ -532,22 +530,22 @@ class _SupportFormWidgetState extends State<SupportFormWidget>
|
||||
animationsMap['containerOnPageLoadAnimation3']!),
|
||||
),
|
||||
Padding(
|
||||
padding: EdgeInsetsDirectional.fromSTEB(0, 24, 0, 12),
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(0, 24, 0, 12),
|
||||
child: FFButtonWidget(
|
||||
onPressed: () {
|
||||
print('Button pressed ...');
|
||||
},
|
||||
text: 'Submit Ticket',
|
||||
icon: Icon(
|
||||
icon: const Icon(
|
||||
Icons.receipt_long,
|
||||
size: 15,
|
||||
),
|
||||
options: FFButtonOptions(
|
||||
width: double.infinity,
|
||||
height: 48,
|
||||
padding: EdgeInsets.all(0),
|
||||
padding: const EdgeInsets.all(0),
|
||||
iconPadding:
|
||||
EdgeInsetsDirectional.fromSTEB(0, 0, 0, 0),
|
||||
const EdgeInsetsDirectional.fromSTEB(0, 0, 0, 0),
|
||||
color: FlutterFlowTheme.of(context).primary,
|
||||
textStyle:
|
||||
FlutterFlowTheme.of(context).titleSmall.override(
|
||||
@@ -556,7 +554,7 @@ class _SupportFormWidgetState extends State<SupportFormWidget>
|
||||
letterSpacing: 0,
|
||||
),
|
||||
elevation: 4,
|
||||
borderSide: BorderSide(
|
||||
borderSide: const BorderSide(
|
||||
color: Colors.transparent,
|
||||
width: 1,
|
||||
),
|
||||
Reference in New Issue
Block a user