Skip to content

Commit

Permalink
feature: fixing dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
efraespada committed Oct 8, 2024
1 parent 873e7af commit ce9e843
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 8 deletions.
2 changes: 0 additions & 2 deletions lib/src/bin/builders/preview_builder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ class ${clazz}Preview extends ParentPreviewWidget {
clipBehavior: Clip.hardEdge,
child: Container(
padding: const EdgeInsets.all(15),
color: Colors.white,
child: Row(
children: [
Expanded(
Expand Down Expand Up @@ -98,7 +97,6 @@ class ${clazz}Preview extends ParentPreviewWidget {
clipBehavior: Clip.hardEdge,
child: Container(
padding: const EdgeInsets.all(15),
color: Colors.white,
child: Row(
children: [
Expanded(
Expand Down
2 changes: 0 additions & 2 deletions lib/src/builders/catalog/preview_scaffold.dart
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ class PreviewScaffold extends StatelessWidget {
),
),
appBar: AppBar(
foregroundColor: Colors.white,
backgroundColor: Colors.teal,
title: Text(title ?? ''),
),
body: Stack(
Expand Down
1 change: 0 additions & 1 deletion lib/src/builders/preview/preview_dummy_basic.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ class PreviewDummyBasic extends StatelessWidget {
clipBehavior: Clip.hardEdge,
child: Container(
padding: const EdgeInsets.all(15),
color: Colors.white,
constraints: const BoxConstraints(
maxWidth: 400,
),
Expand Down
3 changes: 1 addition & 2 deletions lib/src/builders/preview/preview_dummy_device.dart
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ class PreviewDummyDevice extends StatelessWidget {
clipBehavior: Clip.hardEdge,
child: Container(
padding: const EdgeInsets.all(15),
color: Colors.white,
constraints: const BoxConstraints(
maxWidth: 400,
),
Expand Down Expand Up @@ -72,7 +71,7 @@ class PreviewDummyDevice extends StatelessWidget {
device: deviceInfo,
orientation: dummy.device.orientation,
screen: Container(
color: dummy.device.backgroundColor,
color: Theme.of(context).colorScheme.surface,
child: Builder(
builder: (context) {
return Padding(
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: catalog
description: A Flutter package to render widgets in real time and generate screenshots for fastlane.
version: 2.0.0
version: 2.0.1
homepage: https://landamessenger.com/
repository: https://github.com/landamessenger/catalog

Expand Down

0 comments on commit ce9e843

Please sign in to comment.