Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion example/audio_classification/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ class _MyHomePageState extends State<MyHomePage> {
backgroundColor: Colors.white,
appBar: AppBar(
title: Image.asset('assets/images/tfl_logo.png'),
backgroundColor: Colors.black.withOpacity(0.5),
backgroundColor: Colors.black.withValues(alpha: 0.5),
),
body: _buildBody(),
);
Expand Down
2 changes: 1 addition & 1 deletion example/bertqa/lib/ui/qa_detail.dart
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ class _QaDetailState extends State<QaDetail> {
padding: const EdgeInsets.all(16),
decoration: BoxDecoration(color: Colors.white, boxShadow: [
BoxShadow(
color: Colors.grey.withOpacity(0.5),
color: Colors.grey.withValues(alpha: 0.5),
spreadRadius: 2,
blurRadius: 5,
offset: const Offset(0, 3))
Expand Down
2 changes: 1 addition & 1 deletion example/digit_classification/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class _MyHomePageState extends State<MyHomePage> {
title: Center(
child: Image.asset('assets/images/tfl_logo.png'),
),
backgroundColor: Colors.black.withOpacity(0.5),
backgroundColor: Colors.black.withValues(alpha: 0.5),
),
body: Center(
child: Column(
Expand Down
2 changes: 1 addition & 1 deletion example/gesture_classification/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ class _MyHomePageState extends State<MyHomePage> with WidgetsBindingObserver {
title: Center(
child: Image.asset('assets/images/tfl_logo.png'),
),
backgroundColor: Colors.black.withOpacity(0.5),
backgroundColor: Colors.black.withValues(alpha: 0.5),
),
body: Center(
// Center is a layout widget. It takes a single child and positions it
Expand Down
2 changes: 1 addition & 1 deletion example/image_classification_mobilenet/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class _BottomNavigationBarExampleState
return Scaffold(
appBar: AppBar(
title: Image.asset('assets/images/tfl_logo.png'),
backgroundColor: Colors.black.withOpacity(0.5),
backgroundColor: Colors.black.withValues(alpha: 0.5),
),
body: Center(
child: _widgetOptions?.elementAt(_selectedIndex),
Expand Down
4 changes: 2 additions & 2 deletions example/image_segmentation/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ class _MyHomePageState extends State<MyHomePage> with WidgetsBindingObserver {
// parse color from label color
color: Color(ImageSegmentationHelper
.labelColors[_labelsIndex![index]])
.withOpacity(0.5),
.withValues(alpha: 0.5),
borderRadius: BorderRadius.circular(8),
),
child: Text(
Expand All @@ -251,7 +251,7 @@ class _MyHomePageState extends State<MyHomePage> with WidgetsBindingObserver {
title: Center(
child: Image.asset('assets/images/tfl_logo.png'),
),
backgroundColor: Colors.black.withOpacity(0.5),
backgroundColor: Colors.black.withValues(alpha: 0.5),
),
body: cameraWidget(context),
);
Expand Down
2 changes: 1 addition & 1 deletion example/object_detection_ssd_mobilenet/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class _MyHomeState extends State<MyHome> {
return Scaffold(
appBar: AppBar(
title: Image.asset('assets/images/tfl_logo.png'),
backgroundColor: Colors.black.withOpacity(0.5),
backgroundColor: Colors.black.withValues(alpha: 0.5),
),
body: SafeArea(
child: Column(
Expand Down
2 changes: 1 addition & 1 deletion example/object_detection_ssd_mobilenet_v2/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class _MyHomeState extends State<MyHome> {
return Scaffold(
appBar: AppBar(
title: Image.asset('assets/images/tfl_logo.png'),
backgroundColor: Colors.black.withOpacity(0.5),
backgroundColor: Colors.black.withValues(alpha: 0.5),
),
body: SafeArea(
child: Column(
Expand Down
2 changes: 1 addition & 1 deletion example/pose_estimation/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ class _MyHomePageState extends State<MyHomePage> with WidgetsBindingObserver {
title: Center(
child: Image.asset('assets/images/tfl_logo.png'),
),
backgroundColor: Colors.black.withOpacity(0.5),
backgroundColor: Colors.black.withValues(alpha: 0.5),
),
body: resultWidget(context),
);
Expand Down
2 changes: 1 addition & 1 deletion example/style_transfer/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ class _HomeState extends State<Home> {
return Scaffold(
appBar: AppBar(
title: Image.asset('assets/images/tfl_logo.png'),
backgroundColor: Colors.black.withOpacity(0.5),
backgroundColor: Colors.black.withValues(alpha: 0.5),
),
body: SafeArea(
child: Center(
Expand Down
2 changes: 1 addition & 1 deletion example/super_resolution_esrgan/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ class _HomeState extends State<Home> {
return Scaffold(
appBar: AppBar(
title: Image.asset('assets/images/tfl_logo.png'),
backgroundColor: Colors.black.withOpacity(0.5),
backgroundColor: Colors.black.withValues(alpha: 0.5),
),
body: SafeArea(
child: Center(
Expand Down