in ui/lib/modules/settings/settings_screen.dart [57:116]
Widget _getBody(BuildContext context, WidgetRef ref) {
final settings = ref.watch(gitSettingsProvider);
return settings.when(
loading: () => Text('Loading...'),
error: (err, stack) => Text('Error: $err'),
data: (gitSettings) {
return Container(
padding: EdgeInsets.all(24),
child: DefaultTabController(
length: 2,
child: Scaffold(
body: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SelectableText(
"Workspace settings",
style: GoogleFonts.openSans(
fontSize: 32,
color: Color(0xFF1b3a57),
fontWeight: FontWeight.w600,
),
),
TabBar(
isScrollable: true,
onTap: (int index) {
},
tabs: [
Container(
child: Tab(
child: Text(
"Workbench Config",
style: textStyle,
)),
),
Container(
child: Tab(
child: Text(
"Git Config",
style: textStyle,
)),
),
],
),
Expanded(
child: TabBarView(
children: [
_generalTab(context),
_apisTab(context, gitSettings, ref),
],
),
),
],
),
),
),
);
});
}