Skip to content

Commit

Permalink
[BUILD] deps fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mat-his committed Feb 20, 2024
1 parent 48f193b commit 52b05d0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 20 deletions.
2 changes: 1 addition & 1 deletion packages/codde_protocol/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ version: 0.1.0
# repository: https://github.com/my_org/my_repo

environment:
sdk: ">=3.1.2 <4.0.0"
sdk: ">=3.0.0 <4.0.0"

# Add regular dependencies here.
dependencies:
Expand Down
16 changes: 1 addition & 15 deletions packages/flutter_codde_protocol/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -57,20 +57,8 @@ class MyHomePage extends StatefulWidget {
}

class _MyHomePageState extends State<MyHomePage> {
int _counter = 0;
String value = "?";

void _incrementCounter() {
setState(() {
// This call to setState tells the Flutter framework that something has
// changed in this State, which causes it to rerun the build method below
// so that the display can reflect the updated values. If we changed
// _counter without calling setState(), then the build method would not be
// called again, and so nothing would appear to happen.
_counter++;
});
}

@override
void initState() {
super.initState();
Expand All @@ -81,9 +69,7 @@ class _MyHomePageState extends State<MyHomePage> {
await RustLib.init();
final client =
await ComSocketClient.newComSocketClient(address: "localhost:12345");
print('isntantiated');
await client.connect();
print('connected');
client.send(
data:
const Frame(id: 1, data: WidgetRegistry_ToggleButton(value: true)));
Expand Down Expand Up @@ -142,7 +128,7 @@ class _MyHomePageState extends State<MyHomePage> {
),
),
floatingActionButton: FloatingActionButton(
onPressed: _incrementCounter,
onPressed: () {}, // TOOD: send data
tooltip: 'Increment',
child: const Icon(Icons.add),
), // This trailing comma makes auto-formatting nicer for build methods.
Expand Down
4 changes: 2 additions & 2 deletions packages/flutter_codde_protocol/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ version: 0.1.0
homepage: https://codde-pi.com

environment:
sdk: ">=3.1.2 <4.0.0"
flutter: ">=3.3.0"
sdk: ">=3.0.0 <4.0.0"
flutter: ">=3.0.0"

dependencies:
flutter:
Expand Down
2 changes: 0 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ dev_dependencies:
freezed: ^2.4.7
melos: ^4.1.0
flutter_rust_bridge: 2.0.0-dev.24
integration_test:
sdk: flutter

flutter_rust_bridge:
rust-input: packages/codde_protocol/native/src/api/**/*.rs
Expand Down

0 comments on commit 52b05d0

Please sign in to comment.