Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replaced deprecated APIs #46

Merged
merged 1 commit into from
May 26, 2024
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 lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import 'dart:convert';
import 'dart:io';
import 'dart:math';

import 'package:flex_seed_scheme/flex_seed_scheme.dart';
import 'package:flutter/material.dart';

import 'package:dot_cast/dot_cast.dart';
import 'package:flex_seed_scheme/flex_seed_scheme.dart';
import 'package:package_info_plus/package_info_plus.dart';
import 'package:path_provider/path_provider.dart';
import 'package:screen_retriever/screen_retriever.dart';
Expand Down
10 changes: 5 additions & 5 deletions lib/widgets/editable_tab_bar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,11 @@ class EditableTabBar extends StatelessWidget {
Widget build(BuildContext context) {
ThemeData theme = Theme.of(context);
ButtonStyle endButtonStyle = const ButtonStyle(
shape: MaterialStatePropertyAll(RoundedRectangleBorder()),
maximumSize: MaterialStatePropertyAll(Size.square(34.0)),
minimumSize: MaterialStatePropertyAll(Size.zero),
padding: MaterialStatePropertyAll(EdgeInsets.all(4.0)),
iconSize: MaterialStatePropertyAll(24.0),
shape: WidgetStatePropertyAll(RoundedRectangleBorder()),
maximumSize: WidgetStatePropertyAll(Size.square(34.0)),
minimumSize: WidgetStatePropertyAll(Size.zero),
padding: WidgetStatePropertyAll(EdgeInsets.all(4.0)),
iconSize: WidgetStatePropertyAll(24.0),
);

return Column(
Expand Down
4 changes: 2 additions & 2 deletions lib/widgets/nt_widgets/multi-topic/camera_stream.dart
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import 'package:elastic_dashboard/widgets/dialog_widgets/dialog_text_input.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';

import 'package:dot_cast/dot_cast.dart';
import 'package:flutter/services.dart';
import 'package:provider/provider.dart';

import 'package:elastic_dashboard/services/nt_connection.dart';
import 'package:elastic_dashboard/widgets/custom_loading_indicator.dart';
import 'package:elastic_dashboard/widgets/dialog_widgets/dialog_text_input.dart';
import 'package:elastic_dashboard/widgets/mjpeg.dart';
import 'package:elastic_dashboard/widgets/nt_widgets/nt_widget.dart';

Expand Down
2 changes: 1 addition & 1 deletion lib/widgets/nt_widgets/multi-topic/pid_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ class PIDControllerWidget extends NTWidget {
model.publishSetpoint();
},
style: ButtonStyle(
shape: MaterialStatePropertyAll(
shape: WidgetStatePropertyAll(
RoundedRectangleBorder(
borderRadius: BorderRadius.circular(5.0),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ class ProfiledPIDControllerWidget extends NTWidget {
model.publishGoal();
},
style: ButtonStyle(
shape: MaterialStatePropertyAll(
shape: WidgetStatePropertyAll(
RoundedRectangleBorder(
borderRadius: BorderRadius.circular(5.0),
),
Expand Down
2 changes: 1 addition & 1 deletion lib/widgets/nt_widgets/multi-topic/robot_preferences.dart
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ class PreferenceSearch extends StatelessWidget {
.toList();
},
initialList: preferenceTopicNames,
builder: (displayedList, itemIndex, item) {
itemBuilder: (item) {
TextEditingController? textController = preferenceTextControllers[item];

return _RobotPreference(
Expand Down
Loading