forked from flutter/photobooth
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use composited image in share modal (flutter#566)
- Loading branch information
Showing
16 changed files
with
89 additions
and
200 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
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
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
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,36 @@ | ||
import 'dart:math' as math; | ||
import 'dart:typed_data'; | ||
|
||
import 'package:flutter/material.dart'; | ||
import 'package:photobooth_ui/photobooth_ui.dart'; | ||
|
||
class SharePreviewPhoto extends StatelessWidget { | ||
const SharePreviewPhoto({Key? key, required this.image}) : super(key: key); | ||
|
||
final Uint8List image; | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Transform.rotate( | ||
angle: -5 * (math.pi / 180), | ||
child: Container( | ||
constraints: const BoxConstraints(maxWidth: 600, maxHeight: 400), | ||
decoration: const BoxDecoration( | ||
boxShadow: [ | ||
BoxShadow( | ||
color: PhotoboothColors.black54, | ||
blurRadius: 7, | ||
offset: Offset(-3, 9), | ||
spreadRadius: 1, | ||
), | ||
], | ||
), | ||
child: Image.memory( | ||
image, | ||
isAntiAlias: true, | ||
filterQuality: FilterQuality.high, | ||
), | ||
), | ||
); | ||
} | ||
} |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.