dev first commit
This commit is contained in:
@@ -23,6 +23,7 @@ class HomePage extends StatefulWidget {
|
||||
class _HomePageState extends State<HomePage> with TickerProviderStateMixin {
|
||||
late String _selectedTab = 'Drive';
|
||||
late AnimationController _animationController;
|
||||
bool _isSignupMode = false;
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
@@ -39,6 +40,16 @@ class _HomePageState extends State<HomePage> with TickerProviderStateMixin {
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
void _setSignupMode(bool isSignup) {
|
||||
if (_isSignupMode && !isSignup) {
|
||||
Future.delayed(const Duration(milliseconds: 200), () {
|
||||
if (mounted) setState(() => _isSignupMode = isSignup);
|
||||
});
|
||||
} else {
|
||||
setState(() => _isSignupMode = isSignup);
|
||||
}
|
||||
}
|
||||
|
||||
void _showCreateOrgDialog(BuildContext context) {
|
||||
final controller = TextEditingController();
|
||||
showDialog(
|
||||
@@ -250,7 +261,7 @@ class _HomePageState extends State<HomePage> with TickerProviderStateMixin {
|
||||
: 340,
|
||||
height: isLoggedIn
|
||||
? MediaQuery.of(context).size.height * 0.9
|
||||
: 280,
|
||||
: (_isSignupMode ? 400 : 280),
|
||||
child: ClipRRect(
|
||||
borderRadius: BorderRadius.circular(16),
|
||||
child: BackdropFilter(
|
||||
@@ -309,7 +320,9 @@ class _HomePageState extends State<HomePage> with TickerProviderStateMixin {
|
||||
},
|
||||
),
|
||||
)
|
||||
: const LoginForm(),
|
||||
: LoginForm(
|
||||
onSignupModeChanged: _setSignupMode,
|
||||
),
|
||||
),
|
||||
// Top-left radial glow - primary accent light
|
||||
AnimatedPositioned(
|
||||
|
||||
Reference in New Issue
Block a user