init
This commit is contained in:
22
lib/const.dart
Normal file
22
lib/const.dart
Normal file
@@ -0,0 +1,22 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
final isDarkMode = false;
|
||||
final imageURL =
|
||||
'https://lh3.googleusercontent.com/aida-public/AB6AXuACAJl0VSuQ2Ix9QfEZLLOwybczej9BGvwBb2GCuiY2QB5BxCj9VYM7rPTAsrcD2MtpaXXfATfV_Ko6TYXJ-sQ0uX4v_sZKTJYy42JXjBVqhin2Z4yh0mtRrVGzZi_WgBWkDzYF9JjqB1_BMpLgjsBy0PfI_skYvYECttgmQhvvTYiut-5nGrBu72DSxB5Oc7rtiTFpO6dypLCLWuhq1UEAk7rGAfwYx_8Oc9InevGM_z0pfoqf3N0jcRqlGepQshp7pSYOxsHHE6U';
|
||||
|
||||
final cinamorollURL =
|
||||
'https://supabase.godopu.com/storage/v1/object/public/lac_images/Cinnamoroll.jpg';
|
||||
|
||||
final backgroundColor = isDarkMode
|
||||
? const Color(0xFF101922)
|
||||
: const Color(0xFFFFFFFF);
|
||||
final textColor = isDarkMode
|
||||
? const Color(0xFFE5E7EB)
|
||||
: const Color(0xFF1F2937);
|
||||
final subtleTextColor = isDarkMode
|
||||
? const Color(0xFF9CA3AF)
|
||||
: const Color(0xFF6B7280);
|
||||
final inputBackgroundColor = isDarkMode
|
||||
? const Color(0xFF1F2937)
|
||||
: const Color(0xFFE5E7EB);
|
||||
const primaryColor = Color(0xFF137FEC);
|
||||
24
lib/main.dart
Normal file
24
lib/main.dart
Normal file
@@ -0,0 +1,24 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:user_management_template/pages/login.dart';
|
||||
|
||||
void main() {
|
||||
runApp(const MyApp());
|
||||
}
|
||||
|
||||
class MyApp extends StatelessWidget {
|
||||
const MyApp({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return MaterialApp(
|
||||
title: 'Flutter Demo',
|
||||
theme: ThemeData(
|
||||
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
|
||||
useMaterial3: true,
|
||||
),
|
||||
darkTheme: ThemeData.dark(useMaterial3: true),
|
||||
themeMode: ThemeMode.system,
|
||||
home: const LoginPage(),
|
||||
);
|
||||
}
|
||||
}
|
||||
29
lib/pages/login.dart
Normal file
29
lib/pages/login.dart
Normal file
@@ -0,0 +1,29 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:user_management_template/const.dart';
|
||||
|
||||
class LoginPage extends StatelessWidget {
|
||||
const LoginPage({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
backgroundColor: backgroundColor,
|
||||
body: Stack(children: [
|
||||
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Widget _buildTextField({
|
||||
required IconData icon,
|
||||
required String hintText,
|
||||
bool obscureText = false,
|
||||
required bool isDarkMode,
|
||||
required Color inputBackgroundColor,
|
||||
required Color subtleTextColor,
|
||||
required Color textColor,
|
||||
}) {
|
||||
return TextField();
|
||||
}
|
||||
Reference in New Issue
Block a user