Skip to content

Commit

Permalink
responsive
Browse files Browse the repository at this point in the history
  • Loading branch information
AthulNoobie committed Oct 31, 2024
1 parent 8545132 commit 00a0837
Show file tree
Hide file tree
Showing 11 changed files with 366 additions and 209 deletions.
2 changes: 1 addition & 1 deletion lib/app_bar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class _AppbarState extends State<Appbar> {
Widget build(BuildContext context) {
screenWidth = MediaQuery.of(context).size.width;
screenHeight = MediaQuery.of(context).size.height;
bool isNarrowScreen = screenWidth < 900 ? true : false;
bool isNarrowScreen = screenWidth < 965 ? true : false;
return screenWidth > 850
? AppBar(
flexibleSpace: Row(
Expand Down
551 changes: 360 additions & 191 deletions lib/desktop_body.dart

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class _BaseState extends State<Base> {
child: Scaffold(
appBar: PreferredSize(
preferredSize: Size.fromHeight(screenWidth > 850
? screenHeight * 0.07
? screenHeight * 0.055
: screenHeight * 0.15),
child: Appbar(filter: updateColorFilter)),
body: screenWidth > 850 ? const AppBody() : const MobileBody()),
Expand Down
2 changes: 1 addition & 1 deletion lib/mobile_body.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class _MobileBodyState extends State<MobileBody> {
const Expanded(child: SizedBox()),
IconButton(
onPressed: () {},
icon: Icon(FontAwesomeIcons.bars, color: Colors.grey[600]))
icon: Icon(FontAwesomeIcons.bars, color: Colors.grey[600]),)
],
),
),
Expand Down
Binary file added web/favicon.ico
Binary file not shown.
Binary file removed web/favicon.png
Binary file not shown.
Binary file removed web/icons/Icon-192.png
Binary file not shown.
Binary file removed web/icons/Icon-512.png
Binary file not shown.
Binary file removed web/icons/Icon-maskable-192.png
Binary file not shown.
Binary file removed web/icons/Icon-maskable-512.png
Binary file not shown.
18 changes: 3 additions & 15 deletions web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,35 +4,23 @@
<script type="text/javascript">

</script>
<!--
If you are serving your web app in a path other than the root, change the
href value below to reflect the base path you are serving from.

The path provided below has to start and end with a slash "/" in order for
it to work correctly.
For more details:
* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base
This is a placeholder for base href that will be replaced by the value of
the `--base-href` argument provided to `flutter build`.
-->
<base href="$FLUTTER_BASE_HREF">

<meta charset="UTF-8">
<meta content="IE=Edge" http-equiv="X-UA-Compatible">
<meta name="description" content="A new Flutter project.">

<!-- iOS meta tags & icons -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-title" content="ktu_results">
<link rel="apple-touch-icon" href="icons/Icon-192.png">

<!-- Favicon -->
<link rel="icon" type="image/png" href="favicon.png"/>
<link rel="icon" type="image/ico" href="favicon.ico"/>

<title>ktu_results</title>
<title>APJ Abdul Kalam Technological University</title>
<link rel="manifest" href="manifest.json">
</head>
<body>
Expand Down

0 comments on commit 00a0837

Please sign in to comment.