mirror of
https://github.com/foss42/apidash.git
synced 2025-06-19 05:18:18 +08:00
State Management + UI Updates
This commit is contained in:
36
lib/components/editor_pane.dart
Normal file
36
lib/components/editor_pane.dart
Normal file
@ -0,0 +1,36 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import '../providers/providers.dart';
|
||||
|
||||
class RequestEditorPane extends ConsumerStatefulWidget {
|
||||
const RequestEditorPane({
|
||||
Key? key,
|
||||
}) : super(key: key);
|
||||
|
||||
@override
|
||||
ConsumerState<RequestEditorPane> createState() => _RequestEditorPaneState();
|
||||
}
|
||||
|
||||
class _RequestEditorPaneState extends ConsumerState<RequestEditorPane> {
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final activeId = ref.watch(activeItemIdStateProvider);
|
||||
if (activeId == null) {
|
||||
return Text("Select One");
|
||||
} else {
|
||||
return Padding(
|
||||
padding: const EdgeInsets.all(8),
|
||||
child: Column(
|
||||
children: [
|
||||
Container(),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user