Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Shubhangi Mishra committed Sep 9, 2022
1 parent bccc779 commit 963e119
Show file tree
Hide file tree
Showing 23 changed files with 1,820 additions and 147 deletions.
18 changes: 18 additions & 0 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.cookie_code">
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES"/>
<!-- Provide required visibility configuration for API level 30 and above -->
<queries>
<!-- If your app checks for SMS support -->
<intent>
<action android:name="android.intent.action.VIEW" />
<data android:scheme="sms" />
</intent>
<!-- If your app checks for call support -->
<intent>
<action android:name="android.intent.action.VIEW" />
<data android:scheme="tel" />
</intent>
</queries>
<application
android:label="cookie_code"
android:name="${applicationName}"
Expand Down
Binary file added images/bg6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/bg7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/bg8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/bg9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/mypic.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/palludii.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
105 changes: 105 additions & 0 deletions lib/Utils/cartScreen.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
import 'package:cookie_code/Utils/userDetails.dart';
import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart';

class CartScreen extends StatefulWidget{
const CartScreen({super.key});

@override
State<CartScreen> createState() => _CartScreenState();
}

class _CartScreenState extends State<CartScreen>{
@override
Widget build(BuildContext context) {
return SafeArea(child: Scaffold(
body: Container(
height: double.infinity,
width: double.infinity,
decoration: const BoxDecoration(
image: DecorationImage(
image: AssetImage("images/bg7.png"),
fit: BoxFit.cover),
),
child: SingleChildScrollView(
child: Padding(
padding: const EdgeInsets.all(20.0),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: MainAxisAlignment.start,
mainAxisSize: MainAxisSize.min,
children: [
Padding(
padding: EdgeInsets.only(left: 10, top: 10),
child: Align(
alignment: Alignment.topLeft,
child: GestureDetector(
child: Icon(
Icons.arrow_back,
size: 30,
),
onTap: () {
Navigator.pop(context);
},
)),
),
Center(child: Text('Your draft for the letter', style: GoogleFonts.combo(fontSize: 30, fontWeight: FontWeight.bold, decoration: TextDecoration.underline, color: Color(0xff229954)), textAlign: TextAlign.center)),
SizedBox(
height: 40,
),
Text('To', style: GoogleFonts.secularOne(fontSize: 20,)),
SizedBox(height: 10),
Text('Relation', style: GoogleFonts.rochester(fontSize: 20),),
SizedBox(height: 20),
Text('Ocassion', style: GoogleFonts.secularOne(fontSize: 20),),
SizedBox(height: 10),
Text('ocassion', style: GoogleFonts.rochester(fontSize: 20),),
SizedBox(height: 20),
Text('Your message', style: GoogleFonts.secularOne(fontSize: 20),),
SizedBox(height: 10),
Text('message......', style: GoogleFonts.rochester(fontSize: 20),),
SizedBox(height: 30),

Center(
child: SizedBox(
width: 300,
height: 60,
child: ElevatedButton(
onPressed: () {
Navigator.of(context).push(
MaterialPageRoute(
builder: (context) => UserDetails(),
),
);
},
child: Text('Continue',
style: GoogleFonts.niconne(
fontSize: 40,
color: Colors.white,
//fontWeight: FontWeight.bold
),
),
style: ButtonStyle(
shape: MaterialStateProperty.all<RoundedRectangleBorder>(
RoundedRectangleBorder(
borderRadius: BorderRadius.circular(28.0),
side: BorderSide(color: Color(0xff751455))
)
),
backgroundColor:
MaterialStateProperty.all<Color>(
Color(0xff229954)),
)
),

),
)
],
),
),
),
)
));
}
}

250 changes: 250 additions & 0 deletions lib/Utils/cataloguePage1.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,250 @@
import 'package:cookie_code/Utils/writeMessage.dart';
import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart';

class CataloguePage1 extends StatefulWidget {
const CataloguePage1({super.key});

@override
State<CataloguePage1> createState() => _CataloguePage1State();
}

class _CataloguePage1State extends State<CataloguePage1> {
final relation = [
'mother',
'father',
'friend',
'brother',
'sister',
'uncle',
'Aunt',
'teacher',
'student'
'other'
];
String dropdownvalue1 = 'friend';
final occasion = [
'birthday',
'anniversay',
'diwali',
'holi',
'rakshabandhan',
'proposal',
'mothers\' day',
'fathers\' day' 'friendshipday',
'chrismas',
'other'
];
final color =[
'bubble pink',
'the blue hue',
'the sheer cheer',
'splash of green',
'elegant white'
];
String dropdownvalue3 = 'elegant white';
String dropdownvalue2 = 'birthday';
@override
Widget build(BuildContext context) {
return Scaffold(
body: Container(
height: double.infinity,
width: double.infinity,
decoration: const BoxDecoration(
image: DecorationImage(
image: AssetImage("images/bg8.png"),
fit: BoxFit.cover),
),
child: Column(
mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Padding(
padding: EdgeInsets.only(left: 20, top: 20),
child: Align(
alignment: Alignment.topLeft,
child: GestureDetector(
child: Icon(
Icons.arrow_back,
size: 30,
),
onTap: () {
Navigator.pop(context);
},
)),
),
Container(
margin: EdgeInsets.only(top: 20,left: 40),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [Text(
'I want to write this letter to',
style: GoogleFonts.aladin(
fontSize: 30,
color: Color(0xff82053b)
),
),
SizedBox(
height: 20,
),
DropdownButton(
style: TextStyle(fontSize: 20, color: Colors.black),
hint: SizedBox(
width: 250,
child: Text(
'Relation',
style: TextStyle(fontSize: 20),
)),
value: dropdownvalue1,
// Down Arrow Icon
icon: const Icon(Icons.keyboard_arrow_down),
items: relation.map((String items) {
return DropdownMenuItem(
value: items,
child: Text(items),
);
}).toList(),
// After selecting the desired option,it will
// change button value to selected value
onChanged: (String? newValue) {
setState(() {
dropdownvalue1 = newValue!;
});
}),
SizedBox(
height: 30,
),
Text(
'On the occasion',
style: GoogleFonts.aladin(
fontSize: 30,
color: Color(0xff82053b)
),
),
DropdownButton(
style: TextStyle(fontSize: 20, color: Colors.black),
hint: Text(
'Occasion',
style: TextStyle(fontSize: 20),
),
value: dropdownvalue2,
// Down Arrow Icon
icon: const Icon(Icons.keyboard_arrow_down),
items: occasion.map((String items) {
return DropdownMenuItem(
value: items,
child: Text(items),
);
}).toList(),
// After selecting the desired option,it will
// change button value to selected value
onChanged: (String? newValue) {
setState(() {
dropdownvalue2 = newValue!;
});
}),
SizedBox(
height: 30,
),
Text(
'Choose the color',
style: GoogleFonts.aladin(fontSize: 30,
color: Color(0xff82053b)),
),
DropdownButton(
style: TextStyle(fontSize: 20, color: Colors.black),
hint: Text(
'color',
style: TextStyle(fontSize: 20),
),
value: dropdownvalue3,
// Down Arrow Icon
icon: const Icon(Icons.keyboard_arrow_down),
items: color.map((String items) {
return DropdownMenuItem(
value: items,
child: Text(items),
);
}).toList(),
// After selecting the desired option,it will
// change button value to selected value
onChanged: (String? newValue) {
setState(() {
dropdownvalue3 = newValue!;
});
}),
SizedBox(
height: 5,
),

]),
),
SingleChildScrollView(
scrollDirection: Axis.horizontal,
child: Row(
children: [
Image.asset('images/bubble_pink.png', height: 200,),
Image.asset('images/the_blue_hue.png', height: 200,),
Image.asset('images/the_sheer_cheer.png', height: 200,),
Image.asset('images/splash_of_green.png', height: 200,),
Image.asset('images/elegant_white.png', height: 200,),
],
)
),
SizedBox(
height: 5,
),
Padding(
padding: EdgeInsets.only(left:30),
child: Text('Scroll to see all the colors -->',

style: TextStyle(
fontStyle: FontStyle.italic,
fontWeight: FontWeight.bold,
color: Color(0xff82053b)
),
),
),
SizedBox(
height: 30,
),
Center(
child: SizedBox(
width: 300,
height: 60,
child: ElevatedButton(
onPressed: () {
Navigator.of(context).push(
MaterialPageRoute(
builder: (context) => WriteMessage(),
),
);
},
child: Text('Next',
style: GoogleFonts.niconne(
fontSize: 40,
color: Color(0xff82053b)
//fontWeight: FontWeight.bold
),
),
style: ButtonStyle(
shape: MaterialStateProperty.all<RoundedRectangleBorder>(
RoundedRectangleBorder(
borderRadius: BorderRadius.circular(28.0),
side: BorderSide(color: Color(0xff82053b))
)
),
backgroundColor:
MaterialStateProperty.all<Color>(
Colors.white12),
)
),

),
)
],
),
),
);
}
}
Loading

0 comments on commit 963e119

Please sign in to comment.