Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

feat: updated input theme

dshukertjrfbf099c67fd2
diff --git a/examples/todo-list/flutter-todo-list/ios/Flutter/Debug.xcconfig b/examples/todo-list/flutter-todo-list/ios/Flutter/Debug.xcconfig
index 592ceee85b8..ec97fc6f302 100644
--- a/examples/todo-list/flutter-todo-list/ios/Flutter/Debug.xcconfig
+++ b/examples/todo-list/flutter-todo-list/ios/Flutter/Debug.xcconfig
@@ -1 +1,2 @@
+#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
#include "Generated.xcconfig"
diff --git a/examples/todo-list/flutter-todo-list/ios/Flutter/Release.xcconfig b/examples/todo-list/flutter-todo-list/ios/Flutter/Release.xcconfig
index 592ceee85b8..c4855bfe200 100644
--- a/examples/todo-list/flutter-todo-list/ios/Flutter/Release.xcconfig
+++ b/examples/todo-list/flutter-todo-list/ios/Flutter/Release.xcconfig
@@ -1 +1,2 @@
+#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
#include "Generated.xcconfig"
diff --git a/examples/todo-list/flutter-todo-list/ios/Podfile b/examples/todo-list/flutter-todo-list/ios/Podfile
new file mode 100644
index 00000000000..1e8c3c90a55
--- /dev/null
+++ b/examples/todo-list/flutter-todo-list/ios/Podfile
@@ -0,0 +1,41 @@
+# Uncomment this line to define a global platform for your project
+# platform :ios, '9.0'
+
+# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
+ENV['COCOAPODS_DISABLE_STATS'] = 'true'
+
+project 'Runner', {
+ 'Debug' => :debug,
+ 'Profile' => :release,
+ 'Release' => :release,
+}
+
+def flutter_root
+ generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
+ unless File.exist?(generated_xcode_build_settings_path)
+ raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
+ end
+
+ File.foreach(generated_xcode_build_settings_path) do |line|
+ matches = line.match(/FLUTTER_ROOT\=(.*)/)
+ return matches[1].strip if matches
+ end
+ raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
+end
+
+require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
+
+flutter_ios_podfile_setup
+
+target 'Runner' do
+ use_frameworks!
+ use_modular_headers!
+
+ flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
+end
+
+post_install do |installer|
+ installer.pods_project.targets.each do |target|
+ flutter_additional_ios_build_settings(target)
+ end
+end
diff --git a/examples/todo-list/flutter-todo-list/lib/functions/auth.dart b/examples/todo-list/flutter-todo-list/lib/functions/auth.dart
index 62e5d88b425..14ff177ca9a 100644
--- a/examples/todo-list/flutter-todo-list/lib/functions/auth.dart
+++ b/examples/todo-list/flutter-todo-list/lib/functions/auth.dart
@@ -3,8 +3,10 @@ import 'package:supabase_flutter/supabase_flutter.dart';
class AuthSupabase {
static final client = Supabase.instance.client;
- static Future<bool> createAccount(
- {required String email, required String password}) async {
+ static Future<bool> createAccount({
+ required String email,
+ required String password,
+ }) async {
final res = await client.auth.signUp(email, password);
final error = res.error;
if (error == null) {
@@ -14,8 +16,10 @@ class AuthSupabase {
}
}
- static Future<String?> loginUser(
- {required String email, required String password}) async {
+ static Future<String?> loginUser({
+ required String email,
+ required String password,
+ }) async {
final res = await client.auth.signIn(email: email, password: password);
final user = res.data?.user;
return user?.id;
diff --git a/examples/todo-list/flutter-todo-list/lib/functions/crud.dart b/examples/todo-list/flutter-todo-list/lib/functions/crud.dart
index fed4b0aa6ca..31ca5b2cee8 100644
--- a/examples/todo-list/flutter-todo-list/lib/functions/crud.dart
+++ b/examples/todo-list/flutter-todo-list/lib/functions/crud.dart
@@ -1,9 +1,9 @@
-import 'dart:convert';
-
import 'package:todosupabase/functions/auth.dart';
class CrudSupabase {
- static Future<dynamic> getUser({required String email}) async {
+ static Future<dynamic> getUser({
+ required String email,
+ }) async {
final res = await AuthSupabase.client
.from('Users')
.select()
diff --git a/examples/todo-list/flutter-todo-list/lib/main.dart b/examples/todo-list/flutter-todo-list/lib/main.dart
index 83778d010c6..4dc62fc9f5d 100644
--- a/examples/todo-list/flutter-todo-list/lib/main.dart
+++ b/examples/todo-list/flutter-todo-list/lib/main.dart
@@ -47,6 +47,16 @@ class MyApp extends StatelessWidget {
padding: const EdgeInsets.all(16),
),
),
+ inputDecorationTheme: InputDecorationTheme(
+ labelStyle: const TextStyle(color: Colors.white),
+ border: OutlineInputBorder(
+ borderRadius: BorderRadius.circular(12),
+ borderSide: const BorderSide(
+ color: Colors.white,
+ width: 2,
+ ),
+ ),
+ ),
textTheme: const TextTheme(
bodyText1: TextStyle(color: Colors.white),
bodyText2: TextStyle(color: Colors.white),
diff --git a/examples/todo-list/flutter-todo-list/lib/screens/signup.dart b/examples/todo-list/flutter-todo-list/lib/screens/signup.dart
index 7c7bdfd6a90..86189650790 100644
--- a/examples/todo-list/flutter-todo-list/lib/screens/signup.dart
+++ b/examples/todo-list/flutter-todo-list/lib/screens/signup.dart
@@ -27,10 +27,16 @@ class _SignUpPageState extends State<SignUpPage> {
children: [
SvgPicture.asset("assets/supabase-dark.svg", width: 200),
largeGap,
- textFeildCustom(
- "Full Name",
- _nameController,
+ TextFormField(
+ controller: _nameController,
+ decoration: const InputDecoration(
+ label: Text('Full Name'),
+ ),
),
+ // textFeildCustom(
+ // "Full Name",
+ // _nameController,
+ // ),
smallGap,
textFeildCustom(
"Email",
diff --git a/examples/todo-list/flutter-todo-list/windows/flutter/generated_plugins.cmake b/examples/todo-list/flutter-todo-list/windows/flutter/generated_plugins.cmake
index 411af46dd72..88b22e5c775 100644
--- a/examples/todo-list/flutter-todo-list/windows/flutter/generated_plugins.cmake
+++ b/examples/todo-list/flutter-todo-list/windows/flutter/generated_plugins.cmake
@@ -6,6 +6,9 @@ list(APPEND FLUTTER_PLUGIN_LIST
url_launcher_windows
)
+list(APPEND FLUTTER_FFI_PLUGIN_LIST
+)
+
set(PLUGIN_BUNDLED_LIBRARIES)
foreach(plugin ${FLUTTER_PLUGIN_LIST})
@@ -14,3 +17,8 @@ foreach(plugin ${FLUTTER_PLUGIN_LIST})
list(APPEND PLUGIN_BUNDLED_LIBRARIES $<TARGET_FILE:${plugin}_plugin>)
list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries})
endforeach(plugin)
+
+foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST})
+ add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/windows plugins/${ffi_plugin})
+ list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries})
+endforeach(ffi_plugin)