refactor: border radius
This commit is contained in:
parent
add6a8496c
commit
160316ac24
9 changed files with 30 additions and 17 deletions
|
|
@ -1,5 +1,7 @@
|
|||
import 'package:flutter/material.dart';
|
||||
|
||||
import '../app_config.dart';
|
||||
|
||||
class DefaultAppBarSearchField extends StatefulWidget {
|
||||
final TextEditingController searchController;
|
||||
final void Function(String) onChanged;
|
||||
|
|
@ -81,7 +83,7 @@ class DefaultAppBarSearchFieldState extends State<DefaultAppBarSearchField> {
|
|||
decoration: InputDecoration(
|
||||
prefixText: widget.prefixText,
|
||||
enabledBorder: OutlineInputBorder(
|
||||
borderRadius: BorderRadius.circular(12),
|
||||
borderRadius: BorderRadius.circular(AppConfig.borderRadius),
|
||||
borderSide:
|
||||
BorderSide(color: Theme.of(context).secondaryHeaderColor),
|
||||
),
|
||||
|
|
|
|||
|
|
@ -76,8 +76,6 @@ class Message extends StatelessWidget {
|
|||
: Theme.of(context).primaryColor;
|
||||
}
|
||||
|
||||
final radius = 16.0;
|
||||
|
||||
var rowChildren = <Widget>[
|
||||
Expanded(
|
||||
child: Container(
|
||||
|
|
@ -87,7 +85,8 @@ class Message extends StatelessWidget {
|
|||
padding: const EdgeInsets.symmetric(vertical: 6, horizontal: 10),
|
||||
decoration: BoxDecoration(
|
||||
color: color,
|
||||
borderRadius: BorderRadius.circular(radius),
|
||||
borderRadius:
|
||||
BorderRadius.circular(AppConfig.messageBubbleBorderRadius),
|
||||
),
|
||||
constraints:
|
||||
BoxConstraints(maxWidth: FluffyThemes.columnWidth * 1.5),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue