Skip to content

Commit

Permalink
Merge pull request #205 from wiredashio/color_customizations
Browse files Browse the repository at this point in the history
  • Loading branch information
passsy authored May 9, 2022
2 parents 6c9ae8c + cd98ab5 commit 4ebbda7
Show file tree
Hide file tree
Showing 21 changed files with 1,646 additions and 459 deletions.
904 changes: 904 additions & 0 deletions example/lib/main_customizer.dart

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions example/lib/main_netflix.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ import 'package:wiredash/wiredash.dart';
import 'package:wiredash_example/marianos_clones/netflix_clone.dart';

void main() {
/// NOTE: This example only works with flutter web
assert(kIsWeb);

final app = Wiredash(
projectId: "Project ID from console.wiredash.io",
secret: "API Key from console.wiredash.io",
Expand Down
6 changes: 4 additions & 2 deletions example/lib/main_whatsapp.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ void main() {
final app = Wiredash(
projectId: "Project ID from console.wiredash.io",
secret: "API Key from console.wiredash.io",
theme: WiredashThemeData(
theme: WiredashThemeData.fromColor(
primaryColor: WhatsappUtils.appBarMobile,
secondaryColor: WhatsappUtils.softGreen,
brightness: Brightness.light,
).copyWith(
secondaryColor: Color(0xFFD6F5ED),
primaryBackgroundColor: WhatsappUtils.chatBackground,
secondaryBackgroundColor: WhatsappUtils.chatBackground2,
),
Expand Down
1 change: 1 addition & 0 deletions example/lib/marianos_clones/netflix_clone.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class Netflix extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
useInheritedMediaQuery: true,
debugShowCheckedModeBanner: false,
home: InitScreen(),
theme: ThemeData().copyWith(
Expand Down
Loading

0 comments on commit 4ebbda7

Please sign in to comment.