@@ -112,6 +112,7 @@ class _DiskSelectionScreenState extends State<DiskSelectionScreen> {
112112 final isSelected = state.selectedDisk == disk['name' ];
113113 final isLive = disk['isLive' ] == true ;
114114 final isSafe = disk['isSafe' ] == true ;
115+ final isHostOS = disk['isHostOS' ] == true ;
115116
116117 IconData diskIcon = Icons .save_alt;
117118 Color iconColor = isSelected ? theme.colorScheme.primary : Colors .grey;
@@ -122,12 +123,17 @@ class _DiskSelectionScreenState extends State<DiskSelectionScreen> {
122123 } else if (isLive) {
123124 diskIcon = Icons .usb;
124125 iconColor = Colors .redAccent.withOpacity (0.5 );
126+ } else if (isHostOS) {
127+ diskIcon = Icons .computer;
128+ iconColor = Colors .yellow.shade700;
125129 }
126130
127131 final double sizeGB = disk['size' ] is int ? (disk['size' ] as int ) / (1024 * 1024 * 1024 ) : 0 ;
128- String subtitle = "${disk ['type' ]} • ${sizeGB .toStringAsFixed (1 )} GB" ;
129- if (isLive) subtitle = "Cannot Format (Live OS USB)" ;
130- if (isSafe) subtitle = "Safe Test Environment" ;
132+ String sizeStr = "${sizeGB .toStringAsFixed (1 )} GB" ;
133+ String subtitle = "${disk ['type' ]} • $sizeStr " ;
134+ if (isLive) subtitle = "Cannot Format (Live OS USB) • $sizeStr " ;
135+ else if (isHostOS) subtitle = "Host OS (Kurulum Risklidir) • $sizeStr " ;
136+ else if (isSafe) subtitle = "Safe Test Environment • $sizeStr " ;
131137
132138 return GestureDetector (
133139 onTap: () {
@@ -154,7 +160,7 @@ class _DiskSelectionScreenState extends State<DiskSelectionScreen> {
154160 crossAxisAlignment: CrossAxisAlignment .start,
155161 children: [
156162 Text (disk['name' ], style: TextStyle (fontWeight: FontWeight .bold, color: isLive && ! isSelected ? Colors .grey : textColor)),
157- Text (subtitle, style: TextStyle (color: isLive ? Colors .redAccent.withOpacity (0.7 ) : Colors .grey, fontSize: 13 , fontWeight: isLive ? FontWeight .bold : FontWeight .normal)),
163+ Text (subtitle, style: TextStyle (color: isLive ? Colors .redAccent.withOpacity (0.7 ) : (isHostOS ? Colors .yellow.shade700 : Colors . grey) , fontSize: 13 , fontWeight: ( isLive || isHostOS) ? FontWeight .bold : FontWeight .normal)),
158164 ],
159165 ),
160166 ),
0 commit comments