File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import 'dart:async' ;
12import 'dart:convert' ;
23
34import 'package:flutter/cupertino.dart' ;
@@ -10,8 +11,7 @@ import 'package:netshare/entity/file_upload.dart';
1011import 'package:netshare/entity/shared_file_entity.dart' ;
1112
1213class 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 }' ;
Original file line number Diff line number Diff 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 ),
Original file line number Diff line number Diff 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 (
Original file line number Diff line number Diff 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 );
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments