Skip to content

Commit

Permalink
add search in material page
Browse files Browse the repository at this point in the history
  • Loading branch information
lkrjangid1 committed Jun 13, 2021
1 parent 5080662 commit 4c8bb3c
Show file tree
Hide file tree
Showing 18 changed files with 1,135 additions and 767 deletions.
2 changes: 1 addition & 1 deletion lib/Widgets/AlertDialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ showAlertofError(BuildContext context, String errors,) {
showAlertDialog(BuildContext context) {
// set up the AlertDialog
AlertDialog alert = AlertDialog(
title: Text("⚠ Worning"),
title: Text("⚠ Warning"),
content: Text("Please fill all the details"),
);

Expand Down
63 changes: 35 additions & 28 deletions lib/Widgets/MaterialListTileFirstAndMath.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,38 +24,45 @@ class MtTile extends StatelessWidget {
color: kFirstColour,
),
),
child: HStack([
Container(
width: 130,
child: VStack([
5.heightBox,
name.text.color(kFirstColour).bold.center.make(),
5.heightBox,
]),
),
10.widthBox,
VStack([
5.heightBox,
VxCapsule(
height: 20,
width: 103,
backgroundColor: Colors.lightBlue,
child: subject.text.white.center.makeCentered().p(1))
.p(2),
VxCapsule(
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children:[
Row(
children: [
RotatedBox(
quarterTurns: -1,
child: VxCapsule(
height: 20,
width: 103,
width: context.percentHeight * 15,
backgroundColor: Colors.greenAccent,
child: type.text.white.center.makeCentered().p(1))
.p(2),
),
10.widthBox,
VStack([
Container(
width: context.percentWidth * 60,
child: VStack([
5.heightBox,
name.text.color(kFirstColour).xl2.bold.make(),
5.heightBox,
]),
),
5.heightBox,
subject.text.gray500.center.makeCentered().p(1)
]),
],
),
RotatedBox(
quarterTurns: 1,
child: VxCapsule(
height: 20,
width: context.percentHeight * 15,
backgroundColor: Colors.deepPurple,
child: Center(child: sem.text.white.center.xs.makeCentered().p(1),))
.p(2),
VxCapsule(
height: 20,
width: 103,
backgroundColor: Colors.deepPurple,
child: sem.text.white.center.makeCentered().p(1))
.p(2),
]).scrollVertical(physics: AlwaysScrollableScrollPhysics()),
]).centered(),
)
]),
).cornerRadius(10));
}
}
85 changes: 47 additions & 38 deletions lib/Widgets/mtListTileSecondTofinal.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,46 +29,55 @@ class MtTileSecondToFinalListTile extends StatelessWidget {
color: kFirstColour,
),
),
child: HStack([
Container(
width: 130,
child: VStack([
5.heightBox,
name.text.color(kFirstColour).bold.center.makeCentered(),
5.heightBox,
]),
).p(10),
10.widthBox,
VStack([
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children:[
Row(
children: [
RotatedBox(
quarterTurns: -1,
child: VxCapsule(
height: 20,
width: context.percentHeight * 15,
backgroundColor: Colors.greenAccent,
child: type.text.white.center.makeCentered().p(1))
.p(2),
),
10.widthBox,
VStack([
Container(
width: context.percentWidth * 60,
child: VStack([
5.heightBox,
name.text.color(kFirstColour).bold.xl2.make(),
5.heightBox,
]),
),
5.heightBox,
HStack([
VxCapsule(
height: 20,
width: 50,
backgroundColor: Colors.deepPurple,
child: sem.text.white.center.makeCentered().p(1))
.p(2),
VxCapsule(
height: 20,
width: 50,
backgroundColor: Colors.purple,
child: branch.text.white.center.makeCentered().p(1))
.p(2),
]),
VxCapsule(
subject.text.gray500.center.makeCentered().p(1)
]),
],
),
RotatedBox(
quarterTurns: 1,
child: VxCapsule(
height: 20,
width: 103,
backgroundColor: Colors.lightBlue,
child: subject.text.white.center.makeCentered().p(1))
.p(2),
VxCapsule(
height: 20,
width: 103,
backgroundColor: Colors.greenAccent,
child: type.text.white.center.makeCentered().p(1))
.p(2),
]).scrollVertical(physics: AlwaysScrollableScrollPhysics()),
]).centered(),
width: context.percentHeight * 15,
backgroundColor: Colors.deepPurple,
child: Center(child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 10),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
sem.toUpperCase().text.white.center.makeCentered().p(1),
Container(color: Colors.white,height: 20,width: 2,),
branch.text.white.center.makeCentered().p(1)
],
),
),))
.p(2),
)
]),
).cornerRadius(10));
}
}
17 changes: 10 additions & 7 deletions lib/Widgets/progressBar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,15 @@ class ProgressBarCus extends StatelessWidget {

@override
Widget build(BuildContext context) {
return Center(
child: Column(
children: [
CircularProgressIndicator(),
Text('Loading...'),
],
));
return Padding(
padding: const EdgeInsets.all(20.0),
child: Center(
child: Column(
children: [
CircularProgressIndicator(),
Text('Loading...'),
],
)),
);
}
}
19 changes: 10 additions & 9 deletions lib/Widgets/semTextlistTile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,21 @@ class SemText extends StatelessWidget {
color: kFirstColour,
),
),
child: HStack([
VStack([
Image.network(imgurl,
height: 40,
width: 40,
).centered(),
]).centered(),
child: Row(
mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.center,
children:[
Image.network(imgurl,
height: 40,
width: 40,
).centered(),
10.widthBox,
VStack([
title.text.color(kFirstColour).bold.center.makeCentered(),
5.heightBox,
desc.text.color(kFirstColour).center.makeCentered(),
]).centered(),
]).scrollHorizontal(physics: AlwaysScrollableScrollPhysics()).p(20).centered(),
]),
]).scrollHorizontal(physics: AlwaysScrollableScrollPhysics()).p(20),
).cornerRadius(10),
));
}
Expand Down
1 change: 1 addition & 0 deletions lib/branchesandsems.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const List<String> branches = [
'select branch',
'CE',
'CH',
'MI',
'EE',
'CSE',
Expand Down
Loading

0 comments on commit 4c8bb3c

Please sign in to comment.