Schduleページ

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/material.dart’;
import ‘package:google_fonts/google_fonts.dart’;
import ‘package:provider/provider.dart’;

import ‘schdule_model.dart’;
export ‘schdule_model.dart’;

class SchduleWidget extends StatefulWidget {
const SchduleWidget({
super.key,
required this.selectedDate,
required this.destination,
String? place,
String? shop,
String? budget,
String? balance,
}) : this.place = place ?? ‘未設定’,
this.shop = shop ?? ‘未設定’,
this.budget = budget ?? ‘0’,
this.balance = balance ?? ‘0’;

final DateTime? selectedDate;
final String? destination;
final String place;
final String shop;
final String budget;
final String balance;

static String routeName = ‘Schdule’;
static String routePath = ‘/schdule’;

@override
State createState() => _SchduleWidgetState();
}

class _SchduleWidgetState extends State {
late SchduleModel _model;

final scaffoldKey = GlobalKey();

@override
void initState() {
super.initState();
_model = createModel(context, () => SchduleModel());
}

@override
void dispose() {
_model.dispose();

super.dispose();

}

@override
Widget build(BuildContext context) {
return GestureDetector(
onTap: () {
FocusScope.of(context).unfocus();
FocusManager.instance.primaryFocus?.unfocus();
},
child: Scaffold(
key: scaffoldKey,
backgroundColor: FlutterFlowTheme.of(context).primaryBackground,
appBar: PreferredSize(
preferredSize: Size.fromHeight(28),
child: AppBar(
backgroundColor: Color(0xFF0C110C),
automaticallyImplyLeading: true,
actions: [],
flexibleSpace: FlexibleSpaceBar(
title: Text(
‘旅の予定帳’,
style: FlutterFlowTheme.of(context).bodyMedium.override(
font: GoogleFonts.notoSansJp(
fontWeight: FontWeight.w500,
fontStyle:
FlutterFlowTheme.of(context).bodyMedium.fontStyle,
),
color: Colors.white,
letterSpacing: 0.0,
fontWeight: FontWeight.w500,
fontStyle:
FlutterFlowTheme.of(context).bodyMedium.fontStyle,
),
),
centerTitle: true,
expandedTitleScale: 1.0,
),
elevation: 2,
),
),
body: SafeArea(
top: true,
child: Container(
width: 398,
height: 852,
decoration: BoxDecoration(
gradient: LinearGradient(
colors: [Color(0xFF0C110C), Color(0xFF365B38)],
stops: [0.51, 0.88],
begin: AlignmentDirectional(0, -1),
end: AlignmentDirectional(0, 1),
),
),
child: Column(
mainAxisSize: MainAxisSize.max,
children: [
Container(
width: 416.7,
height: 134.62,
decoration: BoxDecoration(),
child: Container(
height: 200,
child: Stack(
children: [
Align(
alignment: AlignmentDirectional(-0.65, -0.25),
child: Text(
‘Travel schedules’,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
font: GoogleFonts.moonDance(
fontWeight: FlutterFlowTheme.of(context)
.bodyMedium
.fontWeight,
fontStyle: FlutterFlowTheme.of(context)
.bodyMedium
.fontStyle,
),
color: Colors.white,
fontSize: 40,
letterSpacing: 0.0,
fontWeight: FlutterFlowTheme.of(context)
.bodyMedium
.fontWeight,
fontStyle: FlutterFlowTheme.of(context)
.bodyMedium
.fontStyle,
),
),
),
Align(
alignment: AlignmentDirectional(-0.68, 0.43),
child: Text(
‘旅の予定と予算’,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
font: GoogleFonts.notoSansJp(
fontWeight: FontWeight.normal,
fontStyle: FlutterFlowTheme.of(context)
.bodyMedium
.fontStyle,
),
color: Colors.white,
fontSize: 18,
letterSpacing: 0.0,
fontWeight: FontWeight.normal,
fontStyle: FlutterFlowTheme.of(context)
.bodyMedium
.fontStyle,
),
),
),
Align(
alignment: AlignmentDirectional(1.05, -5.3),
child: ClipRRect(
borderRadius: BorderRadius.circular(8),
child: Image.asset(
‘assets/images/memory.png’,
width: 139,
fit: BoxFit.cover,
),
),
),
],
),
),
),
Container(
width: 330,
height: 500,
decoration: BoxDecoration(
color: Color(0xFFE6DDB8),
image: DecorationImage(
fit: BoxFit.cover,
image: Image.asset(
‘assets/images/clean-gray-paper.png’,
).image,
),
borderRadius: BorderRadius.only(
bottomLeft: Radius.circular(12),
bottomRight: Radius.circular(12),
topLeft: Radius.circular(12),
topRight: Radius.circular(12),
),
),
child: Stack(
children: [
Column(
mainAxisSize: MainAxisSize.max,
children: [
Align(
alignment: AlignmentDirectional(1, -1),
child: Padding(
padding:
EdgeInsetsDirectional.fromSTEB(0, 12, 12, 0),
child: Text(
valueOrDefault(
widget!.selectedDate?.toString(),
’20XX.X.X’,
),
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
font: GoogleFonts.inter(
fontWeight: FlutterFlowTheme.of(context)
.bodyMedium
.fontWeight,
fontStyle: FlutterFlowTheme.of(context)
.bodyMedium
.fontStyle,
),
letterSpacing: 0.0,
fontWeight: FlutterFlowTheme.of(context)
.bodyMedium
.fontWeight,
fontStyle: FlutterFlowTheme.of(context)
.bodyMedium
.fontStyle,
),
),
),
),
Align(
alignment: AlignmentDirectional(-1, 0),
child: Padding(
padding:
EdgeInsetsDirectional.fromSTEB(24, 0, 0, 24),
child: Text(
valueOrDefault(
widget!.destination,
‘未設定’,
),
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
font: GoogleFonts.notoSansJp(
fontWeight: FontWeight.bold,
fontStyle: FlutterFlowTheme.of(context)
.bodyMedium
.fontStyle,
),
color: Color(0xFF353F35),
fontSize: 18,
letterSpacing: 0.0,
fontWeight: FontWeight.bold,
fontStyle: FlutterFlowTheme.of(context)
.bodyMedium
.fontStyle,
),
),
),
),
Align(
alignment: AlignmentDirectional(-1, 0),
child: Padding(
padding:
EdgeInsetsDirectional.fromSTEB(24, 0, 0, 0),
child: Text(
‘巡りたい場所’,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
font: GoogleFonts.inter(
fontWeight: FontWeight.w600,
fontStyle: FlutterFlowTheme.of(context)
.bodyMedium
.fontStyle,
),
color: Color(0xFF353F35),
fontSize: 15,
letterSpacing: 0.0,
fontWeight: FontWeight.w600,
fontStyle: FlutterFlowTheme.of(context)
.bodyMedium
.fontStyle,
),
),
),
),
Align(
alignment: AlignmentDirectional(0, 0),
child: Padding(
padding:
EdgeInsetsDirectional.fromSTEB(0, 5, 0, 0),
child: Container(
width: 262,
height: 40,
decoration: BoxDecoration(
color: FlutterFlowTheme.of(context)
.secondaryBackground,
boxShadow: [
BoxShadow(
blurRadius: 4,
color: Color(0x1A000000),
offset: Offset(
0,
2,
),
)
],
borderRadius: BorderRadius.only(
bottomLeft: Radius.circular(12),
bottomRight: Radius.circular(12),
topLeft: Radius.circular(12),
topRight: Radius.circular(12),
),
),
child: Align(
alignment: AlignmentDirectional(-1, 0),
child: Padding(
padding: EdgeInsetsDirectional.fromSTEB(
16, 7, 0, 7),
child: Text(
valueOrDefault(
widget!.place,
‘未設定’,
),
textAlign: TextAlign.start,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
font: GoogleFonts.inter(
fontWeight:
FlutterFlowTheme.of(context)
.bodyMedium
.fontWeight,
fontStyle:
FlutterFlowTheme.of(context)
.bodyMedium
.fontStyle,
),
letterSpacing: 0.0,
fontWeight:
FlutterFlowTheme.of(context)
.bodyMedium
.fontWeight,
fontStyle:
FlutterFlowTheme.of(context)
.bodyMedium
.fontStyle,
),
),
),
),
),
),
),
Align(
alignment: AlignmentDirectional(0, 0),
child: Padding(
padding:
EdgeInsetsDirectional.fromSTEB(0, 24, 0, 0),
child: Text(
‘行きたいお店やお土産’,
textAlign: TextAlign.start,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
font: GoogleFonts.notoSansJp(
fontWeight: FontWeight.w600,
fontStyle: FlutterFlowTheme.of(context)
.bodyMedium
.fontStyle,
),
color: Color(0xFF353F35),
letterSpacing: 0.0,
fontWeight: FontWeight.w600,
fontStyle: FlutterFlowTheme.of(context)
.bodyMedium
.fontStyle,
),
),
),
),
Align(
alignment: AlignmentDirectional(0.5, 0),
child: Padding(
padding:
EdgeInsetsDirectional.fromSTEB(0, 5, 0, 0),
child: Container(
width: 222,
height: 40,
decoration: BoxDecoration(
color: FlutterFlowTheme.of(context)
.secondaryBackground,
boxShadow: [
BoxShadow(
blurRadius: 4,
color: Color(0x1A000000),
offset: Offset(
0,
2,
),
)
],
borderRadius: BorderRadius.only(
bottomLeft: Radius.circular(12),
bottomRight: Radius.circular(12),
topLeft: Radius.circular(12),
topRight: Radius.circular(12),
),
),
child: Align(
alignment: AlignmentDirectional(-1, 0),
child: Padding(
padding: EdgeInsetsDirectional.fromSTEB(
16, 7, 0, 7),
child: Text(
valueOrDefault(
widget!.shop,
‘未設定’,
),
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
font: GoogleFonts.inter(
fontWeight:
FlutterFlowTheme.of(context)
.bodyMedium
.fontWeight,
fontStyle:
FlutterFlowTheme.of(context)
.bodyMedium
.fontStyle,
),
letterSpacing: 0.0,
fontWeight:
FlutterFlowTheme.of(context)
.bodyMedium
.fontWeight,
fontStyle:
FlutterFlowTheme.of(context)
.bodyMedium
.fontStyle,
),
),
),
),
),
),
),
Align(
alignment: AlignmentDirectional(0, 0),
child: Padding(
padding:
EdgeInsetsDirectional.fromSTEB(30, 25, 30, 0),
child: Row(
mainAxisSize: MainAxisSize.max,
mainAxisAlignment: MainAxisAlignment.center,
children: [
Padding(
padding: EdgeInsetsDirectional.fromSTEB(
0, 0, 13, 0),
child: Container(
width: 124,
height: 68,
decoration: BoxDecoration(
color: Color(0xFFD1F1C1),
boxShadow: [
BoxShadow(
blurRadius: 4,
color: Color(0x17000000),
offset: Offset(
0,
2,
),
)
],
borderRadius: BorderRadius.only(
bottomLeft: Radius.circular(12),
bottomRight: Radius.circular(12),
topLeft: Radius.circular(12),
topRight: Radius.circular(12),
),
),
child: Column(
mainAxisSize: MainAxisSize.max,
children: [
Padding(
padding:
EdgeInsetsDirectional.fromSTEB(
0, 5, 0, 0),
child: Text(
‘予算’,
textAlign: TextAlign.center,
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
font:
GoogleFonts.notoSansJp(
fontWeight:
FontWeight.bold,
fontStyle:
FlutterFlowTheme.of(
context)
.bodyMedium
.fontStyle,
),
color: Color(0xFF353F35),
fontSize: 15,
letterSpacing: 0.0,
fontWeight: FontWeight.bold,
fontStyle:
FlutterFlowTheme.of(
context)
.bodyMedium
.fontStyle,
),
),
),
Padding(
padding:
EdgeInsetsDirectional.fromSTEB(
0, 8, 0, 0),
child: Text(
valueOrDefault(
widget!.budget,
‘0’,
),
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
font:
GoogleFonts.notoSansJp(
fontWeight:
FontWeight.bold,
fontStyle:
FlutterFlowTheme.of(
context)
.bodyMedium
.fontStyle,
),
fontSize: 16,
letterSpacing: 0.0,
fontWeight: FontWeight.bold,
fontStyle:
FlutterFlowTheme.of(
context)
.bodyMedium
.fontStyle,
),
),
),
],
),
),
),
Container(
width: 124,
height: 68,
decoration: BoxDecoration(
color: Color(0xFFEFD7BB),
boxShadow: [
BoxShadow(
blurRadius: 4,
color: Color(0x1A000000),
offset: Offset(
0,
2,
),
)
],
borderRadius: BorderRadius.only(
bottomLeft: Radius.circular(12),
bottomRight: Radius.circular(12),
topLeft: Radius.circular(12),
topRight: Radius.circular(12),
),
),
child: Column(
mainAxisSize: MainAxisSize.max,
children: [
Padding(
padding:
EdgeInsetsDirectional.fromSTEB(
0, 5, 0, 0),
child: Text(
‘残高’,
textAlign: TextAlign.center,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
font: GoogleFonts.notoSansJp(
fontWeight: FontWeight.bold,
fontStyle:
FlutterFlowTheme.of(
context)
.bodyMedium
.fontStyle,
),
color: Color(0xFF353F35),
fontSize: 15,
letterSpacing: 0.0,
fontWeight: FontWeight.bold,
fontStyle:
FlutterFlowTheme.of(
context)
.bodyMedium
.fontStyle,
),
),
),
Padding(
padding:
EdgeInsetsDirectional.fromSTEB(
0, 8, 0, 0),
child: Text(
valueOrDefault(
widget!.balance,
‘0’,
),
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
font: GoogleFonts.notoSansJp(
fontWeight: FontWeight.bold,
fontStyle:
FlutterFlowTheme.of(
context)
.bodyMedium
.fontStyle,
),
fontSize: 16,
letterSpacing: 0.0,
fontWeight: FontWeight.bold,
fontStyle:
FlutterFlowTheme.of(
context)
.bodyMedium
.fontStyle,
),
),
),
],
),
),
],
),
),
),
Padding(
padding:
EdgeInsetsDirectional.fromSTEB(0, 25, 0, 5),
child: Text(
‘思い出の記録場’,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
font: GoogleFonts.notoSansJp(
fontWeight: FontWeight.w600,
fontStyle: FlutterFlowTheme.of(context)
.bodyMedium
.fontStyle,
),
color: Color(0xFF353F35),
letterSpacing: 0.0,
fontWeight: FontWeight.w600,
fontStyle: FlutterFlowTheme.of(context)
.bodyMedium
.fontStyle,
),
),
),
Container(
width: 289,
height: 80,
decoration: BoxDecoration(
color: FlutterFlowTheme.of(context)
.secondaryBackground,
borderRadius: BorderRadius.only(
bottomLeft: Radius.circular(12),
bottomRight: Radius.circular(12),
topLeft: Radius.circular(12),
topRight: Radius.circular(12),
),
),
),
],
),
Align(
alignment: AlignmentDirectional(-0.82, -0.14),
child: ClipRRect(
borderRadius: BorderRadius.circular(8),
child: Image.asset(
‘assets/images/tabiapuri-pl.png’,
width: 57,
height: 86,
fit: BoxFit.cover,
),
),
),
Align(
alignment: AlignmentDirectional(0.81, -0.85),
child: ClipRRect(
borderRadius: BorderRadius.circular(8),
child: Image.asset(
‘assets/images/tabiapuri-r2.png’,
width: 80,
height: 92,
fit: BoxFit.cover,
),
),
),
],
),
),
],
),
),
),
),
);
}
}

コメント

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です