flutter_app_components 1.1.6
flutter_app_components: ^1.1.6 copied to clipboard
A set of packages for building easy and quick application in flutter
example/lib/main.dart
import 'package:flutter/material.dart';
import 'package:flutter_app_components/flutter_app_components.dart';
void main() {
FCAPIClient(
baseUrl: "",
requestParams: {
OnRequestParams.header: {'auth_token': ''},
},
);
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),
),
home: const MyHomePage(title: 'Flutter Demo Home Page'),
);
}
}
class MyHomePage extends StatefulWidget {
const MyHomePage({super.key, required this.title});
final String title;
@override
State<MyHomePage> createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
@override
Widget build(BuildContext context) {
return Scaffold(
body: Padding(
padding: const EdgeInsets.all(20.0),
child: Column(
spacing: 20.0,
children: [
FCFormTextField.underLine(),
FCDropDown(items: [], borderType: FieldBorder.underLine),
FCButton(
title: "Submit",
onPressed: () {
FCAPIClient().get("");
},
),
],
),
),
);
}
}