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
1 parent
9cb55fa
commit 8e74560
Showing
7 changed files
with
256 additions
and
243 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
27 changes: 27 additions & 0 deletions
27
zoom_desktop_flutter/lib/src/ui/home/widgets/bottom_video_clipper.dart
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,27 @@ | ||
import 'package:flutter/material.dart'; | ||
|
||
class BottomVideoClipper extends CustomClipper<Path> { | ||
@override | ||
Path getClip(Size size) { | ||
var path = Path(); | ||
|
||
path.lineTo(0.0, size.height); | ||
|
||
path.lineTo(size.width, size.height); | ||
|
||
path.lineTo(size.width, 0); | ||
|
||
path.lineTo(size.width / 2 + 100, 0); | ||
|
||
path.quadraticBezierTo( | ||
size.width / 2, size.height - 20, size.width / 2 - 100, 0); | ||
|
||
path.close(); | ||
return path; | ||
} | ||
|
||
@override | ||
bool shouldReclip(CustomClipper<Path> oldClipper) => false; | ||
} | ||
|
||
|
41 changes: 41 additions & 0 deletions
41
zoom_desktop_flutter/lib/src/ui/home/widgets/menu_dark_tile.dart
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,41 @@ | ||
import 'package:flutter/material.dart'; | ||
|
||
class MenuDarkTile extends StatelessWidget { | ||
const MenuDarkTile({this.active, this.icon, this.title, this.onTap}); | ||
final bool active; | ||
final IconData icon; | ||
final String title; | ||
final Function onTap; | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return GestureDetector( | ||
onTap: onTap, | ||
child: Container( | ||
margin: EdgeInsets.symmetric(vertical: 5, horizontal: 25), | ||
padding: EdgeInsets.only(top: 12, bottom: 12, left: 25), | ||
decoration: BoxDecoration( | ||
color: active ? Color(0xFF0F1736) : Colors.transparent, | ||
borderRadius: BorderRadius.circular(10)), | ||
child: Row( | ||
mainAxisAlignment: MainAxisAlignment.start, | ||
children: [ | ||
Icon( | ||
icon, | ||
color: active ? Color(0xFF37D2F8) : Colors.white24, | ||
size: 18, | ||
), | ||
SizedBox( | ||
width: 10, | ||
), | ||
Text( | ||
title ?? "", | ||
style: TextStyle( | ||
color: active ? Colors.white : Colors.white24, fontSize: 12), | ||
) | ||
], | ||
), | ||
), | ||
); | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
zoom_desktop_flutter/lib/src/ui/home/widgets/notification_top_menu.dart
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,32 @@ | ||
import 'package:flutter/material.dart'; | ||
|
||
class NotificationTopMenu extends StatelessWidget { | ||
final String title; | ||
final Color color; | ||
final IconData icon; | ||
|
||
const NotificationTopMenu({this.title, this.color, this.icon}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Container( | ||
margin: EdgeInsets.only(right: 40), | ||
child: Row( | ||
children: [ | ||
Icon( | ||
icon, | ||
color: color, | ||
size: 16, | ||
), | ||
SizedBox( | ||
width: 5, | ||
), | ||
Text( | ||
title ?? "", | ||
style: TextStyle(color: color, fontSize: 12), | ||
) | ||
], | ||
), | ||
); | ||
} | ||
} |
Oops, something went wrong.