Skip to content

Commit

Permalink
Simplify flutter_custom_tabs_android example
Browse files Browse the repository at this point in the history
  • Loading branch information
droibit committed Jun 8, 2024
1 parent ce82a34 commit b0fde57
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
7 changes: 3 additions & 4 deletions flutter_custom_tabs_android/example/lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import 'dart:async';

import 'package:dynamic_color/dynamic_color.dart';
import 'package:flutter/material.dart';
import 'package:flutter_custom_tabs_android/flutter_custom_tabs_android.dart';
import 'package:flutter_custom_tabs_platform_interface/flutter_custom_tabs_platform_interface.dart';
Expand All @@ -12,17 +11,17 @@ class MyApp extends StatelessWidget {

@override
Widget build(BuildContext context) {
return DynamicColorBuilder(
return MaterialApp(
builder: (lightDynamic, darkDynamic) => MaterialApp(
title: 'Flutter Custom Tabs Example',
theme: ThemeData(
useMaterial3: true,
colorScheme: lightDynamic,
colorSchemeSeed: Colors.blue,
brightness: Brightness.light,
),
darkTheme: ThemeData(
useMaterial3: true,
colorScheme: darkDynamic,
colorSchemeSeed: Colors.blue,
brightness: Brightness.dark,
),
themeMode: ThemeMode.system,
Expand Down
1 change: 0 additions & 1 deletion flutter_custom_tabs_android/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ dependencies:
sdk: flutter
flutter_custom_tabs_android:
path: ../
dynamic_color: ^1.7.0

dev_dependencies:
integration_test:
Expand Down

0 comments on commit b0fde57

Please sign in to comment.