Skip to content

Commit f3ec2b7

Browse files
Migrate isolate_example to Material 3 (#1619)
1 parent 51f0a74 commit f3ec2b7

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

isolate_example/lib/data_transfer_page.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,23 +62,23 @@ class DataTransferPage extends StatelessWidget {
6262
style: ElevatedButton.styleFrom(
6363
foregroundColor: (controller.runningTest == 1)
6464
? Colors.blueAccent
65-
: Colors.grey[300]),
65+
: Colors.blueGrey),
6666
onPressed: () => controller.generateRandomNumbers(false),
6767
child: const Text('Transfer Data to 2nd Isolate'),
6868
),
6969
ElevatedButton(
7070
style: ElevatedButton.styleFrom(
7171
foregroundColor: (controller.runningTest == 2)
7272
? Colors.blueAccent
73-
: Colors.grey[300]),
73+
: Colors.blueGrey),
7474
onPressed: () => controller.generateRandomNumbers(true),
7575
child: const Text('Transfer Data with TransferableTypedData'),
7676
),
7777
ElevatedButton(
7878
style: ElevatedButton.styleFrom(
7979
foregroundColor: (controller.runningTest == 3)
8080
? Colors.blueAccent
81-
: Colors.grey[300]),
81+
: Colors.blueGrey),
8282
onPressed: controller.generateOnSecondaryIsolate,
8383
child: const Text('Generate on 2nd Isolate'),
8484
),

isolate_example/lib/main.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ class HomePage extends StatelessWidget {
4848
@override
4949
Widget build(BuildContext context) {
5050
return MaterialApp(
51+
theme: ThemeData.light(useMaterial3: true),
5152
home: DefaultTabController(
5253
length: 3,
5354
child: Scaffold(

0 commit comments

Comments
 (0)