mirror of
https://github.com/SoPat712/RUSwipeShare.git
synced 2025-08-21 19:08:46 -04:00
Ui stuff again
This commit is contained in:
@@ -9,9 +9,10 @@ import 'auth_gate.dart';
|
|||||||
void main() async {
|
void main() async {
|
||||||
WidgetsFlutterBinding.ensureInitialized();
|
WidgetsFlutterBinding.ensureInitialized();
|
||||||
await Firebase.initializeApp(options: DefaultFirebaseOptions.currentPlatform);
|
await Firebase.initializeApp(options: DefaultFirebaseOptions.currentPlatform);
|
||||||
Stripe.publishableKey = "pk_test_51MfY7PFVdcWv896FKvDhgKabYeDq4AnoFcWxCAg4hquj6TBAsN0kznXPVyKA7M1pMq5PsieGQwsx6QY5ld5ZQzJ500rVCMPPXp";
|
Stripe.publishableKey =
|
||||||
|
"pk_test_51MfY7PFVdcWv896FKvDhgKabYeDq4AnoFcWxCAg4hquj6TBAsN0kznXPVyKA7M1pMq5PsieGQwsx6QY5ld5ZQzJ500rVCMPPXp";
|
||||||
|
|
||||||
runApp(const MyApp());
|
runApp(const MyApp());
|
||||||
}
|
}
|
||||||
|
|
||||||
class MyApp extends StatelessWidget {
|
class MyApp extends StatelessWidget {
|
||||||
@@ -30,13 +31,19 @@ class MyApp extends StatelessWidget {
|
|||||||
textButtonTheme: TextButtonThemeData(
|
textButtonTheme: TextButtonThemeData(
|
||||||
style: ButtonStyle(
|
style: ButtonStyle(
|
||||||
textStyle: MaterialStatePropertyAll(TextStyle(
|
textStyle: MaterialStatePropertyAll(TextStyle(
|
||||||
color: CustomMaterialColor(240, 240, 240).mdColor))))),
|
color: CustomMaterialColor(240, 240, 240).mdColor)))),
|
||||||
|
checkboxTheme: CheckboxThemeData(
|
||||||
|
fillColor: MaterialStatePropertyAll(
|
||||||
|
CustomMaterialColor(240, 240, 240).mdColor),
|
||||||
|
checkColor: MaterialStatePropertyAll(Colors.black),
|
||||||
|
),
|
||||||
|
),
|
||||||
home: const AuthGate(),
|
home: const AuthGate(),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class CustomMaterialColor {
|
class CustomMaterialColor {
|
||||||
final int r;
|
final int r;
|
||||||
final int g;
|
final int g;
|
||||||
final int b;
|
final int b;
|
||||||
|
@@ -3,7 +3,6 @@
|
|||||||
import 'package:firebase_auth/firebase_auth.dart';
|
import 'package:firebase_auth/firebase_auth.dart';
|
||||||
import 'package:firebase_core/firebase_core.dart';
|
import 'package:firebase_core/firebase_core.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:currency_text_input_formatter/currency_text_input_formatter.dart';
|
|
||||||
import 'package:ruswipeshare/auth_gate.dart';
|
import 'package:ruswipeshare/auth_gate.dart';
|
||||||
import 'package:ruswipeshare/meetings.dart';
|
import 'package:ruswipeshare/meetings.dart';
|
||||||
import 'package:cloud_firestore/cloud_firestore.dart';
|
import 'package:cloud_firestore/cloud_firestore.dart';
|
||||||
@@ -47,15 +46,30 @@ class _SellScreenState extends State<SellScreen> {
|
|||||||
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
||||||
children: [
|
children: [
|
||||||
Row(
|
Row(
|
||||||
|
children: [
|
||||||
|
Expanded(
|
||||||
|
child: Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
children: const [
|
children: [
|
||||||
Icon(Icons.store_mall_directory, color: Colors.red),
|
Icon(
|
||||||
Text('Place'),
|
Icons.store_mall_directory,
|
||||||
|
color: Colors.red,
|
||||||
|
size: 40,
|
||||||
|
),
|
||||||
|
Text(
|
||||||
|
'Place',
|
||||||
|
style: TextStyle(
|
||||||
|
fontSize: 30,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
))
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
ConstrainedBox(
|
ConstrainedBox(
|
||||||
constraints: const BoxConstraints.expand(height: 250),
|
constraints: const BoxConstraints.expand(height: 250),
|
||||||
child: ListView.builder(
|
child: ListView.builder(
|
||||||
|
physics: BouncingScrollPhysics(),
|
||||||
itemCount: values.length,
|
itemCount: values.length,
|
||||||
itemBuilder: (context, index) => CheckboxListTile(
|
itemBuilder: (context, index) => CheckboxListTile(
|
||||||
title: Text(values.keys.elementAt(index)),
|
title: Text(values.keys.elementAt(index)),
|
||||||
|
Reference in New Issue
Block a user