Added web fix for platform call and static analysis fixes
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:stripe_native_card_field/card_details.dart';
|
||||
@@ -19,7 +18,8 @@ class MyApp extends StatelessWidget {
|
||||
title: 'Native Stripe Field Demo',
|
||||
theme: ThemeData(
|
||||
brightness: Brightness.dark,
|
||||
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple, brightness: Brightness.dark),
|
||||
colorScheme: ColorScheme.fromSeed(
|
||||
seedColor: Colors.deepPurple, brightness: Brightness.dark),
|
||||
useMaterial3: true,
|
||||
),
|
||||
home: const MyHomePage(title: 'Flutter Demo Home Page'),
|
||||
@@ -66,9 +66,10 @@ class _MyHomePageState extends State<MyHomePage> {
|
||||
print(details);
|
||||
}
|
||||
},
|
||||
textStyle: TextStyle(fontFamily: 'Lato', color: Colors.tealAccent),
|
||||
hintTextStyle: TextStyle(fontFamily: 'Lato', color: Colors.teal),
|
||||
errorTextStyle: TextStyle(color: Colors.purpleAccent),
|
||||
textStyle:
|
||||
const TextStyle(fontFamily: 'Lato', color: Colors.tealAccent),
|
||||
hintTextStyle: const TextStyle(fontFamily: 'Lato', color: Colors.teal),
|
||||
errorTextStyle: const TextStyle(color: Colors.purpleAccent),
|
||||
boxDecoration: BoxDecoration(
|
||||
color: Colors.black54,
|
||||
border: Border.all(
|
||||
|
||||
@@ -41,7 +41,7 @@ class _MyHomePageState extends State<MyHomePage> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
body: Center(
|
||||
body: Center(
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: <Widget>[
|
||||
@@ -58,12 +58,6 @@ class _MyHomePageState extends State<MyHomePage> {
|
||||
print(details);
|
||||
}
|
||||
},
|
||||
// textStyle: TextStyle(fontSize: 24.0),
|
||||
// cardFieldWidth: 260,
|
||||
// expFieldWidth: 100.0,
|
||||
// securityFieldWidth: 60.0,
|
||||
// postalFieldWidth: 130.0,
|
||||
// iconSize: Size(50.0, 35.0),
|
||||
overrideValidState: state,
|
||||
errorText: errorText,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user