added simple profile
This commit is contained in:
BIN
assets/profile.jpg
Executable file
BIN
assets/profile.jpg
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 196 KiB |
@@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
|
|||||||
import 'package:resume/services/breakpoints.dart';
|
import 'package:resume/services/breakpoints.dart';
|
||||||
import 'package:resume/services/content_provider.dart';
|
import 'package:resume/services/content_provider.dart';
|
||||||
import 'package:resume/widgets/content_widget.dart';
|
import 'package:resume/widgets/content_widget.dart';
|
||||||
|
import 'package:resume/widgets/profile.dart';
|
||||||
|
|
||||||
class LandingPage extends StatefulWidget {
|
class LandingPage extends StatefulWidget {
|
||||||
const LandingPage({super.key});
|
const LandingPage({super.key});
|
||||||
@@ -60,6 +61,18 @@ class _LandingPageState extends State<LandingPage> {
|
|||||||
: SingleChildScrollView(
|
: SingleChildScrollView(
|
||||||
child: Stack(
|
child: Stack(
|
||||||
children: [
|
children: [
|
||||||
|
Align(
|
||||||
|
alignment: Alignment.topLeft,
|
||||||
|
child: SizedBox(
|
||||||
|
width: (MediaQuery.of(context).size.width -
|
||||||
|
_getPageWidth()) /
|
||||||
|
2,
|
||||||
|
child: const Padding(
|
||||||
|
padding: EdgeInsets.symmetric(horizontal: 50),
|
||||||
|
child: Profile(),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
Align(
|
Align(
|
||||||
alignment: Alignment.topRight,
|
alignment: Alignment.topRight,
|
||||||
child: SizedBox(
|
child: SizedBox(
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ class ContentBox extends StatelessWidget {
|
|||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Card(
|
return Card(
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: EdgeInsets.all(20),
|
padding: const EdgeInsets.all(20),
|
||||||
child: Column(
|
child: Column(
|
||||||
mainAxisSize: MainAxisSize.max,
|
mainAxisSize: MainAxisSize.max,
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
|||||||
40
lib/widgets/profile.dart
Normal file
40
lib/widgets/profile.dart
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
|
class Profile extends StatelessWidget {
|
||||||
|
const Profile({super.key});
|
||||||
|
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
return Card(
|
||||||
|
child: Padding(
|
||||||
|
padding: const EdgeInsets.all(20),
|
||||||
|
child: Column(
|
||||||
|
children: [
|
||||||
|
Container(
|
||||||
|
constraints: const BoxConstraints(maxWidth: 200),
|
||||||
|
child: ClipRRect(
|
||||||
|
borderRadius: BorderRadius.circular(180),
|
||||||
|
child: Image.asset('assets/profile.jpg'),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
const Padding(padding: EdgeInsets.symmetric(vertical: 5)),
|
||||||
|
Text(
|
||||||
|
'Marco Skupin',
|
||||||
|
style: Theme.of(context).textTheme.displayMedium,
|
||||||
|
),
|
||||||
|
const Padding(padding: EdgeInsets.symmetric(vertical: 5)),
|
||||||
|
Text(
|
||||||
|
'Master of Science',
|
||||||
|
style: Theme.of(context).textTheme.titleLarge,
|
||||||
|
),
|
||||||
|
const Padding(padding: EdgeInsets.symmetric(vertical: 5)),
|
||||||
|
Text(
|
||||||
|
'marco@skup.in',
|
||||||
|
style: Theme.of(context).textTheme.bodyLarge,
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -22,4 +22,5 @@ flutter:
|
|||||||
uses-material-design: true
|
uses-material-design: true
|
||||||
|
|
||||||
assets:
|
assets:
|
||||||
- assets/content.json
|
- assets/content.json
|
||||||
|
- assets/profile.jpg
|
||||||
Reference in New Issue
Block a user