-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fce271b
commit 1e6f04f
Showing
9 changed files
with
219 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
import 'dart:io'; | ||
import 'dart:ui'; | ||
|
||
import 'package:flutter/material.dart'; | ||
import 'checkInByEmailScreen.dart'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
import 'dart:async'; | ||
import 'dart:convert'; | ||
import 'dart:io'; | ||
|
||
import 'package:flutter/material.dart'; | ||
import 'package:flutter/rendering.dart'; | ||
import 'package:flutter/material.dart'; | ||
import "package:webview_universal/webview_universal.dart"; | ||
|
||
class webviewScreen extends StatefulWidget { | ||
const webviewScreen({Key? key}) : super(key: key); | ||
@override | ||
_webviewScreenState createState() => _webviewScreenState(); | ||
} | ||
|
||
class _webviewScreenState extends State<webviewScreen> { | ||
WebViewController webViewController = WebViewController(); | ||
@override | ||
void initState() { | ||
super.initState(); | ||
webViewController.init( | ||
context: context, | ||
setState: setState, | ||
uri: Uri.parse("https://ubuntu-kr.org"), | ||
); | ||
print('initState is called'); | ||
} | ||
|
||
@override | ||
void didChangeDependencies() { | ||
super.didChangeDependencies(); | ||
print('didChangeDependencies is called'); | ||
} | ||
|
||
@override | ||
void setState(fn) { | ||
super.setState(fn); | ||
print('setState'); | ||
} | ||
|
||
@override | ||
void deactivate() { | ||
super.deactivate(); | ||
print('deactivate'); | ||
} | ||
|
||
// dispose 메서드는 위젯이 위젯 트리에서 완전히 제거될 때 호출된다 | ||
@override | ||
void dispose() { | ||
super.dispose(); | ||
print('dispose is called'); | ||
} | ||
|
||
@override | ||
void reassemble() { | ||
super.reassemble(); | ||
print('reassemble'); | ||
} | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Scaffold( | ||
appBar: AppBar(title: Text('Wi-Fi Setup'), actions: <Widget>[ | ||
IconButton( | ||
icon: const Icon(Icons.refresh), | ||
tooltip: 'Wi-Fi 다시 스캔', | ||
onPressed: () async { | ||
// await scanWifi(); | ||
}, | ||
), | ||
]), | ||
body: WebView( | ||
controller: webViewController, | ||
)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
|
||
list(APPEND FLUTTER_PLUGIN_LIST | ||
gtk | ||
webview_universal | ||
) | ||
|
||
list(APPEND FLUTTER_FFI_PLUGIN_LIST | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.