Done all screen landscape responsive for mobile and tablet

This commit is contained in:
Manish 2025-11-18 16:25:25 +05:30
parent 9745c00638
commit 2b1cbf129d

View File

@ -65,7 +65,6 @@ class _UserProfileBarState extends State<UserProfileBar>
Widget build(BuildContext context) {
final bool isCondensed = widget.isCondensed;
return Padding(
padding: const EdgeInsets.only(left: 14),
child: ClipRRect(
@ -102,6 +101,7 @@ class _UserProfileBarState extends State<UserProfileBar>
bottom: true,
child: Stack(
children: [
// ======================= MAIN PROFILE SIDEBAR =======================
// ======================= MAIN PROFILE SIDEBAR =======================
Offstage(
offstage: _isThemeEditorVisible,
@ -148,23 +148,6 @@ class _UserProfileBarState extends State<UserProfileBar>
),
// ======================= THEME EDITOR VIEW =======================
Offstage(
offstage: !_isThemeEditorVisible,
child: ThemeEditorWidget(
onClose: () {
setState(() => _isThemeEditorVisible = false);
},
),
),
],
),
),
bottom: true,
child: Stack(
children: [
// ======================= MAIN PROFILE SIDEBAR =======================
Offstage(
offstage: _isThemeEditorVisible,
child: LayoutBuilder(
builder: (context, constraints) {
return SingleChildScrollView(
@ -227,8 +210,6 @@ class _UserProfileBarState extends State<UserProfileBar>
// ==================== EXISTING CODE (UNCHANGED) =====================
// ==================== EXISTING CODE (UNCHANGED) =====================
Widget _switchTenantRow() {
final TenantSwitchController tenantSwitchController =
Get.put(TenantSwitchController());
@ -332,7 +313,6 @@ class _UserProfileBarState extends State<UserProfileBar>
child: const Center(child: CircularProgressIndicator(strokeWidth: 2)),
);
// FIXED YOUR ORIGINAL INTENT, COMPLETED PROPERLY
// FIXED YOUR ORIGINAL INTENT, COMPLETED PROPERLY
Widget _noTenantContainer() => Container(
padding: const EdgeInsets.symmetric(vertical: 12, horizontal: 16),
@ -343,18 +323,6 @@ class _UserProfileBarState extends State<UserProfileBar>
color: Colors.blue.shade200,
width: 1,
),
border: Border.all(
color: Colors.blue.shade200,
width: 1,
),
),
child: const Center(
child: Text(
"No organizations available",
style: TextStyle(
fontWeight: FontWeight.w600,
color: Colors.black87,
),
),
child: const Center(
child: Text(