Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

more page updated #20

Merged
merged 1 commit into from
Mar 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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