Skip to content

Commit

Permalink
udpate the build file
Browse files Browse the repository at this point in the history
  • Loading branch information
girish54321 committed Jul 18, 2021
1 parent c8f37d0 commit 8a0a753
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 29 deletions.
Binary file modified MacApp.zip
Binary file not shown.
74 changes: 45 additions & 29 deletions lib/screens/mainHomeScreen/desktop/mainHomeDesktopView.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import 'package:chitrwallpaperapp/modal/deskTopDrawerModal.dart';
import 'package:chitrwallpaperapp/widget/appAboutDialog.dart';
import 'package:chitrwallpaperapp/widget/chitrGradientText.dart';
import 'package:flutter/material.dart';
import 'package:glass_kit/glass_kit.dart';
import '../../searchedImagePage.dart';

class MainHomeDesktopView extends StatelessWidget {
Expand All @@ -19,38 +20,53 @@ class MainHomeDesktopView extends StatelessWidget {
@override
Widget build(BuildContext context) {
var scaffoldKey = GlobalKey<ScaffoldState>();

return Scaffold(
key: scaffoldKey,
drawer: Drawer(
child: ListView(
padding: EdgeInsets.zero,
children: <Widget>[
DrawerHeader(
child: ChitrGradientText(),
decoration: BoxDecoration(
color: Theme.of(context).accentColor,
),
drawer: Theme(
data: Theme.of(context).copyWith(
canvasColor: Colors.transparent,
),
child: Drawer(
child: GlassContainer.clearGlass(
borderWidth: 0.0,
elevation: 0,
height: double.infinity,
width: 300,
child: ListView(
padding: EdgeInsets.zero,
children: <Widget>[
DrawerHeader(child: ChitrGradientText()),
...desktopTabs
.asMap()
.map((int i, DesktopDrawer element) => MapEntry(
i,
ListTile(
leading: Icon(
element.icon,
color: Colors.white,
),
title: Text(
element.title.toUpperCase(),
style: TextStyle(
color: Colors.white,
),
),
onTap: () {
if (i == 4) {
AppAboutDialog().showAppAboutDialog(context);
} else {
//scaffoldKey.currentState.openDrawer(),
onTap(i, context);
scaffoldKey.currentState.openEndDrawer();
}
},
)))
.values
.toList()
],
),
...desktopTabs
.asMap()
.map((int i, DesktopDrawer element) => MapEntry(
i,
ListTile(
leading: Icon(element.icon),
title: Text(element.title.toUpperCase()),
onTap: () {
if (i == 4) {
AppAboutDialog().showAppAboutDialog(context);
} else {
//scaffoldKey.currentState.openDrawer(),
onTap(i, context);
scaffoldKey.currentState.openEndDrawer();
}
},
)))
.values
.toList()
],
),
),
),
appBar: AppBar(
Expand Down
7 changes: 7 additions & 0 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "7.1.8"
glass_kit:
dependency: "direct main"
description:
name: glass_kit
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.1"
gradient_text:
dependency: "direct main"
description:
Expand Down
2 changes: 2 additions & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ dependencies:
path_provider: ^2.0.2
path_provider_macos: ^2.0.0
flowder: ^0.2.0
glass_kit: ^2.0.1


flutter_native_splash:
color: "#ffffff"
Expand Down

0 comments on commit 8a0a753

Please sign in to comment.