diff --git a/packages/cosmos_ui_components/lib/components/cosmos_app_bar.dart b/packages/cosmos_ui_components/lib/components/cosmos_app_bar.dart index 2033db21..36ca1613 100644 --- a/packages/cosmos_ui_components/lib/components/cosmos_app_bar.dart +++ b/packages/cosmos_ui_components/lib/components/cosmos_app_bar.dart @@ -2,16 +2,19 @@ import 'package:flutter/material.dart'; class CosmosAppBar extends StatelessWidget implements PreferredSizeWidget { final String title; + final List? actions; const CosmosAppBar({ Key? key, this.title = "", + this.actions, }) : super(key: key); @override Widget build(BuildContext context) { return AppBar( title: Text(title), + actions: actions, ); } diff --git a/packages/cosmos_ui_components/lib/components/template/cosmos_password_field.dart b/packages/cosmos_ui_components/lib/components/template/cosmos_password_field.dart index ab71ce51..ae6a8d30 100644 --- a/packages/cosmos_ui_components/lib/components/template/cosmos_password_field.dart +++ b/packages/cosmos_ui_components/lib/components/template/cosmos_password_field.dart @@ -2,8 +2,14 @@ import 'package:flutter/material.dart'; class CosmosPasswordField extends StatefulWidget { final Function(String) onPasswordUpdated; + final String? helperText; + final String hintText; - const CosmosPasswordField({required this.onPasswordUpdated}); + const CosmosPasswordField({ + required this.onPasswordUpdated, + this.helperText = 'This password will be used to recover your account every time you log in to the app', + this.hintText = 'Enter password', + }); @override _CosmosPasswordFieldState createState() => _CosmosPasswordFieldState(); @@ -22,8 +28,8 @@ class _CosmosPasswordFieldState extends State { widget.onPasswordUpdated(value); }, decoration: InputDecoration( - hintText: 'Enter password', - helperText: 'This password will be used to recover your account every time you log in to the app', + hintText: widget.hintText, + helperText: widget.helperText, helperMaxLines: 3, suffixIcon: InkWell( onTap: togglePasswordVisibility, diff --git a/packages/cosmos_ui_components/lib/cosmos_app_theme.dart b/packages/cosmos_ui_components/lib/cosmos_app_theme.dart index 37046214..95a9c1be 100644 --- a/packages/cosmos_ui_components/lib/cosmos_app_theme.dart +++ b/packages/cosmos_ui_components/lib/cosmos_app_theme.dart @@ -31,6 +31,9 @@ class CosmosAppTheme { brightness: Brightness.light, backgroundColor: CosmosColors.lightBg, foregroundColor: CosmosColors.onLightText, + actionsIconTheme: IconThemeData( + color: CosmosColors.onLightText, + ), textTheme: TextTheme( headline6: TextStyle( fontSize: 20,