mirror of
https://github.com/flutter/samples.git
synced 2025-11-08 13:58:47 +00:00
add thumbnails to the books example to make memory leaks easier to test (#1353)
* add thumbnails to the books example to make memory leaks easier to test
* also add profile build
* migrate material 3 demo code to avoid warning
* Revert "migrate material 3 demo code to avoid warning"
This reverts commit 7df37d9f65.
* fix lints in various packages
* DoNothingAndStopPropagationIntent const conflicts between stable and beta, add lint ignore for now
This commit is contained in:
@@ -469,7 +469,10 @@ class _AddPlaceButtonBar extends StatelessWidget {
|
||||
alignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
ElevatedButton(
|
||||
style: ElevatedButton.styleFrom(primary: Colors.blue),
|
||||
style: ElevatedButton.styleFrom(
|
||||
// ignore: deprecated_member_use
|
||||
primary: Colors.blue,
|
||||
),
|
||||
onPressed: onSavePressed,
|
||||
child: const Text(
|
||||
'Save',
|
||||
@@ -477,7 +480,10 @@ class _AddPlaceButtonBar extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
ElevatedButton(
|
||||
style: ElevatedButton.styleFrom(primary: Colors.red),
|
||||
style: ElevatedButton.styleFrom(
|
||||
// ignore: deprecated_member_use
|
||||
primary: Colors.red,
|
||||
),
|
||||
onPressed: onCancelPressed,
|
||||
child: const Text(
|
||||
'Cancel',
|
||||
@@ -514,9 +520,11 @@ class _CategoryButtonBar extends StatelessWidget {
|
||||
children: [
|
||||
ElevatedButton(
|
||||
style: ElevatedButton.styleFrom(
|
||||
primary: selectedPlaceCategory == PlaceCategory.favorite
|
||||
? Colors.green[700]
|
||||
: Colors.lightGreen),
|
||||
// ignore: deprecated_member_use
|
||||
primary: selectedPlaceCategory == PlaceCategory.favorite
|
||||
? Colors.green[700]
|
||||
: Colors.lightGreen,
|
||||
),
|
||||
child: const Text(
|
||||
'Favorites',
|
||||
style: TextStyle(color: Colors.white, fontSize: 14.0),
|
||||
@@ -525,9 +533,11 @@ class _CategoryButtonBar extends StatelessWidget {
|
||||
),
|
||||
ElevatedButton(
|
||||
style: ElevatedButton.styleFrom(
|
||||
primary: selectedPlaceCategory == PlaceCategory.visited
|
||||
? Colors.green[700]
|
||||
: Colors.lightGreen),
|
||||
// ignore: deprecated_member_use
|
||||
primary: selectedPlaceCategory == PlaceCategory.visited
|
||||
? Colors.green[700]
|
||||
: Colors.lightGreen,
|
||||
),
|
||||
child: const Text(
|
||||
'Visited',
|
||||
style: TextStyle(color: Colors.white, fontSize: 14.0),
|
||||
@@ -536,9 +546,11 @@ class _CategoryButtonBar extends StatelessWidget {
|
||||
),
|
||||
ElevatedButton(
|
||||
style: ElevatedButton.styleFrom(
|
||||
primary: selectedPlaceCategory == PlaceCategory.wantToGo
|
||||
? Colors.green[700]
|
||||
: Colors.lightGreen),
|
||||
// ignore: deprecated_member_use
|
||||
primary: selectedPlaceCategory == PlaceCategory.wantToGo
|
||||
? Colors.green[700]
|
||||
: Colors.lightGreen,
|
||||
),
|
||||
child: const Text(
|
||||
'Want To Go',
|
||||
style: TextStyle(color: Colors.white, fontSize: 14.0),
|
||||
|
||||
Reference in New Issue
Block a user