State Management + UI Updates

This commit is contained in:
Ankit Mahato
2023-03-04 22:23:49 +05:30
parent 3ce391e2d5
commit 76e5fc006c
11 changed files with 365 additions and 122 deletions

View 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(),
],
),
);
}
}
}