Skip to content

Commit

Permalink
Replaced deprecated APIs (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gold872 authored May 26, 2024
1 parent c8d7e72 commit f1d29a6
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
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

0 comments on commit f1d29a6

Please sign in to comment.