-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
MOKTADIR
authored and
MOKTADIR
committed
Mar 19, 2023
1 parent
f6dc53a
commit ef95295
Showing
6 changed files
with
92 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:flutter_screenutil/flutter_screenutil.dart'; | ||
import 'package:get/get.dart'; | ||
|
||
import '../controllers/home_controller.dart'; | ||
|
||
class PostDetailView extends GetView<HomeController> { | ||
const PostDetailView({Key? key}) : super(key: key); | ||
@override | ||
Widget build(BuildContext context) { | ||
var theme = Theme.of(context); | ||
return Scaffold( | ||
appBar: AppBar( | ||
title: const Text('Post Detail'), | ||
centerTitle: true, | ||
), | ||
body: Padding( | ||
padding: const EdgeInsets.all(18.0), | ||
child: Column( | ||
crossAxisAlignment: CrossAxisAlignment.start, | ||
mainAxisAlignment: MainAxisAlignment.start, | ||
children: [ | ||
Text( | ||
controller.title, | ||
style: theme.textTheme.headlineSmall, | ||
), | ||
SizedBox(height: 40.h), | ||
Text( | ||
controller.body, | ||
style: theme.textTheme.bodyLarge, | ||
), | ||
], | ||
), | ||
), | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters