uniform 2.0.2 uniform: ^2.0.2 copied to clipboard
A form library for Flutter that handles form validation and state management gracefully, with unified form representation.
// Copyright 2023 Acme Software LLC. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:uniform_example/login_page.dart';
void main() {
runApp(const UniformExampleApp());
}
class UniformExampleApp extends StatelessWidget {
const UniformExampleApp({super.key});
@override
Widget build(BuildContext context) {
const inputDecorationTheme = InputDecorationTheme(
border: OutlineInputBorder(),
);
return MaterialApp(
title: 'Uniform Demo',
theme: ThemeData(
colorSchemeSeed: Colors.green,
brightness: Brightness.dark,
useMaterial3: true,
inputDecorationTheme: inputDecorationTheme,
dropdownMenuTheme: const DropdownMenuThemeData(
inputDecorationTheme: inputDecorationTheme,
),
),
home: const LoginPage(),
);
}
}