diff --git a/lib/main.dart b/lib/main.dart index 6fd6ee1..fbb9a37 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -9,9 +9,10 @@ import 'auth_gate.dart'; void main() async { WidgetsFlutterBinding.ensureInitialized(); await Firebase.initializeApp(options: DefaultFirebaseOptions.currentPlatform); - Stripe.publishableKey = "pk_test_51MfY7PFVdcWv896FKvDhgKabYeDq4AnoFcWxCAg4hquj6TBAsN0kznXPVyKA7M1pMq5PsieGQwsx6QY5ld5ZQzJ500rVCMPPXp"; - -runApp(const MyApp()); + Stripe.publishableKey = + "pk_test_51MfY7PFVdcWv896FKvDhgKabYeDq4AnoFcWxCAg4hquj6TBAsN0kznXPVyKA7M1pMq5PsieGQwsx6QY5ld5ZQzJ500rVCMPPXp"; + + runApp(const MyApp()); } class MyApp extends StatelessWidget { @@ -20,23 +21,29 @@ class MyApp extends StatelessWidget { Widget build(BuildContext context) { return MaterialApp( theme: ThemeData( - primarySwatch: CustomMaterialColor(205, 0, 48).mdColor, - scaffoldBackgroundColor: Colors.black87, - fontFamily: GoogleFonts.figtree().fontFamily, - textTheme: Theme.of(context).textTheme.apply( - bodyColor: CustomMaterialColor(240, 240, 240).mdColor, - displayColor: CustomMaterialColor(240, 240, 240).mdColor, - ), - textButtonTheme: TextButtonThemeData( - style: ButtonStyle( - textStyle: MaterialStatePropertyAll(TextStyle( - color: CustomMaterialColor(240, 240, 240).mdColor))))), + primarySwatch: CustomMaterialColor(205, 0, 48).mdColor, + scaffoldBackgroundColor: Colors.black87, + fontFamily: GoogleFonts.figtree().fontFamily, + textTheme: Theme.of(context).textTheme.apply( + bodyColor: CustomMaterialColor(240, 240, 240).mdColor, + displayColor: CustomMaterialColor(240, 240, 240).mdColor, + ), + textButtonTheme: TextButtonThemeData( + style: ButtonStyle( + textStyle: MaterialStatePropertyAll(TextStyle( + color: CustomMaterialColor(240, 240, 240).mdColor)))), + checkboxTheme: CheckboxThemeData( + fillColor: MaterialStatePropertyAll( + CustomMaterialColor(240, 240, 240).mdColor), + checkColor: MaterialStatePropertyAll(Colors.black), + ), + ), home: const AuthGate(), ); } } - class CustomMaterialColor { +class CustomMaterialColor { final int r; final int g; final int b; diff --git a/lib/sell.dart b/lib/sell.dart index 1e0392a..b863551 100644 --- a/lib/sell.dart +++ b/lib/sell.dart @@ -3,7 +3,6 @@ import 'package:firebase_auth/firebase_auth.dart'; import 'package:firebase_core/firebase_core.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/meetings.dart'; import 'package:cloud_firestore/cloud_firestore.dart'; @@ -47,15 +46,30 @@ class _SellScreenState extends State { mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: [ Row( - mainAxisAlignment: MainAxisAlignment.center, - children: const [ - Icon(Icons.store_mall_directory, color: Colors.red), - Text('Place'), + children: [ + Expanded( + child: Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Icon( + Icons.store_mall_directory, + color: Colors.red, + size: 40, + ), + Text( + 'Place', + style: TextStyle( + fontSize: 30, + ), + ), + ], + )) ], ), ConstrainedBox( constraints: const BoxConstraints.expand(height: 250), child: ListView.builder( + physics: BouncingScrollPhysics(), itemCount: values.length, itemBuilder: (context, index) => CheckboxListTile( title: Text(values.keys.elementAt(index)),