Skip to content

Commit 57b2349

Browse files
format code
Signed-off-by: huynguyennovem <huynguyennovem@gmail.com>
1 parent af08f7b commit 57b2349

5 files changed

Lines changed: 26 additions & 13 deletions

File tree

lib/data/api_service.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import 'dart:async';
12
import 'dart:convert';
23

34
import 'package:flutter/cupertino.dart';
@@ -10,8 +11,7 @@ import 'package:netshare/entity/file_upload.dart';
1011
import 'package:netshare/entity/shared_file_entity.dart';
1112

1213
class ApiService {
13-
14-
String domain = 'http://${getIt.get<GlobalScopeData>().connectedIPAddress}';
14+
String domain = 'http://${getIt.get<GlobalScopeData>().connectedIPAddress}'; // http://ip:port
1515

1616
void refreshDomain() {
1717
domain = 'http://${getIt.get<GlobalScopeData>().connectedIPAddress}';

lib/ui/client/scan_qr_widget.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ class _ScanQRWidgetState extends State<ScanQRWidget> {
5757
'Scan to connect',
5858
style: CommonTextStyle.textStyleAppbar,
5959
),
60-
iconTheme: const IconThemeData(color: textIconButtonColor),
6160
),
6261
body: Padding(
6362
padding: const EdgeInsets.all(16.0),

lib/ui/list_file/list_shared_files_widget.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class _ListSharedFilesState extends State<ListSharedFiles> {
3636
return Consumer<FileProvider>(
3737
builder: (context, value, child) {
3838
final files = value.files;
39-
debugPrint('Fetched files: ${files.length}');
39+
debugPrint('[ListSharedFiles] Fetched files: ${files.length}');
4040
return Container(
4141
margin: const EdgeInsets.symmetric(vertical: 8.0),
4242
child: Column(

lib/ui/send/send_widget.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ class _SendWidgetState extends State<SendWidget> {
3939
Widget build(BuildContext context) {
4040
return Scaffold(
4141
appBar: AppBar(
42+
elevation: 4.0,
4243
title: Text(
4344
'Send',
4445
style: CommonTextStyle.textStyleNormal.copyWith(fontSize: 20.0),
4546
),
4647
centerTitle: false,
47-
iconTheme: const IconThemeData(color: textIconButtonColor),
4848
),
4949
body: _buildBody(),
5050
);

lib/ui/server/qr_popup.dart

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,28 @@ class _QRMenuPopupState extends State<QRMenuPopup> with SingleTickerProviderStat
2929

3030
@override
3131
Widget build(BuildContext context) {
32-
return MaterialButton(
33-
key: _buttonKey,
34-
onPressed: () => _onClickQRCode(),
35-
color: Theme.of(context).colorScheme.primaryContainer,
36-
shape: const CircleBorder(),
37-
child: Padding(
38-
padding: const EdgeInsets.all(4.0),
39-
child: Icon(Icons.qr_code, color: Theme.of(context).colorScheme.primary),
32+
return Container(
33+
margin: const EdgeInsets.symmetric(horizontal: 4.0),
34+
decoration: BoxDecoration(
35+
shape: BoxShape.circle,
36+
color: Theme.of(context).colorScheme.primaryContainer,
37+
boxShadow: const [
38+
BoxShadow(
39+
blurStyle: BlurStyle.outer,
40+
blurRadius: 8.0,
41+
color: Colors.black26,
42+
),
43+
]
44+
),
45+
child: IconButton(
46+
key: _buttonKey,
47+
onPressed: () => _onClickQRCode(),
48+
padding: EdgeInsets.zero,
49+
iconSize: 24.0,
50+
icon: Padding(
51+
padding: const EdgeInsets.all(4.0),
52+
child: Icon(Icons.qr_code, color: Theme.of(context).colorScheme.primary),
53+
),
4054
),
4155
);
4256
}

0 commit comments

Comments
 (0)