@@ -25,7 +25,7 @@ class _FilenameSettingScreenState extends State<FilenameSettingScreen>
2525 final TextEditingController _controller = TextEditingController ();
2626 final FocusNode _focusNode = FocusNode ();
2727 String filenameFormat = HiveUtil .getString (HiveUtil .filenameFormatKey,
28- defaultValue: defaultFilenameFormat) ??
28+ defaultValue: defaultFilenameFormat) ??
2929 defaultFilenameFormat;
3030
3131 @override
@@ -43,14 +43,16 @@ class _FilenameSettingScreenState extends State<FilenameSettingScreen>
4343 transparent: true ,
4444 title: "文件命名格式" ,
4545 context: context,
46- background: Theme .of (context).scaffoldBackgroundColor,
46+ background: Theme
47+ .of (context)
48+ .scaffoldBackgroundColor,
4749 ),
4850 body: EasyRefresh (
4951 child: ScrollConfiguration (
5052 behavior: NoShadowScrollBehavior (),
5153 child: ListView (
52- padding: EdgeInsets .symmetric (
53- horizontal: ResponsiveUtil . isLandscape () ? 20 : 10 ),
54+ padding: const EdgeInsets .symmetric (
55+ horizontal: 10 ),
5456 children: [
5557 ItemBuilder .buildInputItem (
5658 context: context,
@@ -101,24 +103,30 @@ class _FilenameSettingScreenState extends State<FilenameSettingScreen>
101103 ItemBuilder .buildRoundButton (
102104 context,
103105 text: "可用字段: " ,
104- textStyle: Theme .of (context)
106+ textStyle: Theme
107+ .of (context)
105108 .textTheme
106109 .titleSmall
107110 ? .apply (fontWeightDelta: 2 ),
108111 radius: 10 ,
109112 padding:
110- const EdgeInsets .only (top: 8 , bottom: 8 , left: 8 ),
113+ const EdgeInsets .only (top: 8 , bottom: 8 , left: 8 ),
111114 background: Colors .transparent,
112115 ),
113116 ...FilenameField .values.map ((field) {
114117 return ItemBuilder .buildRoundButton (
115118 context,
116119 text: field.label,
117- textStyle: Theme .of (context).textTheme.titleSmall,
120+ textStyle: Theme
121+ .of (context)
122+ .textTheme
123+ .titleSmall,
118124 radius: 10 ,
119125 padding: const EdgeInsets .symmetric (
120126 horizontal: 16 , vertical: 8 ),
121- background: Theme .of (context).canvasColor,
127+ background: Theme
128+ .of (context)
129+ .canvasColor,
122130 onTap: () {
123131 _focusNode.requestFocus ();
124132 final text = _controller.text;
@@ -140,7 +148,9 @@ class _FilenameSettingScreenState extends State<FilenameSettingScreen>
140148 Container (
141149 decoration: BoxDecoration (
142150 borderRadius: BorderRadius .circular (10 ),
143- color: Theme .of (context).canvasColor,
151+ color: Theme
152+ .of (context)
153+ .canvasColor,
144154 ),
145155 child: Table (
146156 defaultColumnWidth: const IntrinsicColumnWidth (),
@@ -152,7 +162,7 @@ class _FilenameSettingScreenState extends State<FilenameSettingScreen>
152162 ], fontWeightDelta: 2 ),
153163 ...List .generate (
154164 FilenameField .values.length,
155- (index) {
165+ (index) {
156166 return _buildRow ([
157167 FilenameField .values[index].label,
158168 FilenameField .values[index].description,
@@ -177,7 +187,8 @@ class _FilenameSettingScreenState extends State<FilenameSettingScreen>
177187 child: Center (
178188 child: Text (
179189 text,
180- style: Theme .of (context)
190+ style: Theme
191+ .of (context)
181192 .textTheme
182193 .bodyMedium
183194 ? .apply (fontWeightDelta: fontWeightDelta),
@@ -193,11 +204,13 @@ class _FilenameSettingScreenState extends State<FilenameSettingScreen>
193204 decoration: BoxDecoration (
194205 border: useBorder
195206 ? Border (
196- bottom: BorderSide (
197- color: Theme .of (context).dividerColor,
198- width: 0.5 ,
199- ),
200- )
207+ bottom: BorderSide (
208+ color: Theme
209+ .of (context)
210+ .dividerColor,
211+ width: 0.5 ,
212+ ),
213+ )
201214 : null ,
202215 ),
203216 children: cells
0 commit comments