Skip to content

Commit

Permalink
more page updated (#20)
Browse files Browse the repository at this point in the history
Co-authored-by: Awadhoot <awadhootk6@gmail.com>
  • Loading branch information
RohanDoshi21 and AwadhootK committed Mar 7, 2023
1 parent faa9b90 commit 06d4abc
Show file tree
Hide file tree
Showing 7 changed files with 399 additions and 242 deletions.
1 change: 1 addition & 0 deletions assets/images/space_man.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions assets/images/space_man2.json

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions lib/constants/images.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@ class AppImages {
static const ufo3 = 'assets/images/ufo3.json';
static const person = 'assets/images/person.jpg';
static const rocketButton = 'assets/images/rocket_button.json';
static const spaceman = 'assets/images/space_man.json';
static const spaceman2 = 'assets/images/space_man2.json';
}
6 changes: 4 additions & 2 deletions lib/features/home_page/ui/wigets/event_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ class EventCard extends StatelessWidget {
Transform.translate(
offset: Offset(0, MediaQuery.of(context).size.width / 10),
child: Container(
margin: EdgeInsets.only(bottom: MediaQuery.of(context).size.width / 8),
margin: EdgeInsets.only(
bottom: MediaQuery.of(context).size.width / 8),
decoration: BoxDecoration(
gradient: LinearGradient(
begin: Alignment.topLeft,
Expand Down Expand Up @@ -77,7 +78,8 @@ class EventCard extends StatelessWidget {
alignment: Alignment.bottomRight,
child: Transform.rotate(
angle: pi / 2,
child: Lottie.asset(AppImages.rocketButton, height: 50, width: 50),
child: Lottie.asset(AppImages.rocketButton,
height: 50, width: 50),
),
)
],
Expand Down
52 changes: 30 additions & 22 deletions lib/pages/more_page/ui/childWid.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,35 +3,43 @@ import 'package:flutter/material.dart';
class FrostedTile extends StatelessWidget {
IconData tileicon;
final tilename;
FrostedTile({required this.tilename, required this.tileicon});
Function? launchURL;
FrostedTile({required this.tilename, required this.tileicon, this.launchURL});

@override
Widget build(BuildContext context) {
var height = MediaQuery.of(context).size.height;
return Row(
children: [
Padding(
padding: EdgeInsets.only(left: height / 70),
child: CircleAvatar(
backgroundColor: Colors.white.withOpacity(0.7),
foregroundColor: Colors.black,
child: Icon(tileicon),
return GestureDetector(
onTap: launchURL != null
? () async {
await launchURL!(Uri.parse('https://pict.acm.org/pulzion19/'));
}
: null,
child: Row(
children: [
Padding(
padding: EdgeInsets.only(left: height / 70),
child: CircleAvatar(
backgroundColor: Colors.white.withOpacity(0.7),
foregroundColor: Colors.black,
child: Icon(tileicon),
),
),
const SizedBox(
width: 30,
),
),
const SizedBox(
width: 30,
),
Container(
child: Text(
tilename,
style: TextStyle(
fontSize: height / 43,
color: Colors.white70,
fontWeight: FontWeight.bold,
Container(
child: Text(
tilename,
style: TextStyle(
fontSize: height / 43,
color: Colors.white70,
fontWeight: FontWeight.bold,
),
),
),
),
],
],
),
);
}
}
Loading

0 comments on commit 06d4abc

Please sign in to comment.