mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2026-01-31 21:34:45 +01:00
fix & opt
fix: android in-app upgrade fmt: proj struct opt: fetch primaryColor
This commit is contained in:
@@ -14,7 +14,12 @@ class DropdownBtnItem {
|
||||
|
||||
Widget build(S s) => Row(
|
||||
children: [
|
||||
Icon(icon, color: primaryColor),
|
||||
PrimaryColor(builder: (context, primaryColor) {
|
||||
return Icon(
|
||||
icon,
|
||||
color: primaryColor,
|
||||
);
|
||||
}),
|
||||
const SizedBox(
|
||||
width: 10,
|
||||
),
|
||||
|
||||
@@ -4,11 +4,14 @@ import 'package:toolbox/data/res/color.dart';
|
||||
InputDecoration buildDecoration(String label,
|
||||
{TextStyle? textStyle, IconData? icon, String? hint}) {
|
||||
return InputDecoration(
|
||||
labelText: label,
|
||||
labelStyle: textStyle,
|
||||
hintText: hint,
|
||||
icon: Icon(
|
||||
labelText: label,
|
||||
labelStyle: textStyle,
|
||||
hintText: hint,
|
||||
icon: PrimaryColor(builder: (context, primaryColor) {
|
||||
return Icon(
|
||||
icon,
|
||||
color: primaryColor,
|
||||
));
|
||||
);
|
||||
}),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import 'package:flutter/gestures.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:toolbox/core/utils.dart';
|
||||
|
||||
import '../../core/utils/ui.dart';
|
||||
|
||||
const regUrl =
|
||||
r"(https?|ftp|file)://[-A-Za-z0-9+&@#/%?=~_|!:,.;]+[-A-Za-z0-9+&@#/%=~_|]*";
|
||||
|
||||
Reference in New Issue
Block a user