Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Commit

Permalink
Fix media page bug (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
Minipoloalex committed Apr 18, 2023
2 parents 9987ced + f4375b8 commit dffb701
Show file tree
Hide file tree
Showing 3 changed files with 153 additions and 13 deletions.
10 changes: 5 additions & 5 deletions pocket_cinema/lib/view/media/media_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import 'package:shimmer/shimmer.dart';

class MediaPage extends ConsumerWidget {
final String id;
const MediaPage({super.key, required this.id});
const MediaPage({Key? key, required this.id}) : super(key: key);
@override
Widget build(BuildContext context, WidgetRef ref) {
final mediaInfo = ref.watch(mediaProvider(id));
Expand Down Expand Up @@ -44,16 +44,16 @@ class MediaPage extends ConsumerWidget {
image: NetworkImage(data.backgroundImage),
),
ClipRect(
child: Positioned(
bottom: 0,
height: 20,
child: Align(
heightFactor: 1,
alignment: Alignment.bottomCenter,
child: Container(
width: MediaQuery.of(context).size.width,
height: 210,
decoration: BoxDecoration(
boxShadow: [
BoxShadow(
color: Colors.black.withOpacity(0.8),
color: Colors.black.withOpacity(0.9),
blurRadius: 30,
spreadRadius: 10,
offset: const Offset(0, 200),
Expand Down
12 changes: 4 additions & 8 deletions pocket_cinema/lib/view/media/widgets/description_shimmer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,9 @@ class DescriptionShimmer extends StatelessWidget {

@override
Widget build(BuildContext context) {
return Column(
children: List.generate(
3,
(index) => Container(
height: 10,
margin: const EdgeInsets.only(bottom: 5),
color: Colors.black,
)));
return Container(
height: 35,
color: Colors.black,
);
}
}
144 changes: 144 additions & 0 deletions pocket_cinema/pubspec.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
# Generated by pub
# See https://dart.dev/tools/pub/glossary#lockfile
packages:
_fe_analyzer_shared:
dependency: transitive
description:
name: _fe_analyzer_shared
sha256: a36ec4843dc30ea6bf652bf25e3448db6c5e8bcf4aa55f063a5d1dad216d8214
url: "https://pub.dev"
source: hosted
version: "58.0.0"
_flutterfire_internals:
dependency: transitive
description:
Expand All @@ -9,6 +17,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.1.1"
analyzer:
dependency: transitive
description:
name: analyzer
sha256: cc4242565347e98424ce9945c819c192ec0838cb9d1f6aa4a97cc96becbc5b27
url: "https://pub.dev"
source: hosted
version: "5.10.0"
archive:
dependency: transitive
description:
Expand All @@ -17,6 +33,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "3.3.2"
args:
dependency: transitive
description:
name: args
sha256: "4cab82a83ffef80b262ddedf47a0a8e56ee6fbf7fe21e6e768b02792034dd440"
url: "https://pub.dev"
source: hosted
version: "2.4.0"
async:
dependency: transitive
description:
Expand All @@ -41,6 +65,30 @@ packages:
url: "https://pub.dev"
source: hosted
version: "2.1.1"
build:
dependency: transitive
description:
name: build
sha256: "3fbda25365741f8251b39f3917fb3c8e286a96fd068a5a242e11c2012d495777"
url: "https://pub.dev"
source: hosted
version: "2.3.1"
built_collection:
dependency: transitive
description:
name: built_collection
sha256: "376e3dd27b51ea877c28d525560790aee2e6fbb5f20e2f85d5081027d94e2100"
url: "https://pub.dev"
source: hosted
version: "5.1.1"
built_value:
dependency: transitive
description:
name: built_value
sha256: "31b7c748fd4b9adf8d25d72a4c4a59ef119f12876cf414f94f8af5131d5fa2b0"
url: "https://pub.dev"
source: hosted
version: "8.4.4"
characters:
dependency: transitive
description:
Expand Down Expand Up @@ -81,6 +129,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "3.4.2"
code_builder:
dependency: transitive
description:
name: code_builder
sha256: "0d43dd1288fd145de1ecc9a3948ad4a6d5a82f0a14c4fdd0892260787d975cbe"
url: "https://pub.dev"
source: hosted
version: "4.4.0"
collection:
dependency: transitive
description:
Expand All @@ -89,6 +145,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.17.0"
convert:
dependency: transitive
description:
name: convert
sha256: "0f08b14755d163f6e2134cb58222dd25ea2a2ee8a195e53983d57c075324d592"
url: "https://pub.dev"
source: hosted
version: "3.1.1"
crypto:
dependency: transitive
description:
Expand All @@ -113,6 +177,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.0.5"
dart_style:
dependency: transitive
description:
name: dart_style
sha256: "6d691edde054969f0e0f26abb1b30834b5138b963793e56f69d3a9a4435e6352"
url: "https://pub.dev"
source: hosted
version: "2.3.0"
fake_async:
dependency: transitive
description:
Expand Down Expand Up @@ -185,6 +257,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "2.3.0"
fixnum:
dependency: transitive
description:
name: fixnum
sha256: "25517a4deb0c03aa0f32fd12db525856438902d9c16536311e76cdc57b31d7d1"
url: "https://pub.dev"
source: hosted
version: "1.1.0"
flutter:
dependency: "direct main"
description: flutter
Expand Down Expand Up @@ -370,6 +450,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "2.0.1"
logging:
dependency: transitive
description:
name: logging
sha256: "04094f2eb032cbb06c6f6e8d3607edcfcb0455e2bb6cbc010cb01171dcb64e6d"
url: "https://pub.dev"
source: hosted
version: "1.1.1"
matcher:
dependency: transitive
description:
Expand All @@ -394,6 +482,30 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.8.0"
mockito:
dependency: "direct dev"
description:
name: mockito
sha256: dd61809f04da1838a680926de50a9e87385c1de91c6579629c3d1723946e8059
url: "https://pub.dev"
source: hosted
version: "5.4.0"
network_image_mock:
dependency: "direct dev"
description:
name: network_image_mock
sha256: "855cdd01d42440e0cffee0d6c2370909fc31b3bcba308a59829f24f64be42db7"
url: "https://pub.dev"
source: hosted
version: "2.1.1"
package_config:
dependency: transitive
description:
name: package_config
sha256: "1c5b77ccc91e4823a5af61ee74e6b972db1ef98c2ff5a18d3161c982a55448bd"
url: "https://pub.dev"
source: hosted
version: "2.1.0"
path:
dependency: transitive
description:
Expand Down Expand Up @@ -498,6 +610,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "4.2.4"
pub_semver:
dependency: transitive
description:
name: pub_semver
sha256: "307de764d305289ff24ad257ad5c5793ce56d04947599ad68b3baa124105fc17"
url: "https://pub.dev"
source: hosted
version: "2.1.3"
quiver:
dependency: transitive
description:
Expand Down Expand Up @@ -527,6 +647,14 @@ packages:
description: flutter
source: sdk
version: "0.0.99"
source_gen:
dependency: transitive
description:
name: source_gen
sha256: c2bea18c95cfa0276a366270afaa2850b09b4a76db95d546f3d003dcc7011298
url: "https://pub.dev"
source: hosted
version: "1.2.7"
source_span:
dependency: transitive
description:
Expand Down Expand Up @@ -679,6 +807,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "9.4.0"
watcher:
dependency: transitive
description:
name: watcher
sha256: "6a7f46926b01ce81bfc339da6a7f20afbe7733eff9846f6d6a5466aa4c6667c0"
url: "https://pub.dev"
source: hosted
version: "1.0.2"
webdriver:
dependency: transitive
description:
Expand Down Expand Up @@ -711,6 +847,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "6.2.2"
yaml:
dependency: transitive
description:
name: yaml
sha256: "23812a9b125b48d4007117254bca50abb6c712352927eece9e155207b1db2370"
url: "https://pub.dev"
source: hosted
version: "3.1.1"
sdks:
dart: ">=2.19.2 <3.0.0"
flutter: ">=3.3.0"

0 comments on commit dffb701

Please sign in to comment.