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

Update ScreensShots.md #246

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
97 changes: 82 additions & 15 deletions ScreensShots.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,82 @@
<h1 align=center> Flutter UI Components (Screen Shots) </h1>
<h3 align=center> Amazing UI Components for you to choose from. 📜 </h3>
<br>
<table>
<tr>
<td>Splash Screen</td>
<td>Avatar</td>
<td>Buttons</td>
</tr>
<tr>
<td><img src="assets/Screenshots/splash screen.jpg" width=400 height=700></td>
<td><img src="assets/Screenshots/avatar.jpg" width=400 height=700></td>
<td><img src="assets/Screenshots/buttons.jpg" width=400 height=700></td>
</tr>
</table>
import 'package:flutter/material.dart';

void main() {
runApp(MyApp());
}

class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: Text('Flutter UI Components'),
),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(
'Amazing UI Components for you to choose from. 📜',
style: TextStyle(fontSize: 18),
textAlign: TextAlign.center,
),
SizedBox(height: 20),
Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
ComponentCard(
title: 'Splash Screen',
imagePath: 'assets/Screenshots/splash_screen.jpg',
),
ComponentCard(
title: 'Avatar',
imagePath: 'assets/Screenshots/avatar.jpg',
),
ComponentCard(
title: 'Buttons',
imagePath: 'assets/Screenshots/buttons.jpg',
),
],
),
],
),
),
),
);
}
}

class ComponentCard extends StatelessWidget {
final String title;
final String imagePath;

const ComponentCard({
required this.title,
required this.imagePath,
});

@override
Widget build(BuildContext context) {
return Card(
elevation: 4,
child: Column(
children: [
Image.asset(
imagePath,
width: 400,
height: 700,
fit: BoxFit.cover,
),
Padding(
padding: const EdgeInsets.all(8.0),
child: Text(
title,
style: TextStyle(fontSize: 16, fontWeight: FontWeight.bold),
),
),
],
),
);
}
}